0 Replies Latest reply on Apr 8, 2008 7:10 AM by Dong Jinli

    Problem with websevice_consumer1

    Dong Jinli Newbie

      I want to use a web service which is on a tomcat server instead of the helloworld provided.
      And I made some changes in jboss-esb.xml as the following.

      <services>
       <service category="MyServiceCategory" name="WebserviceConsumer1"
       description="Helloworld Webservice Consumer">
       <listeners>
       <jms-listener name="JMS-ESBListener"
       busidref="quickstartEsbChannel" maxThreads="1" />
       </listeners>
       <actions>
       <action name="request-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webservice_consumer1.MyRequestAction">
       </action>
       <action name="soapui-client-action"
       class="org.jboss.soa.esb.actions.soap.SOAPClient">
       <property name="wsdl"
       value="http://127.0.0.1:8181/axis2/services/AddService?wsdl" />
       <property name="operation" value="add" />
       <property name="responseAsOgnlMap" value="true" />
       <property name="SOAPAction" value="add"/>
       </action>
       <action name="response-mapper"
       class="org.jboss.soa.esb.samples.quickstart.webservice_consumer1.MyResponseAction">
       </action>
       </actions>
       </service>
       </services>
      

      But when I call the service , it goes to find the port of '80'.

      18:45:16,093 INFO [STDOUT] Progress: 1 - Caching definition from url http://127.0.0.1:8181/axis2/services/AddService?wsdl]
      18:45:16,296 INFO [STDOUT] 18:45:16,296 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.
      18:45:16,328 INFO [STDOUT] Progress: 1 - Loading definition from cache
      18:45:16,343 INFO [STDOUT] Retrieving document at 'http://127.0.0.1:8181/axis2/services/AddService?wsdl'.
      18:45:16,359 INFO [STDOUT] 18:45:16,359 INFO [SchemaUtils] Loading schema types from [http://127.0.0.1:8181/axis2/services/AddService?wsdl]
      18:45:16,359 INFO [STDOUT] 18:45:16,359 INFO [SchemaUtils] Getting schema http://127.0.0.1:8181/axis2/services/AddService?wsdl
      18:45:16,390 INFO [STDOUT] 18:45:16,390 INFO [SchemaUtils] schema for [http://cn.dareway.com/xsd] contained [{}] namespaces
      18:45:17,578 WARN [ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline: header: [ To: JMSEpr [ PortReference < <wsa:Address jms://localhost/queue/quickstart_webservice_consumer1_esb/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : 1/> > ] ReplyTo: JMSEpr [ PortReference < <wsa:Address jms://localhost/queue/quickstart_webservice_consumer1_esb_reply/>, <wsa:ReferenceProperties jbossesb:java.naming.provider.url : localhost/>, <wsa:ReferenceProperties jbossesb:java.naming.factory.initial : org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties jbossesb:destination-type : queue/>, <wsa:ReferenceProperties jbossesb:specification-version : 1.1/>, <wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>, <wsa:ReferenceProperties jbossesb:message-selector : jbossESBresponseUUID='9f1f6e08-4c11-4da1-9d0d-48fb8ec687ea'/>, <wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties jbossesb:acknowledge-mode : 1/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] MessageID: ID:9-12076515145781 RelatesTo: jms:correlationID#14fa8606-dc94-4ebb-aa3d-f16de1091ab4 ]
      org.jboss.soa.esb.actions.ActionProcessingException: Failed to invoke SOAP Endpoint: 'http://127.0.0.1:80/axis2/services/AddService ' - 'add'.
       at org.jboss.soa.esb.actions.soap.SOAPClient.invokeEndpoint(SOAPClient.java:382)
       at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:338)
       at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316)
       at org.jboss.soa.esb.listeners.message.MessageAwareListener$1.run(MessageAwareListener.java:303)
       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.net.SocketException: Connection reset
       at java.net.SocketInputStream.read(SocketInputStream.java:168)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
       at org.apache.commons.httpclient.HttpParser.readRawLine(Unknown Source)
       at org.apache.commons.httpclient.HttpParser.readLine(Unknown Source)
       at org.apache.commons.httpclient.HttpConnection.readLine(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodBase.readResponse(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodBase.execute(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Unknown Source)
       at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(Unknown Source)
       at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
       at org.apache.commons.httpclient.HttpClient.executeMethod(Unknown Source)
       at org.jboss.soa.esb.actions.soap.SOAPClient.invokeEndpoint(SOAPClient.java:375)
       ... 6 more
      


      After I changed the port of my tomcat to '80' ,it works well.
      Are there any more configurations I need to do?
      Please help me.
      thanks in advance.