Solved

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

Posted on 2004-08-21
4
220 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

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

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

687 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