Whwenever an exception occurs at the server side, the Apache
RPCRouterServlet(SOAP Server) sets the HTTP response status header to
SC_INTERNAL_SERVER_ERROR. As soon as this is set by the SOAP server, the
URLConnection object InputStream gets corrupted and is not able to read
anything. This is my guess. You can try this out by commenting out the code
in RPCRouterServlet doPost() method, which sets the HTTP response status to
SC_INTERNAL_SERVER_ERROR.
I have got a question for you.
When you post the SOAP document from your applet, does your SOAP BODY
specify the xsi:type attribute for each XML tag. While building the SOAP
BODY in the applet how do you match to appropriate java data type, expected
by the web service method.
Thanks,
Sekar.
"Olson,
Brian" To: [EMAIL PROTECTED]
<BRIAN.OLSON@ cc:
ca.com> Subject: URLConnection
07/19/2001
02:53 PM
Please
respond to
soap-user
Hi,
I've written an applet that is very small (7k) that formats a SOAP request
and sends it to the apache router servlet. The applet does not use any of
the SOAP client packages or the call object. It builds a string buffer
formatted as a HTTP posting with the SOAP body.
Using a direct socket connection, I have no problems. But, I'd rather use
a URLConnection for writing the request and reading the response. However,
I can't get past an exception when trying to get the inputstream from the
URLConnection. Any ideas? Do I have to use a socket?
Thanks,
Brian Olson
Computer Associates
Portal Development
tel: +1 952 838-1058
[EMAIL PROTECTED]