Here is my stored proc (made it simple to try to isolate the issue, so all I'm doing now is setting the OUT params):
PROCEDURE DequeuePPLPlatformMsg ( msgType OUT VARCHAR2, msgBody OUT VARCHAR2) IS BEGIN
msgType := 'TESTTYPE';
msgBody := 'TESTBODY';
END DequeuePPLPlatformMsg;
Here is my C# code to call the stored proc and attempt to get the values in the OUT params:
OConn = new OracleConnection();
OConn.ConnectionString = "Password=mypw; User ID=myid; Data Source=devdb;";
OConn.Open();
OComm = new OracleCommand(StoredProc, OConn);
OComm.CommandType = System.Data.CommandType.StoredProcedure;
OComm.Parameters.Add("msgType", OracleDbType.Varchar2, 255, System.Data.ParameterDirection.Output);
OComm.Parameters.Add("msgBody", OracleDbType.Varchar2, 255, System.Data.ParameterDirection.Output);
int Result = OComm.ExecuteNonQuery();
OConn.Close();
String msgType = OComm.Parameters["msgType"].Value.ToString();
String msgBody = OComm.Parameters["msgBody"].Value.ToString();
When I look at the Values in the params, they contain empty strings.
Any ideas? Thanks!!