Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Example;
- import javax.jws.WebService;
- import javax.jws.WebMethod;
- //import javax.jws.WebParam;
- import javax.jws.soap.SOAPBinding;
- import javax.jws.soap.SOAPBinding.*;
- import javax.xml.ws.Endpoint;
- @WebService
- @SOAPBinding(style=Style.RPC)
- public class Service {
- public Service() {}
- @WebMethod
- public String getTime(String data) {
- System.out.print(data);
- return data;
- }
- public static void main(String args[]) throws Exception {
- Object srv = new Service();
- String adr = "http://192.168.10.150/Example";
- Endpoint.publish(adr, srv) ;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement