Solved

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

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which non-HTML GUI front end to use with Java? 3 50
Print Rhino Java Array in Javascript 1 30
collection output issue 9 59
web project error add remove 1 49
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

685 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