I'm not sure what you mean by a "default URN" given your example --
there is no namespace specified in the child element of the body.
Perhaps what you meant to ask is whether SOAP permits the message
contents to be in the no-namespace namespace.
According to the SOAP 1.1 specification (Section 4.3):
"Immediate child elements of the SOAP Body element MAY
be namespace-qualified."
Which also means that they don't have to be namespace qualified.
Note, though, that the WS-I Basic Profile (Section 3.1.3) constrains
the SOAP 1.1 specification and reverses this laxity:
"R1014 The children of the soap:Body element in an
ENVELOPE MUST be namespace qualified."
Most vendors now view WS-I BP as the final word on clarifications for
the SOAP 1.1 and WSDL 1.1 specifications, which are not formal
standards and contain many ambiguities and contradictions.
You can define a service and or client in Axis that can support the
example message you gave, but you will have to define a
document/literal WSDL, and you will have to generate your code from
the WSDL. Note that many systems will reject the WSDL because it will
include a schema with no targetNamespace.
I strongly suggest that you push back on your client and convince them
to follow WS-I BP guidelines.
Anne
On 9/27/06, Zach Calvert <[EMAIL PROTECTED]> wrote:
Is there a way to map calls to axis to use a default URN? Say for example
that I want to send the following XML to AXIS:
<soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<group>
zach
</group>
</soap:Body>
</soapEnvelope>
How do I get axis to make a call like
SomeClass.makeGroup("zach");
?
Is the above XML even a valid soap call? I ask because this is a client
requirement and I'm not even sure if it is valid soap. If it is valid, can
I get AXIS to work with it?
Thank you,
Zach Calvert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]