The Apache SOAP implementation, integrated with WebSphere Application Server - Express, contains a client API to assist in SOAP client application development. Because the SOAP API is a standard for Web services, any clients that you create to access the WebSphere Application Server - Express SOAP services can also run in different implementations.
The steps for creating a client that interacts with a SOAP Remote Procedure Call (RPC) service include:
Note: The RPC call is synchronous, so it might take some time to complete.
Note: Although most of the providers only return a result, the DB2 stored procedure provider can also return output parameters.
Interacting with a document oriented SOAP service requires you to use lower level Apache SOAP API calls. You must first construct an Envelope object that contains the contents of the message (including the body and any headers) that you want to send. Then create a Message object in which you invoke the send() method to perform the actual transmission.
Creating a secure SOAP service
To create a secure SOAP service, perform these steps:For more information about the envelope editor, see Envelope object.
Your code might look like this example:
Note: For legal information about this code example, see the Code example disclaimer.
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 configuration file, conf.