Solved

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

Posted on 2004-08-21
4
213 Views
Last Modified: 2013-11-19
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
0
Comment
Question by:mos
  • 3
4 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 11858145
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
0
 

Author Comment

by:mos
ID: 11858203
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. "
0
 
LVL 35

Accepted Solution

by:
girionis earned 400 total points
ID: 11858512
I am not sure then :( I have only limited experiance of SOAP, from the little I did I never used any "default" tags.
0
 
LVL 35

Expert Comment

by:girionis
ID: 11926094
:)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
The viewer will learn how to count occurrences of each item in an array.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now