Again, the name doesn't matter.  You could say "foo:envelope".  As long as foo 
resolves to the canonical SOAP envelope URL, there shouldn't be any problems.  More 
precisely, your envelope element should look like this:

<foo:Envelope xmlns:foo="http://schemas.xmlsoap.org/soap/envelope/";>
...
</foo:Envelope>

Axis happens to use "soapenv".  Hope this makes more sense.  Note that this URL is 
different for every version of SOAP so you can tell which version of SOAP a message 
used by checking the namespace it uses.  The URL above is the SOAP 1.1 envelope 
namespace.  Here's the SOAP 1.2 details:

http://www.w3.org/TR/soap12-part1/#soapenvelope

-----Original Message-----
From:   Sean Leblanc [mailto:[EMAIL PROTECTED]
Sent:   Tue 8/5/2003 1:51 PM
To:     '[EMAIL PROTECTED]'
Cc:     
Subject:        RE: SOAP-ENV vs. soapenv (was RE: Formatting the envelope?)
Thanks for the response.

Maybe I'm being daft here, but shouldn't it work similarly on the sending
side to format what it is sending?


Regarding the SOAP-ENV vs. soapenv, is there any background info on when
this was changed or what standard is which?

At this link:

http://www.w3.org/TR/SOAP/#_Toc478383495

Under 1.2, they talk of SOAP-ENV and SOAP-ENC, for example.


Confused,
Sean LeBlanc



-----Original Message-----
From: Mike Perham [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 12:04 PM
To: [EMAIL PROTECTED]
Subject: RE: SOAP-ENV vs. soapenv (was RE: Formatting the envelope?)


Sounds like the bug is in your service provider.  Namespace names should not
be hard-coded but rather resolved and the qnames compared.  In other words,
if your SOAP looks like this

<soap-env:Envelope xmlns:soap-env="http://soap";>

Your provider should NOT be doing this (psuedo-code):

If (element == "SOAP-ENV:Envelope") {

But rather:

if (element == "{http://soap}Envelope";) {

Make sense?  The SOAP spec gives the canonical URI for the envelope
namespace.


-----Original Message-----
From: Sean Leblanc [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 1:00 PM
To: '[EMAIL PROTECTED]'
Subject: SOAP-ENV vs. soapenv (was RE: Formatting the envelope?)


Since no one replied to this, here's more:

I downloaded the source to 1.1 release, and I see this:

 public static final String NS_PREFIX_SOAP_ENV   = "soapenv";

in org.apache.axis.Constants. But I'm not sure if this is always used? 

I did see that someone else asked the exact same question as I did, but
there were no followups:

http://marc.theaimsgroup.com/?l=axis-user&m=105968266717515&w=2


Thanks,

Sean LeBlanc



-----Original Message-----
From: Sean Leblanc [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 04, 2003 5:31 PM
To: '[EMAIL PROTECTED]'
Subject: Formatting the envelope?


I'm wondering if there is any way to tweak the formatting in Axis. The
reason I ask is that I'm trying to call a web service in which the expected
format for the body and envelope look like:

<SOAP-ENV:envelope...
and
<SOAP-ENV:body....

But when I use tcpmon I see I'm sending
soapenv:Envelope & soapenv:Body

And the service doesn't recognize my envelope.


TIA,

Sean LeBlanc



<<winmail.dat>>

Reply via email to