I mean unqualified.
Seeing your affirmative response, I had a look in the client code. The DOM parsing was wrong. JAX-RPC, as you say, handles well valid namespace attribute. The DOM parser was not expecting any attribute...


Your help has been really appreciated.

Jean-Francois.


Anne Thomas Manes wrote:

What do you mean by "anonymous" elements? If the elements are supposed to be
unqualified, then the xmlns="" attribute is valid.


And what error is Sun JAX-RPC giving you? I can't believe that Sun JAX-RPC
can't handle a valid XML namespace attribute.


Please provide us with your WSDL document.

Anne


-----Original Message-----
From: Jean-Francois Denise - Sun Microsystems
[mailto:[EMAIL PROTECTED] Sent: Tuesday, September 28, 2004 12:33 PM
To: [EMAIL PROTECTED]
Subject: Problem using MsgProvider


I have a service that implements SOAPBodyElement [] / SOAPBodyElement [] method.

Everything goes well when dealing with the incoming request. The SOAPBodyElement[] is received, the request is processed and the
response is sent back.


The problem appears in the sent XML.

It seems that Axis, when marshalling the returned SOAPBodyElement, adds an xmlns="" attribute to all anonymous elements.
My client (a sun JAX-RPC) fails to handle such attribute.


Questions:
--------
1) Is there a way to avoid having this attribute to be added? Do we have to declare explicitely namespaces?
2) Each element declares its namespace (this is really a big overhead). Is it possible to declare it at the envelop level?


Thanks.


Response XML :
= Out message: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
<soapenv:Body>
<ns0:management-response xmlns:ns0="http://soap.jmx.sun.com";>
<ns0:management-action-results xmlns:ns0="http://soap.jmx.sun.com";>
<result xmlns="">
<read-connectionid-result xmlns="">
<connectionid xmlns="">4bdq0m08lpjll</connectionid>
</read-connectionid-result>
</result>
</ns0:management-action-results>
</ns0:management-response>
</soapenv:Body>
</soapenv:Envelope>






--
----------------------------------------------------------------------
Jean-Francois Denise Sun Microsystems
Sun ONE/Java Web Services
email: [EMAIL PROTECTED] Internal home page : http://icncweb.france/~jfdenise
-------------------------------------------------------------------




Reply via email to