Axis2 response namespaces

Mark Kvistgaard Thomsen <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <D4EC96AC4947594DB8EA4A9CEEA957BA73EFD59171@CDRSRVEX>
Hello

I'm handling a SOAP service, which we build with Ant on Hudson and I'm new to Axis, but one of our clients has asked if we can remove some information from our Webservice response. Namely the ax226 or similar numbers.

Here's an example of a response we send to a request (with some links changed):

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
                <soapenv:Body>
                                <ns:addPromoResponse xmlns:ns="http://soap.company.com">
                                                <ns:return xmlns:ax227="http://core.soap.company.com/xsd" xmlns:ax223="http://service.soap.company.com/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ax226="http://soap.company.com/xsd" xsi:type="ax226:AddPromoResponseDTO">
                                                                <ax226:errorCode xsi:nil="true" />
                                                                <ax226:status>SU</ax226:status>
                                                                <ax226:errorMessage xsi:nil="true" />
                                                                <ax226:errorName xsi:nil="true" />
                                                </ns:return>
                                </ns:addPromoResponse>
                </soapenv:Body>
</soapenv:Envelope>

Our customer has a simple response parser that does not handle the ax226 and ax227 etc. prefixes, but goes straight to the element name. Can the prefixes be removed somehow in the configuration?

Any help appreciated. Thanks in advance.

Best Regards
Mark K. Thomsen
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.