jbi.messaging.MessagingException:Could not find route for exchange:Inout
jayasreeb Jun 30, 2008 2:28 AMHi,
I have created http web service "Hello" by following "cxf-wsdl-first" example.I have created a service engine,binding component and service assembly.I deployed webservice successfully in FuseESB(Servicemix).
When I am giving "http://localhost:9090/hello/?wsdl" in browser
I am successfully getting following wsdl.
<?xml version="1.0" encoding="utf-8" ?>
- <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://swebservice.samples.servicemix.apache.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="HelloTestService" targetNamespace="http://swebservice.samples.servicemix.apache.org/">
- <wsdl:types>
- <xsd:schema attributeFormDefault="unqualified" elementFormDefault="unqualified" targetNamespace="http://swebservice.samples.servicemix.apache.org/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://swebservice.samples.servicemix.apache.org/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="sayHello" type="tns:sayHello" />
- <xsd:complexType name="sayHello">
- <xsd:sequence>
<xsd:element minOccurs="0" name="arg0" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="sayHelloResponse" type="tns:sayHelloResponse" />
- <xsd:complexType name="sayHelloResponse">
- <xsd:sequence>
<xsd:element minOccurs="0" name="return" type="xsd:string" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
- <wsdl:message name="sayHello">
<wsdl:part element="tns:sayHello" name="parameters" />
</wsdl:message>
- <wsdl:message name="sayHelloResponse">
<wsdl:part element="tns:sayHelloResponse" name="parameters" />
</wsdl:message>
- <wsdl:portType name="HelloTest">
- <wsdl:operation name="sayHello">
<wsdl:input message="tns:sayHello" name="sayHello" />
<wsdl:output message="tns:sayHelloResponse" name="sayHelloResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="HelloTestServiceSoapBinding" type="tns:HelloTest">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayHello">
<soap:operation soapAction="" style="document" />
- <wsdl:input name="sayHello">
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output name="sayHelloResponse">
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="HelloTestService">
- <wsdl:port binding="tns:HelloTestServiceSoapBinding" name="HelloTestPort">
<soap:address location="http://localhost:9090/hello/" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
My requirement is to invoke this Fuse web service from Axis 1.4.So I have created Axis client stubs by mentioning the above url and got the following classes.I used following command to get the client stubs.
java org.apache.axis.wsdl.WSDL2Java http://localhost:9090/hello/?wsdl -p esri.aws.v2006 -v
Following classes got generated :
HelloTest.java
HelloTestService.java
HelloTestServiceLocator.java
HelloTestServiceSoapBindingStub.java
I created a test class to access the java method sayHello() which is defined in Fuse Webservice.
public class SuccessHelloClient {
public static void main(String args[]){
System.out.println("inside main of client test");
HelloTestService hts = new HelloTestServiceLocator();
//HelloTest ht = hts.getHelloTestPort();
try{
String output = hts.getHelloTestPort().sayHello("sree");
System.out.println("output---"+output);
}catch(Exception e){
System.out.println("inside exception---"+e);
}
}
}
I got the following error message..
Could not find route for exchange: InOut[
id: ID:10.66.177.114-11ad815d067-2:1
status: Active
role: provider
interface: HelloTest
service: HelloTestService
operation: sayHello
in:
] for service: HelloTestService and interface: HelloTest
Please help me in resolving this as this is on high priority....
I would like to know whether we can invoke Fuse webservice from AXIS?If so what are the steps required to do it?
Jayasree.B