Solved

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

Posted on 2004-08-21
4
210 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 2 42
Using YubiKey with REST API application 2 78
wordmultiple challenge 12 89
Problem to picture file 3 38
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.
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to count occurrences of each item in an array.
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…

707 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

13 Experts available now in Live!

Get 1:1 Help Now