...
Code Block | ||||
---|---|---|---|---|
| ||||
URL wsdlURL = new URL("http://localhost/hello?wsdl"); Service sservice = Service.create(new QName("HelloService"), wsdlURL); Dispatch<Source> disp = service.createDispatch(new QName("HelloPort"), Source.class, Service.Mode.PAYLOAD); Source request = new StreamSource("<hello/>") Source response = disp.invoke(request); |
...