You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jess Fisher <d_...@yahoo.com> on 2007/04/07 02:02:34 UTC

How to not use prefix "ns1"?

My SOAP always includes the prefix "ns1".
   
  <?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header/>
  <soapenv:Body>
    <ns1:getServiceDescriptionResponse xmlns:ns1="urn:oasis:names:tc:wsrp:v1:types">
      <ns1:requiresRegistration>false</ns1:requiresRegistration>
      
  ....
  ....
      </ns1:getServiceDescriptionResponse>
  </soapenv:Body>
</soapenv:Envelope>
   
  What can I do so that it does not include the prefix "ns1" ? 
  For example: I just want this:
  <getServiceDescriptionResponse xmlns="urn:oasis:names:tc:wsrp:v1:types">
   

 
---------------------------------
Don't get soaked.  Take a quick peek at the forecast 
 with theYahoo! Search weather shortcut.

Re: How to not use prefix "ns1"?

Posted by Anne Thomas Manes <at...@gmail.com>.
Why?

As a general rule, when a document includes elements from multiple
namespaces, it's best to avoid using the default namespace. The two
documents are semantically equivalent, so why does it matter?

Anne

On 4/6/07, Jess Fisher <d_...@yahoo.com> wrote:
> My SOAP always includes the prefix "ns1".
>
> <?xml version="1.0"?>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>   <soapenv:Header/>
>   <soapenv:Body>
>     <ns1:getServiceDescriptionResponse
> xmlns:ns1="urn:oasis:names:tc:wsrp:v1:types">
>
> <ns1:requiresRegistration>false</ns1:requiresRegistration>
>
> ....
> ....
>     </ns1:getServiceDescriptionResponse>
>   </soapenv:Body>
> </soapenv:Envelope>
>
> What can I do so that it does not include the prefix "ns1" ?
> For example: I just want this:
> <getServiceDescriptionResponse
> xmlns="urn:oasis:names:tc:wsrp:v1:types">
>
>
>  ________________________________
>  Don't get soaked. Take a quick peek at the forecast
>  with theYahoo! Search weather shortcut.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org