Link to home
Start Free TrialLog in
Avatar of mos
mos

asked on

What's the name of the first body-tag in SOAP-RPC

Hello,

I didn't find a satisfying answer in die SOAP1.1 or WSDL 1.1 Specs.

If using SOAP-RPC, what is the name of the first tag that follows the body?
Most of the examples show, that for a SOAP-Request the Operation-Name is taken.
The first body tag of SOAP-Response get the Operation-Name appended with "Response".

But there is another statement that the SOAP-Request is appended with a "Request".

Imagine that we define an operation "GetLastTradePrice" in my WSDL.
How should a request look like:

<soapenv:Body>
        <m:GetLastTradePrice xmlns:m="Some-URI">
            <m:tickerSymbol>DIS</m:tickerSymbol>
        </m:GetLastTradePrice>
 </soapenv:Body>

or

<soapenv:Body>
        <m:GetLastTradePriceRequest xmlns:m="Some-URI">
            <m:tickerSymbol>DIS</m:tickerSymbol>
        </m:GetLastTradePrice>
 </soapenv:Body>


Is there somewhere a clear specification how the first body tag is named from an WSDL in  SOAP-RPC???

Thanks
Avatar of girionis
girionis
Flag of Greece image

Hi mos,

AFAIK there is no default tags that follows the body of a SOAP envelope. Both of the code fragments you posted above work fine.

Regards
Avatar of mos
mos

ASKER

Sure, there is a first wrapper tag in the body if usind RPC style.

Please see WSDL Spec, 3.5

"If the operation style is rpc each part is a parameter or a return value and appears inside a wrapper element within the body (following Section 7.1 of the SOAP specification). The wrapper element is named identically to the operation name and its namespace is the value of the namespace attribute. Each message part (parameter) appears under the wrapper, represented by an accessor named identically to the corresponding parameter of the call. Parts are arranged in the same order as the parameters of the call. "
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial