You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Siddique Farhan-W13881 <fa...@motorola.com> on 2002/08/01 22:53:15 UTC

Please help: SOAPException

Someone, please help

> 	I am trying to convert a SOAP client written in Perl to Java and I
> am getting a SOAP-Exception at run-time.
> 
> Code snippet for connection in Perl is like this
> 
> $soap_response = SOAP::Lite -> uri('http://100.100.100.100:8000/DoneHere')
> 			        ->
> proxy('http://100.100.100.100:8000/exect.pl')
>                                             -> methodToExecute;
> 
> Part of my java code is like this 
> 
> String proxyUri = "http: // 100.100.100.100:8000/DoneHere";
> URL url = new URL("http://100.100.100.100.100:8000/exect.pl");
> 
> 
> call.setTargetObjectURI (proxyUri);  //uri is a String
> call.setMethodName ("methodToExecute");
> org.apache.soap.rpc.Response resp = call.invoke(url,"");
> 
> 
> The SOAP exeption I am getting is like this 
> 
> [SOAPException: faultCode=SOAP-ENV:Client; msg=Connection reset by peer:
> Connect
> ion reset by peer; targetException=java.net.SocketException: Connection
> reset by
>  peer: Connection reset by peer]
>         at java.lang.Throwable.fillInStackTrace(Native Method)
>         at java.lang.Throwable.fillInStackTrace(Compiled Code)
>         at java.lang.Throwable.<init>(Compiled Code)
>         at java.lang.Exception.<init>(Exception.java:42)
>         at org.apache.soap.SOAPException.<init>(SOAPException.java:71)
>         at org.apache.soap.SOAPException.<init>(SOAPException.java:77)
>         at
> org.apache.soap.transport.http.SOAPHTTPConnection.send(SOAPHTTPConnec
> tion.java:328)
>         at org.apache.soap.rpc.Call.invoke(Call.java:205)
>         
> 
> Is there something I am missing?? Please help. Thanks
> 
> Regards,
> 
> Farhan 
>