The calling method of the webservice interface

After the webservice client is generated in eclipse, the interface can be called in the following way.

The generated client has an interface that inherits the Service class: interface XXXService extends javax.xml.rpc.Service
and an implementation class of the interface: XXXServiceLocator implements XXXService
and an interface that inherits the Remote class: interface XXXPortType extends java.rmi.Remote
and One that implements this interface XXXSoapBindingStub implements XXXPortType

you can call with these four classes
java code
?
1
2
3
           XXXService service =  new  XXXServiceLocator();   
         XXXSoapBindingStub client = (Stub) service.getXXX();           
       System.out.println(client.MOTHOD(PARAM1...));

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326038810&siteId=291194637