Hi all,
I'm working on .net with oracle 10g client. I have a problem while executing a oracle function which takes xmltype parameter as input and also gives xmltype output param.
my XML input(xmltype) is
<EVENT>
<REQUEST ID=12345 E_USER="ADMIN" E_APP="TEST" E_REF=""/>
<E_DTLS E_TYPE="1" A_TYPE ="V"/>
</EVENT>
cmd.Parameters.Add(new OracleParameter("IP_REQUEST_OBJECT_X", OracleDbType.XmlType, ParameterDirection.Input));
cmd.Parameters["IP_REQUEST_OBJECT_X"].Value = strXML;
OracleParameter outparam1 = new OracleParameter("OP_RESPONSE_OBJECT_X", OracleDbType.XmlType);
outparam1.Direction = ParameterDirection.Output;
cmd.Parameters.Add(outparam1);
Now I'm getting the below error while executing the function at cmd.ExecuteNonQuery();
System.InvalidOperationException: Operation is not valid due to the current state of the object.
at Oracle.DataAccess.Client.OracleCommand.ExecuteNonQuery()
Is thr any wrong passing of xml as input in my code ?
Pls help. It's very urgent for my Project.
Thanks,
Anil