> 1.  How do I get the response from the web service after executing
> SOAPHTTPConnection.send()?

The best guide for use of this method is Call#invoke.  If you don't have
source, you can view the 2.3.1 version from CVS at
http://cvs.apache.org/viewcvs.cgi/xml-soap/java/src/org/apache/soap/rpc/
Call.java?rev=1.14&content-type=text/vnd.viewcvs-markup.

> 2.  I'm expecting the web service response to contain a DOM Element.
When
> I was calling the web service via a Call I had set this up by:
> soapCall.setEncodingStyleURI(Constants.NS_URI_LITERAL_XML).   How do I
do
> the equivalent of that if I'm using
> SOAPHTTPConnection.send() instead of Call.invoke() ??

Among other things, Call#invoke creates the SOAP envelope from things
like the parameters and encoding you specified.  When you create the
envelope to send with SOAPHTTPConnection#send, you will need to specify
the encodingStyle attribute on the envelope or body element.

Anyway, I take it you are trying to work around the ability to set HTTP
headers in 2.3.1.  If so, why not just subclass Call and add the
overloaded invoke method that has been added subsequent to 2.3.1?  The
source for that method is available to you: just check CVS.

Scott Nichol


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to