You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Dana Kaufman <jj...@yahoo.com> on 2004/08/25 05:30:44 UTC
Axis response has incorrect namespace?
I can't figure this out. I have a simple Echo web
service written in Java using Axis. Axis appears to
return a namespace attribute as part of the wrong
element. My response looks like this:
<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>
<echoResponse xmlns="">
<ns1:echoReturn
xmlns:ns1="http://test.forum.com">Test</ns1:echoReturn>
</echoResponse>
</soapenv:Body>
</soapenv:Envelope>
The problem is that the namespace attribute is listed
in the <ns1:echoReturn> element, it should be in the
<echoReponse> like this:
<echoResponse xmlns="http://test.forum.com">
How can I fix this? Seems like a configuration issue?
-Dana
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
RE: Axis response has incorrect namespace?
Posted by Anne Thomas Manes <an...@manes.net>.
Let's see your WSDL document...
-----Original Message-----
From: Dana Kaufman [mailto:jjct1@yahoo.com]
Sent: Tuesday, August 24, 2004 11:31 PM
To: axis-user@ws.apache.org
Subject: Axis response has incorrect namespace?
I can't figure this out. I have a simple Echo web
service written in Java using Axis. Axis appears to
return a namespace attribute as part of the wrong
element. My response looks like this:
<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>
<echoResponse xmlns="">
<ns1:echoReturn
xmlns:ns1="http://test.forum.com">Test</ns1:echoReturn>
</echoResponse>
</soapenv:Body>
</soapenv:Envelope>
The problem is that the namespace attribute is listed
in the <ns1:echoReturn> element, it should be in the
<echoReponse> like this:
<echoResponse xmlns="http://test.forum.com">
How can I fix this? Seems like a configuration issue?
-Dana
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com