Note that stuffing a namespace declaration in the SOAP Envelope does not change the 
SOAP message semantics.  It may stick out to a human reading the message, but it makes 
no difference to software reading the message.

Normally, a namespace would be in the request only if it was needed to correctly 
process the request.  It is common to use such a namespace as part of the 
targetObjectURI.  It is also common to have XML Schema complexTypes that are in such a 
namespace.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Dimple Joesph" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 04, 2004 12:47 PM
Subject: Re: namespace


> just to make sure that all soap requests do have the company namespace
> declared.
> 
> 
> ----- Original Message -----
> From: "Scott Nichol" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 03, 2004 8:54 PM
> Subject: Re: namespace
> 
> 
> The call.buildEnvelope() will get you an Envelope to inspect and play with,
> but call.invoke(...) internally calls call.buildEnvelope() again, creating a
> new envelope that is independent of the one you previously manipulated.
> 
> To my knowledge, there is no way using the RPC API to add an attribute to
> the SOAP Envelope.  If you use the messaging API, you would have this
> freedom.
> 
> My question would be, why do you need this particular namespace declared on
> the SOAP Envelope element?
> 
> Scott Nichol
> 
> Do not send e-mail directly to this e-mail address,
> because it is filtered to accept only mail from
> specific mail lists.
> ----- Original Message -----
> From: "Dimple Joesph" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, August 03, 2004 8:59 PM
> Subject: Re: namespace
> 
> 
> > Call call = new Call();
> >  call.setSOAPMappingRegistry(smr);
> >   Envelope env = call.buildEnvelope();
> >  env.declareNamespace("acme","http://acmecorp.com/namespace";);
> >
> >  call.setTargetObjectURI(URN);
> >   call.setMethodName("method");l
> > call.invoke();
> >
> >
> > ----- Original Message -----
> > From: "Scott Nichol" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, August 03, 2004 4:41 PM
> > Subject: Re: namespace
> >
> >
> > Can you be more specific about how you "get the envelope"?
> >
> > Scott Nichol
> >
> > Do not send e-mail directly to this e-mail address,
> > because it is filtered to accept only mail from
> > specific mail lists.
> > ----- Original Message -----
> > From: "Dimple Joesph" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Sunday, August 01, 2004 5:04 PM
> > Subject: namespace
> >
> >
> > In a call i get the envelope and do env.declarenamespace but the namespace
> > is not set in the envelope.can anyone help me with this
> >
> > How do you specify a namespace in soap env like the xmlns :acme.what is
> the
> > command to do so.
> > <SOAP-ENV:Envelope
> >   ...xmlns:acme="http://acmecorp.com/namespace";...>
> >
> >
> 
>

Reply via email to