• Post Reply Bookmark Topic Watch Topic
  • New Topic

Rpc with Part referece to element  RSS feed

Karthik Rajendiran
Ranch Hand
Posts: 218
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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/"
<xsd:schema targetNamespace="http://stock.org/">
<xsd:element name="getQuote1">
<xsd:element name="symbol1" type="xsd:string" />
<xsd:element name="getQuoteResponse">
<xsd:element name="getQuoteResult" type="xsd ecimal" />

<message name="getQuoteSoapIn">
<part name="symbol" element="tns:getQuote1" />
<message name="getQuoteSoapOut">
<part name="return" element="tns:getQuoteResponse" />
<portType name="testSoap">
<operation name="getQuote">
<input message="tns:getQuoteSoapIn" />
<output message="tns:getQuoteSoapOut" />

The Style is RPC and part is referring to element

Generally we give RPC part as type attribute.

The body request would be

The same in DOC based, if element is given
<element name (as given within shema tag of types tag in wsdl>

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
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!