This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Web Services Certification (SCDJWS/OCPJWSD) and the fly likes Rpc with Part referece to element Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCPJWSD)
Reply Bookmark "Rpc with Part referece to element" Watch "Rpc with Part referece to element" New topic
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Rpc with Part referece to element
 
Similar Threads
Cannot create service instance, service 'x' not found in wsdl
ws-i compliance questions
Client stubs incorrect from wsdl using Axis
Errors in WSDL2Java
How to access byte array web method