tags:

views:

25

answers:

1

I have a webserivce deployed using axis2. The method on the service class returns a string.

public String getXML(){ return "Hello..."; }

and the service is configured like this

<operation name="getXML">
            <messageReceiver mep="http://www.w3.org/ns/wsdl/in-out"
                class="org.apache.axis2.rpc.receivers.RPCMessageReceiver" />
        </operation>

when I call this service from browser(RESTful) I get response like this

<ns:getXMLResponse xmlns:ns="http://service.drugservice.xyz.com"&gt;&lt;ns:return&gt;&amp;lt;response&gt;Hello...&amp;lt;/response&gt;&lt;/ns:return&gt;&lt;/ns:getXMLResponse&gt;

I don't want the xml:ns around the response string. How can I do it? I want to the see the response as

<reponse>Hello...</response>