Namespace repeated in response
"Legaspi, Patrick" <[email protected]>
| Newsgroups | gmane.text.xml.axis.user |
|---|---|
| Message-ID | <062A57962D626B4C9B68400BB20872080106B5E5AC6B@MSGDALCCRC2WIN.DMN1.FMR.COM> |
Hello,
I'm a novice of Axis, using version 1.4 1855 April 22 2006 for my webservice.
I notice that when I include a namespace in the operation element of my soap request, for example below xmlns:dat="foobar"
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dat="http://myservice.my.ca">
<soapenv:Header/>
<soapenv:Body>
<dat:getStuff xmlns:dat="foobar">
<dat:in0>
<dat:language>FR</dat:language>
</dat:in0>
</dat:getStuff>
</soapenv:Body>
</soapenv:Envelope>
I get the namespace repeated in the response as xmlns="foobar"
<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>
<getStuffResponse xmlns="foobar">
<getStuffReturn>
...
Can Axis be configured to do any of these:
- not have the namespace repeated
- return a fault since xmlns:dat="foobar" doesn't match xmlns:dat="http://myservice.my.ca" in the <soapenv> request element
- return a fault when xmlns is given in the operation element
- html-encode the repeated namespace
Thanks,
Patrick Legaspi