用wsdd2java生成ws的客户端
然后调用stub
错误如下
Exception in thread "main" AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.NoEndpoint
 faultSubcode: 
 faultString: No endpoint
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}exceptionName:org.apache.axis.NoEndPointException
{http://xml.apache.org/axis/}stackTrace:No endpoint
at com.ws.wsclient.GreetSoapBindingStub.sayHello(GreetSoapBindingStub.java:92)
at com.ws.WsClient.main(WsClient.java:19) {http://xml.apache.org/axis/}hostname:zhangzhanghaiNo endpoint
at com.ws.wsclient.GreetSoapBindingStub.sayHello(GreetSoapBindingStub.java:92)
at com.ws.WsClient.main(WsClient.java:19)

解决方案 »

  1.   

    如错误显示:
    No endpoint,说明你没有设置调用的endpoint,你设置一个endpoint应该就没问题了
      

  2.   

    endpoint 是在哪里设置的 可以说下不
      

  3.   

    call.setTargetEndpointAddress(new java.net.URL("http://*******?wsdl"));
      

  4.   

    客户端我使用 axis里面的WSDL2JAVA类生成出来的
    然后再调用的生成出来的SoapBindingStub类