구체적 API 요청(예를 들어, sendMessage 또는 call)은 클라이언트 응용프로그램이 "문서/리터럴 랩핑" 스타일 요소를 사용하도록 요구합니다. 클라이언트 응용프로그램은 헬퍼 클래스에 필요한 랩퍼 요소 생성을 돕도록 요구합니다.
WebSphere Integration Developer에서 사용할 수 있는 Rational Application Developer 환경에서 웹 서비스 엔진은 JAX-RPC 1.1을 지원합니다. JAX-RPC 1.1에서 SoapElement 오브젝트는 DOM(Document Object Model) 요소를 확장하므로 DOM API를 사용하여 SOAP 메시지를 작성, 읽기, 로드 및 저장할 수 있습니다.
<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);
ⓒ Copyright IBM Corporation 2005, 2006.
이 Information Center는 Eclipse 기술을 기반으로 합니다. (http://www.eclipse.org)