1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
package AgVoy;
import javax.xml.ws.Service;
import javax.xml.namespace.QName;
import java.net.URL;
import javax.xml.rpc.ServiceFactory;
/**
*
* @author Administrateur
*/
class essai {
public static void main(String[] args)throws Exception {
QName portQN = new QName("http://AgVoy", "AgV1HttpEndpoint");
URL url= new URL("http://localhost:8080/axis2/services/AgV1?wsdl");
QName qname=new QName("http://AgVoy","AgV1");
Service service= Service.create(url,qname);
AgV1 eif= service.getPort(portQN,AgV1.class);
System.out.println(eif.meth1());
}
} |
Partager