在本地调式可以正常调用,但是部署到linux服务器上的tomcat中时,在本地调用该接口时出现异常。可以在本地浏览器中访问webservice接口地址
public static void main(String[] args) throws RemoteException, ServiceException {
WebServiceImplService service = new WebServiceImplServiceLocator();
WebServiceImplPortBindingStub stub = (WebServiceImplPortBindingStub) service.getWebServiceImplPort();
String result = stub.changeVendorNumber("test", "res1");
System.out.println(result);
}
public static void main(String[] args) throws RemoteException, ServiceException {
WebServiceImplService service = new WebServiceImplServiceLocator();
WebServiceImplPortBindingStub stub = (WebServiceImplPortBindingStub) service.getWebServiceImplPort();
String result = stub.changeVendorNumber("test", "res1");
System.out.println(result);
}