Before you begin
Develop a client that has a Web Services Description Language (WSDL) file or service implementation.Why and when to perform this task
Creating clients to access the SOAP services published in WebSphere Application Server is a straightforward process. The Apache SOAP implementation, integrated with WebSphere Application Server, contains a client API to assist in SOAP client application development.
The SOAP API documentation is available in WebSphere Application Server Java documentation.
To create a client that interacts with a SOAP Remote Procedure Call (RPC) service:Steps for this task
Pass the Uniform Resource Name (URN), a type of URI, that the service uses for its identifier, in the deployment descriptor.
This method must be one of the methods exposed by the service located at the URN from the previous step.
What to do next
Interacting with a document-oriented SOAP service requires you to use lower-level Apache SOAP API calls. You must first construct an envelope object containing the contents of the message, including the body and any headers, that you wish to send. Then create a message object where you invoke the send() method to perform the actual transmission.To create a secure SOAP service, do the following:
Your code can look like the following example:
EnvelopeEditor editor= new PluggableEnvelopeEditor(new InputSource(conf), home); SOAPTransport transport = new FilterTransport(editor, new SOAPHTTPConnection()); call.setSOAPTransport(transport);
The characteristics of the secure session are specified by the conf configuration file.