Hi All,
Can you please tell what is SOAP ACTION
why the following code works ok with Apache Soap
but gives this error with .Net Soap servers
---- THE ERROR ----
Generated fault:    Fault Code   = soap:Client   Fault String =
System.Web.Services.Protocols.SoapException: Server did not recognize the
value of HTTP Header SOAPAction: .
   at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
   at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type,
HttpContext context, HttpRequest request, HttpResponse response)

---- THE CODE ----

{
soapCall.setEncodingStyleURI( Constants.NS_URI_LITERAL_XML );
soapCall.setTargetObjectURI(_urn); 
soapCall.setMethodName(methodName);
soapCall.setEncodingStyleURI(org.apache.soap.Constants.NS_URI_SOAP_ENC);
java.util.Vector params = new java.util.Vector();
params.addElement(new org.apache.soap.rpc.Parameter(strParam,
                                            String.class,
                                            val,
                                            null));
soapCall.setParams(params);

soapCall.getSOAPContext());
resp = soapCall.invoke(serviceURI, "");
...
}


Thanks in advance :)
-Kapil

This message may contain privileged and/or confidential information.  If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate, or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender by
e-mail promptly that you have done so.  Thank You.

Reply via email to