cancel
Showing results for 
Search instead for 
Did you mean: 

Connection reset error while calling web service deployed on tomcat

Former Member
0 Kudos
3,030

Hello Friends,

I am trying to invoke a web service from web dynpro application. The web service is deployed on tomcat 5.5 server.

I am creating an adaptive web service model using wsdl file. The model gets created without any error.

But when application is deployed and run it is giving following exception:

java.net.SocketException: Connection reset

at java.net.SocketInputStream.read(SocketInputStream.java:168)

at java.io.BufferedInputStream.read1(BufferedInputStream.java:254)

at java.io.BufferedInputStream.read(BufferedInputStream.java:313)

at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)

... 102 more

I tried to call the service from a simple java application. There the service works fine.

Also, in the web services navigator, if I specify the wsdl url for testing it gives the same error of "Connection reset".

I don't think this is a proxy server issue as the tomcat is within the local network.

Can someone please help me with this?

Thanks and regards,

Mayuresh

Edited by: Mayuresh Kanvinde on Mar 27, 2008 7:03 PM

View Entire Topic
Former Member
0 Kudos

Hello,

Since I am getting xml parser error, as shown in the stack trace, I think there is a problem with the wsdl file.

Here is the wsdl file's content:


  <?xml version="1.0" encoding="UTF-8" ?> 
- <!--  Published by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.2-b05-RC1. 
  --> 
- <!--  Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is JAX-WS RI 2.1.2-b05-RC1. 
  --> 
- <definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://test.webservices.clemenza.vistaar.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://test.webservices.clemenza.vistaar.com/" name="DummyWebServiceService">
- <types>
- <xsd:schema>
  <xsd:import namespace="http://test.webservices.clemenza.vistaar.com/" schemaLocation="http://<host>:<port>/WebServicesTest/DummyWebService?xsd=1" /> 
  </xsd:schema>
  </types>
- <message name="getHelloWorld">
  <part name="parameters" element="tns:getHelloWorld" /> 
  </message>
- <message name="getHelloWorldResponse">
  <part name="parameters" element="tns:getHelloWorldResponse" /> 
  </message>
- <message name="sayHi">
  <part name="parameters" element="tns:sayHi" /> 
  </message>
- <message name="sayHiResponse">
  <part name="parameters" element="tns:sayHiResponse" /> 
  </message>
- <message name="getComplexType">
  <part name="parameters" element="tns:getComplexType" /> 
  </message>
- <message name="getComplexTypeResponse">
  <part name="parameters" element="tns:getComplexTypeResponse" /> 
  </message>
- <message name="causeException">
  <part name="parameters" element="tns:causeException" /> 
  </message>
- <message name="causeExceptionResponse">
  <part name="parameters" element="tns:causeExceptionResponse" /> 
  </message>
- <message name="DummyException">
  <part name="fault" element="tns:DummyException" /> 
  </message>
- <portType name="DummyWebService">
- <operation name="getHelloWorld">
  <input message="tns:getHelloWorld" /> 
  <output message="tns:getHelloWorldResponse" /> 
  </operation>
- <operation name="sayHi">
  <input message="tns:sayHi" /> 
  <output message="tns:sayHiResponse" /> 
  </operation>
- <operation name="getComplexType">
  <input message="tns:getComplexType" /> 
  <output message="tns:getComplexTypeResponse" /> 
  </operation>
- <operation name="causeException">
  <input message="tns:causeException" /> 
  <output message="tns:causeExceptionResponse" /> 
  <fault message="tns:DummyException" name="DummyException" /> 
  </operation>
  </portType>
- <binding name="DummyWebServicePortBinding" type="tns:DummyWebService">
  <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> 
- <operation name="getHelloWorld">
  <soap:operation soapAction="" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
  </operation>
- <operation name="sayHi">
  <soap:operation soapAction="" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
  </operation>
- <operation name="getComplexType">
  <soap:operation soapAction="" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
  </operation>
- <operation name="causeException">
  <soap:operation soapAction="" /> 
- <input>
  <soap:body use="literal" /> 
  </input>
- <output>
  <soap:body use="literal" /> 
  </output>
- <fault name="DummyException">
  <soap:fault name="DummyException" use="literal" /> 
  </fault>
  </operation>
  </binding>
- <service name="DummyWebServiceService">
- <port name="DummyWebServicePort" binding="tns:DummyWebServicePortBinding">
  <soap:address location="http://<host>:<port>/WebServicesTest/DummyWebService" /> 
  </port>
  </service>
  </definitions>

Hope this helps to understand the problem better.

PS: <host>:<port> in above wsdl is correctly specified.

Thanks and regards,

Mayuresh

Edited by: Mayuresh Kanvinde on Mar 28, 2008 1:18 PM

0 Kudos

Hi.

Could you tell me what CC type in Configuration:Integration Builder should be create?

THX.