You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Tim Wei <ti...@yahoo.com> on 2002/01/16 23:21:49 UTC

default Namespace URI - ns1

Hi,

How can I change the "ns1" in the following to some thing I
define using Apache Soap?

<ns1:VerifyCreditCard xmlns:ns1="http://tempuri.org/"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

I want to change both "ns1".

Thank you very much.


Tim


=====
Tim's home page: 
http://www.geocities.com/timwei

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/

RE: default Namespace URI - ns1

Posted by Anne Thomas Manes <an...@manes.net>.
Tim,

Is your question how to change the namespace or the namespace qualifier?

You can change the namespace qualifier as long as you change it both in the
place where it's defined and in all places its being used. The namespace
qualifier is defined in the xmlns:xxx="uri" attribute. It's used in every
element or attribute that begins with xxx:.

So you could change this element to read:

> <myns:VerifyCreditCard xmlns:myns="http://tempuri.org/"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

If you want to change the namespace, simply change the uri to point to your
namespace. A namespace uri can be a relative or absolute reference, but if
it's a relative reference, you'll probably need to import the namespace so
that the WSDL processor can look up the definition of your VerifyCreditCard
element.

Regards,
Anne


-----Original Message-----
> From: Tim Wei [mailto:timwei@yahoo.com]
> Sent: Wednesday, January 16, 2002 2:22 PM
> To: soap-user@xml.apache.org
> Subject: default Namespace URI - ns1
>
>
> Hi,
>
> How can I change the "ns1" in the following to some thing I
> define using Apache Soap?
>
> <ns1:VerifyCreditCard xmlns:ns1="http://tempuri.org/"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>
> I want to change both "ns1".
>
> Thank you very much.
>
>
> Tim
>
>
> =====
> Tim's home page:
> http://www.geocities.com/timwei
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/


RE: default Namespace URI - ns1

Posted by Anne Thomas Manes <an...@manes.net>.
Tim,

Is your question how to change the namespace or the namespace qualifier?

You can change the namespace qualifier as long as you change it both in the
place where it's defined and in all places its being used. The namespace
qualifier is defined in the xmlns:xxx="uri" attribute. It's used in every
element or attribute that begins with xxx:.

So you could change this element to read:

> <myns:VerifyCreditCard xmlns:myns="http://tempuri.org/"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

If you want to change the namespace, simply change the uri to point to your
namespace. A namespace uri can be a relative or absolute reference, but if
it's a relative reference, you'll probably need to import the namespace so
that the WSDL processor can look up the definition of your VerifyCreditCard
element.

Regards,
Anne


-----Original Message-----
> From: Tim Wei [mailto:timwei@yahoo.com]
> Sent: Wednesday, January 16, 2002 2:22 PM
> To: soap-user@xml.apache.org
> Subject: default Namespace URI - ns1
>
>
> Hi,
>
> How can I change the "ns1" in the following to some thing I
> define using Apache Soap?
>
> <ns1:VerifyCreditCard xmlns:ns1="http://tempuri.org/"
> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>
> I want to change both "ns1".
>
> Thank you very much.
>
>
> Tim
>
>
> =====
> Tim's home page:
> http://www.geocities.com/timwei
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/