0
我是java web服务的新手。Java Web服务客户端+ Axis + Eclipse + Tomcat
现在我试图创建一个Web服务客户端来访问基于WSDL的Web服务。所以使用Eclipse生成所需的客户端存根/绑定存根/端口/端口代理/ ServiceLocator等
根据我的理解,下一步是创建一个类与主要方法来调用它。任何人都可以帮我写这段代码或至少有一些链接来引用?
EDITED 非常感谢你的提示@ pavan-kumar。最后我想出下面的代码,它的工作原理。再次感谢。
package clients;
import requiredClasses;
public class TestClient {
public static void main(String args[]) throws Exception
{
TestPortProxy tProxy = new TestPortProxy();
RequestEntity rEntity = new RequestEntity();
rEntity.setAttribute1(100);
rEntity.setAttribute2("value1");
tProxy.webServiceAction(rEntity);
}
}