You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Brain, Jim" <JB...@Aegonusa.com> on 2003/03/06 17:16:36 UTC

Sanity check for doc/lit service

I read the 1.1 spec, but didn't see an answer.

If you build a doc/lit web service (AXIS or other), let's say with a
document with root of <Jim>, should it be:

<Envelope>
<Body>
<Jim>
...


Or 

<Envelope>
<Body>
<Insert_transaction_name_here>
<Jim>
...

I noticed that the RPC style uses the latter, and the service name is placed
in the <insert....> location.  

So, should I

*	Construct doc/lit SOAP msgs like RPC, with a service name below
Body, and my doc below the service name
*	Put my Doc XML right below Body?
*	Do either, as there is no standard?

Enquiring Minds want to know, and can't seem to find the answer on Google or
in the standard.

Jim


Jim Brain, jbrain@aegonusa.com <ma...@aegonusa.com> 
"Researching tomorrow's decisions today."
(319) 369-2070 (work)
Systems Architect, ITS, AEGON Financial Partners


RE: Sanity check for doc/lit service

Posted by Anne Thomas Manes <an...@manes.net>.
Jim,

Doc/lit uses the former format. And there's no formal way to indicate the
operation name. Axis determines the operation based on the namespace and the
top level element in the body (the message). Many other systems rely on
SOAPAction or perhaps a SOAP header element.

Anne

> -----Original Message-----
> From: Brain, Jim [mailto:JBrain@Aegonusa.com]
> Sent: Thursday, March 06, 2003 11:17 AM
> To: AXIS Mailing List (E-mail)
> Subject: Sanity check for doc/lit service
>
>
> I read the 1.1 spec, but didn't see an answer.
>
> If you build a doc/lit web service (AXIS or other), let's say with a
> document with root of <Jim>, should it be:
>
> <Envelope>
> <Body>
> <Jim>
> ...
>
>
> Or
>
> <Envelope>
> <Body>
> <Insert_transaction_name_here>
> <Jim>
> ...
>
> I noticed that the RPC style uses the latter, and the service
> name is placed
> in the <insert....> location.
>
> So, should I
>
> *	Construct doc/lit SOAP msgs like RPC, with a service name below
> Body, and my doc below the service name
> *	Put my Doc XML right below Body?
> *	Do either, as there is no standard?
>
> Enquiring Minds want to know, and can't seem to find the answer
> on Google or
> in the standard.
>
> Jim
>
>
> Jim Brain, jbrain@aegonusa.com <ma...@aegonusa.com>
> "Researching tomorrow's decisions today."
> (319) 369-2070 (work)
> Systems Architect, ITS, AEGON Financial Partners
>