title: Remove custom tags from web service response
body: <p>I have created a simple web service using Java and axis 2. The output i am getting is as follows,</p>
  
  <p>Input-
  <strong>http://localhost:8088/Newwww/services/NewFile/newFile?s=New%20data3</strong></p>
  
  <p>Output-</p>
  
  <pre><code>&lt;ns:newFileResponse xmlns:ns="http://Services.tcs.com"&gt;
  - &lt;ns:return&gt;
  - &lt;TestData&gt;
    &lt;testData1&gt;New data1&lt;/testData1&gt; 
    &lt;testData2&gt;New data2&lt;/testData2&gt; 
    &lt;testData3&gt;New data3&lt;/testData3&gt; 
    &lt;/TestData&gt;
    &lt;/ns:return&gt;
    &lt;/ns:newFileResponse&gt;
  </code></pre>
  
  <p>How can i remove the tags starting with ns:
  In short i want the response to be only </p>
  
  <pre><code>&lt;TestData&gt;
    &lt;testData1&gt;New data1&lt;/testData1&gt; 
    &lt;testData2&gt;New data2&lt;/testData2&gt; 
    &lt;testData3&gt;New data3&lt;/testData3&gt; 
    &lt;/TestData&gt;
  </code></pre>
  
  <p>My WSDL file looks like this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt; 
  - &lt;wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:ns="http://Services.tcs.com" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://Services.tcs.com"&gt;
    &lt;wsdl:documentation&gt;Please Type your service description here&lt;/wsdl:documentation&gt; 
  - &lt;wsdl:types&gt;
  - &lt;xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://Services.tcs.com"&gt;
  - &lt;xs:element name="newFile"&gt;
  - &lt;xs:complexType&gt;
  - &lt;xs:sequence&gt;
    &lt;xs:element minOccurs="0" name="s" nillable="true" type="xs:string" /&gt; 
    &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  - &lt;xs:element name="newFileResponse"&gt;
  - &lt;xs:complexType&gt;
  - &lt;xs:sequence&gt;
    &lt;xs:element minOccurs="0" name="return" nillable="true" type="xs:anyType" /&gt; 
    &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
    &lt;/xs:schema&gt;
    &lt;/wsdl:types&gt;
  - &lt;wsdl:message name="newFileRequest"&gt;
    &lt;wsdl:part name="parameters" element="ns:newFile" /&gt; 
    &lt;/wsdl:message&gt;
  - &lt;wsdl:message name="newFileResponse"&gt;
    &lt;wsdl:part name="parameters" element="ns:newFileResponse" /&gt; 
    &lt;/wsdl:message&gt;
  - &lt;wsdl:portType name="NewFilePortType"&gt;
  - &lt;wsdl:operation name="newFile"&gt;
    &lt;wsdl:input message="ns:newFileRequest" wsaw:Action="urn:newFile" /&gt; 
    &lt;wsdl:output message="ns:newFileResponse" wsaw:Action="urn:newFileResponse" /&gt; 
    &lt;/wsdl:operation&gt;
    &lt;/wsdl:portType&gt;
  - &lt;wsdl:binding name="NewFileSoap11Binding" type="ns:NewFilePortType"&gt;
    &lt;soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /&gt; 
  - &lt;wsdl:operation name="newFile"&gt;
    &lt;soap:operation soapAction="urn:newFile" style="document" /&gt; 
  - &lt;wsdl:input&gt;
    &lt;soap:body use="literal" /&gt; 
    &lt;/wsdl:input&gt;
  - &lt;wsdl:output&gt;
    &lt;soap:body use="literal" /&gt; 
    &lt;/wsdl:output&gt;
    &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
  - &lt;wsdl:binding name="NewFileSoap12Binding" type="ns:NewFilePortType"&gt;
    &lt;soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /&gt; 
  - &lt;wsdl:operation name="newFile"&gt;
    &lt;soap12:operation soapAction="urn:newFile" style="document" /&gt; 
  - &lt;wsdl:input&gt;
    &lt;soap12:body use="literal" /&gt; 
    &lt;/wsdl:input&gt;
  - &lt;wsdl:output&gt;
    &lt;soap12:body use="literal" /&gt; 
    &lt;/wsdl:output&gt;
    &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
  - &lt;wsdl:binding name="NewFileHttpBinding" type="ns:NewFilePortType"&gt;
    &lt;http:binding verb="POST" /&gt; 
  - &lt;wsdl:operation name="newFile"&gt;
    &lt;http:operation location="NewFile/newFile" /&gt; 
  - &lt;wsdl:input&gt;
    &lt;mime:content type="text/xml" part="newFile" /&gt; 
    &lt;/wsdl:input&gt;
  - &lt;wsdl:output&gt;
    &lt;mime:content type="text/xml" part="newFile" /&gt; 
    &lt;/wsdl:output&gt;
    &lt;/wsdl:operation&gt;
    &lt;/wsdl:binding&gt;
  - &lt;wsdl:service name="NewFile"&gt;
  - &lt;wsdl:port name="NewFileHttpSoap11Endpoint" binding="ns:NewFileSoap11Binding"&gt;
    &lt;soap:address location="http://localhost:8088/Newwww/services/NewFile.NewFileHttpSoap11Endpoint/" /&gt; 
    &lt;/wsdl:port&gt;
  - &lt;wsdl:port name="NewFileHttpSoap12Endpoint" binding="ns:NewFileSoap12Binding"&gt;
    &lt;soap12:address location="http://localhost:8088/Newwww/services/NewFile.NewFileHttpSoap12Endpoint/" /&gt; 
    &lt;/wsdl:port&gt;
  - &lt;wsdl:port name="NewFileHttpEndpoint" binding="ns:NewFileHttpBinding"&gt;
    &lt;http:address location="http://localhost:8088/Newwww/services/NewFile.NewFileHttpEndpoint/" /&gt; 
    &lt;/wsdl:port&gt;
    &lt;/wsdl:service&gt;
    &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>Thanks..</p>