This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes SOA and ESB and the fly likes Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort} Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » SOA and ESB
Bookmark "Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}" Watch "Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}" New topic

Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}

rajesh babu Y
Ranch Hand

Joined: Nov 12, 2010
Posts: 31
Hi All,

i'm new to Java Web Services, i had deployed sample hello world service on Tomcat server and trying to access from client application, i'm getting following error ...

faultCode: {}Client
faultString: Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}getHelloWorldAsString
{}stackTrace:Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}getHelloWorldAsString
at org.apache.axis.message.SOAPFaultBuilder.createFault(

Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}getHelloWorldAsString

Here is the WSDL file

<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated by JAX-WS RI at RI's version is JAX-WS RI 2.1.3-hudson-390-. -->
<definitions xmlns="" xmlns:soap="" xmlns:tns="" xmlns:wsu="" xmlns:xsd="" name="HelloWorldImplService" targetNamespace="">
<message name="getHelloWorldAsString">
<part name="arg0" type="xsd:string"/>
<message name="getHelloWorldAsStringResponse">
<part name="return" type="xsd:string"/>
<portType name="HelloWorld">
<operation name="getHelloWorldAsString">
<input message="tns:getHelloWorldAsString"/>
<output message="tns:getHelloWorldAsStringResponse"/>
<binding name="HelloWorldImplPortBinding" type="tns:HelloWorld">
<soap:binding style="rpc" transport=""/>
<operation name="getHelloWorldAsString">
<soapperation soapAction=""/>
<soap:body namespace="" use="literal"/>
<soap:body namespace="" use="literal"/>
<service name="HelloWorldImplService">
<port binding="tns:HelloWorldImplPortBinding" name="HelloWorldImplPort">
<soap:address location="http://localhost:8088/SimpleSOA/HelloWorldImplPort"/>

Here is my client call

Service service = new org.apache.axis.client.Service();
Call call = (Call) service.createCall();
call.setOperationName( new QName("http://localhost:8088/SimpleSOA/HelloWorldImplPort", "getHelloWorldAsString") );
String ret = (String) call.invoke( new Object[] {"some kind of message"} );

Service name --
ServiceImpl --

Could you let me know what was the issue ...
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 595
call.setOperationName( new QName("http://localhost:8088/SimpleSOA/HelloWorldImplPort", "getHelloWorldAsString") );

The naming of namespace of the operation is a priori quite decoupled from the addressing of the endpoint. Here, the namespace is what the targetNamespace is in the wsdl, that is "".
Have you checked out Aspose?
subject: Cannot find dispatch method for {http://localhost:8088/SimpleSOA/HelloWorldImplPort}
It's not a secret anymore!