A problem about soapAction and wsdl in JBossESB
djlxiong May 25, 2008 11:19 PMHello. I am using JBossESB4.3 GA .
Now I want to invoke a webService using SoapAction, and the wsdl of the webService is generated by axis2 under tomcat.
The endpoint of my wsdl is like 'http://127.0.0.1:8181/axis2/services/AddService' .
But when my SoapAction analyzed the wsdl, it get the endpoint as 'http://127.0.0.1:80/axis2/services/AddService'.
The port changed from 8181 to 80 automatically, and I failed to invoke the service.
I find that the format of my wsdl has some difference with the wsdl which is generated by JBossESB using spring.
I wonder if the SoapAction in JBossESB doesn't support the wsdl coming from axis2 ?
Or I need to do some configurations?
Thanks in advance.
djl.
The following is my error report
10:46:48,573 INFO [STDOUT] Retrieving document at 'http://localhost:8181/axis2/services/AddService?wsdl'. 10:46:49,058 INFO [SchemaUtils] Loading schema types from [http://localhost:8181/axis2/services/AddService?wsdl] 10:46:49,058 INFO [SchemaUtils] Getting schema http://localhost:8181/axis2/services/AddService?wsdl 10:46:49,104 INFO [SchemaUtils] schema for [http://cn.dareway.com/xsd] contained [{}] namespaces 10:46:50,839 INFO [WsdlImporter] Finding importer for {http://cn.dareway.com}AddServiceSOAP11Binding 10:46:50,839 INFO [WsdlImporter] Importing binding {http://cn.dareway.com}AddServiceSOAP11Binding 10:46:51,073 INFO [Soap11HttpBindingImporter] importing endpoint http://127.0.0.1:80/axis2/services/AddService 10:46:51,292 INFO [Soap11HttpBindingImporter] importing operation add 10:46:51,354 INFO [Soap11HttpBindingImporter] importing operation mul 10:46:51,354 INFO [Soap11HttpBindingImporter] importing operation sub 10:46:51,354 INFO [WsdlImporter] Finding importer for {http://cn.dareway.com}AddServiceHttpBinding 10:46:51,354 INFO [WsdlImporter] Missing importer for {http://cn.dareway.com}AddServiceHttpBinding 10:46:51,354 INFO [WsdlImporter] Finding importer for {http://cn.dareway.com}AddServiceSOAP12Binding 10:46:51,354 INFO [WsdlImporter] Importing binding {http://cn.dareway.com}AddServiceSOAP12Binding 10:46:51,354 INFO [Soap12HttpBindingImporter] importing endpoint http://127.0.0.1:80/axis2/services/AddService 10:46:51,370 INFO [Soap12HttpBindingImporter] importing operation add 10:46:51,370 INFO [Soap12HttpBindingImporter] importing operation mul 10:46:51,370 INFO [Soap12HttpBindingImporter] importing operation sub 10:46:51,370 INFO [WsdlImporter] Finding importer for {http://cn.dareway.com}AddServiceHttpBinding 10:46:51,370 INFO [WsdlImporter] Missing importer for {http://cn.dareway.com}AddServiceHttpBinding 10:46:51,511 INFO [STDOUT] Progress: 1 - Caching definition from url [http:// 127.0.0.1:8181/axis2/services/AddService?wsdl] 10:46:52,870 INFO [HttpClientSupport$Helper] Initializing SSL 10:46:53,401 WARN [HttpMethodBase] Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended. 10:46:53,417 INFO [STDOUT] Progress: 1 - Loading definition from cache 10:46:53,448 INFO [STDOUT] Retrieving document at 'http:// 127.0.0.1:8181/axis2/services/AddService?wsdl'. 10:46:53,464 INFO [SchemaUtils] Loading schema types from [http:// 127.0.0.1:8181/axis2/services/AddService?wsdl] 10:46:53,464 INFO [SchemaUtils] Getting schema http://localhost:8181/axis2/services/AddService?wsdl 10:46:53,511 INFO [SchemaUtils] schema for [http://cn.dareway.com/xsd] contained [{}] namespaces 10:46:55,917 WARN [ActionProcessingPipeline] Unexpected exception caught while processing the action pipeline: header: [ To: JMSEpr [ PortReference < <wsa:Address jms://localhost:1099/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:java.naming.factory.url.pkgs : org.jnp.interfaces/>, <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 : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type : urn:jboss/esb/epr/type/jms/> > ] MessageID: 24da086a-7f0a-4f56-a4ee-0bf590bc279e RelatesTo: jms:correlationID#24da086a-7f0a-4f56-a4ee-0bf590bc279e ] 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:443) at org.jboss.soa.esb.actions.soap.SOAPClient.process(SOAPClient.java:395) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:316) at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530) 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.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.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:435) ... 6 more