Sean, I think the reference you want in the spec is here: http://www.w3.org/TR/SOAP/#_Toc478383489
Although, the SOAP spec uses the namespace prefixes of SOAP-ENV and SOAP-ENC, these prefixes aren't required. You can use any string you like as a namespace prefix, just as long as it maps to the appropriate namespace name. The reason why the spec bothers with telling us the notational conventions is that prefix names (e.g., SOAP-ENV) aren't normative, and the spec just happens to be using this set of naming conventions. So the prefix name doesn't matter. Only the actual referenced namespace name (e.g., http://schema.xmlsoap.org/soap/envelope/) matters. Notice that the normative spec describing the SOAP Envelope [1] only specifies the namespace identifier. It does not specify a mandatory namespace prefix. A namespace prefix is basically a variable that represents the namespace name. When processing a Qname, you must map the prefix to its namespace name before processing. You might want to read up on namespaces [2]. [1] http://www.w3.org/TR/SOAP/#_Toc478383494 [2] http://www.w3.org/TR/REC-xml-names/ Anne ----- Original Message ----- From: "Sean Leblanc" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 05, 2003 2:51 PM 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 >
