| Author |
Rpc with Part referece to element
|
Karthik Rajendiran
Ranch Hand
Joined: Aug 13, 2004
Posts: 209
|
|
Hello Friends, I am getting mysterious doubts. If the wsdl has the following structure xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://stock.org/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <xsd:schema targetNamespace="http://stock.org/"> <xsd:element name="getQuote1"> <xsd:complexType> <xsd:sequence> <xsd:element name="symbol1" type="xsd:string" /> </xsd:sequence> </xsd:complexType> </xsd:element> <xsd:element name="getQuoteResponse"> <xsd:complexType> <xsd:sequence> <xsd:element name="getQuoteResult" type="xsd ecimal" /> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> </types> <message name="getQuoteSoapIn"> <part name="symbol" element="tns:getQuote1" /> </message> <message name="getQuoteSoapOut"> <part name="return" element="tns:getQuoteResponse" /> </message> <portType name="testSoap"> <operation name="getQuote"> <input message="tns:getQuoteSoapIn" /> <output message="tns:getQuoteSoapOut" /> </operation> </portType> The Style is RPC and part is referring to element Generally we give RPC part as type attribute. The body request would be <body> <operationname> <partname-input> </operationname> </body> The same in DOC based, if element is given body <element name (as given within shema tag of types tag in wsdl> </element </body> I would like to know other tow combinations ,if element is given in RPc and tyep is given in document, what would be the soap body be for the above example Can anyone please help me out? Karthik R
|
SCJP 1.4 SCWCD 1.4 SCDJWS 1.4
|
 |
 |
|
|
subject: Rpc with Part referece to element
|
|
|