Assuming Java:
1.- Execute:
wsimport -keep -p myClient url_to_wsdl
Where myClient will be a folder with the generated client's artifacts. url_to_wsdl the url to your WSDL.
2.- Create a client class with a method with the following code:
YourServiceClass service = new YourServiceClass();
YourEndpointClass port = service.getPort();
YourRequestClass request = new YourRequestClass();
YourMessageClass message = new YourMessageClass(); //In case you have it
message.setParam1(param1); //depending on your message
message.setParam2(param2);
request.setMessage(message);
YourResponseClass response = port.ServiceOperation(request); //This call locks execution
System.out.println(response.getMessage().getResponse());
YourServiceClass is the generated artifact the extends javax.xml.ws.Service.
YourEndpointClass can be seen in YourServiceClass in an operation that calls super.getPort();
YourRequestClass and YourResponseClass will depend on how is managed the Request and Response message.
YourMessageClass would be a wrapper class for your message (depending on WSDL).
All Your* classes must have been generated by wsimport
and imported to your client class.
With the flag -keep
in wsimport
you'll be able to see the .java
files and determine which classes you require to complete this code.