title: How to add namespace in a SOAP envelope using axis with Java
body: <p>I'm working on a web service project, where I need to alter the default namespace of a soap envelope. I am using axis-1.4.  The following is the generated SOAP envelope.</p>
  
  <pre><code>&lt;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"&gt; 
    &lt;soapenv:Body&gt; 
        &lt;v1:addClaimRequest xmlns=""&gt; 
          &lt;v1:ClaimsAddRq xsi:type="xsd:string"&gt;&lt;ifx:RqUID&gt;004030000075&lt;/ifx:RqUID&gt;     
          &lt;/v1:ClaimsAddRq&gt; 
       &lt;/v1:addClaimRequest&gt; 
    &lt;/soapenv:Body&gt;  
   &lt;/soapenv:Envelope&gt; 
  </code></pre>
  
  <p>Following is my Java code:</p>
  
  <pre><code>    _call.setUseSOAPAction(true);
      _call.setSOAPActionURI("v1");
      _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
      _call.setOperationName(new QName("xmlns:v1=urn://shivamath.com/prodschnsmngt/v1/","v1:addClaimRequest"));
      _call.addParameter("v1:ClaimsAddRq",org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
      _call.setTargetEndpointAddress(locator);
      _call.setEncodingStyle("");
      setRequestHeaders(_call);
      setAttachments(_call);
  </code></pre>
  
  <p>Following is the expected namespace to generate:</p>
  
  <pre><code>&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:v1="urn://grupoaval.com/prodschnsmngt/v1/"     
    xmlns:ifx="urn://grupoaval.com/xsd/ifx/"&gt; 
    &lt;soapenv:Body&gt; 
      &lt;v1:addClaimRequest xmlns=""&gt; 
        &lt;v1:ClaimsAddRq xsi:type="xsd:string"&gt;&lt;ifx:RqUID&gt;004030000075&lt;/ifx:RqUID&gt;   
      &lt;/v1:ClaimsAddRq&gt; 
    &lt;/v1:addClaimRequest&gt; 
   &lt;/soapenv:Body&gt; 
  </code></pre>
  
  <p> </p>
  
  <p>Please guide me out of this problem.</p>