Business objects referenced in concrete API requests (for example, sendMessage, or call) require client applications to use "document/literal wrapped" style elements. Client applications require helper classes to help them generate the necessary wrapper elements.
In the Rational Application Developer environment available in WebSphere Integration Developer, the Web service engine supports JAX-RPC 1.1. In JAX-RPC 1.1, the SoapElement object extends a Document Object Model (DOM) element, so it is possible to use the DOM API to create, read, load, and save SOAP messages.
<xsd:element name="operation1"> <xsd:complexType> <xsd:sequence> <xsd:element name="input1" nillable="true" type="xsd:string"/> </xsd:sequence> </xsd:complexType> </xsd:element>
SOAPFactory soapfactoryinstance = SOAPFactory.newInstance(); SOAPElement soapmessage = soapfactoryinstance.createElement ("operation1", namespaceprefix, interfaceURI); SOAPElement inputelement = soapfactoryinstance.createElement("input1"); inputelement.addTextNode( message value); soapmessage.addChildElement(outputelement);
SendMessage inWsend = new SendMessage(); inWsend.setProcessTemplateName(processtemplatename); inWsend.setPortType(porttype); inWsend.setOperation(operationname); inWsend.set_any(soapmessage);
(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)