Many SOAP implementations use the SOAPAction to specify the service
to call. If you want SOAPAction filled in, you specify it as the
second parameter in call.invoke.
On 7 Mar 2003 at 13:45, Jean-Baptiste g wrote:
> Hy,
>
> i am using Apache Soap 2.3 and, based on the sample "GetQuote", i can't
> succeed sending a SOAP message with a SOAPAction field filled. is it normal
> ?
>
> My code looks like the following:
>
> ...
> Call call = new Call ();
> call.setTargetObjectURI ("urn:xmethods-CATraffic");
> call.setMethodName ("getTraffic");
> call.setEncodingStyleURI("http://schemas.xmlsoap.org/soap/encoding/");
> Vector params = new Vector ();
> params.addElement (new Parameter("hwynums",
> Class.forName("java.lang.String"), "101", null));
> call.setParams (params);
> Response resp = call.invoke (new
> URL("http://services.xmethods.net:80/soap/servlet/rpcrouter"), "" );
> ...
>
> Hopefully, this webservice is not expecting a SOAPAction field to be filled,
> but with any other webservice, my call failed with an error (Incorrect HTTP
> Header SOAPAction...)
>
> Do you have any idea why?
>
> Many thanks for you help!
>
> Jean-Baptiste
>
> _________________________________________________________________
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
Scott Nichol
Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.