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 Johann Kiefel <in...@dshin.net> on 2013/03/04 13:43:47 UTC

Changing Namesspace in​ WSDL from ax24 toa​x21​

Hello, 

i would like to change the default namespace " ax24" to "ax21" that is
included in the automatic generated WSDL Files when i invoke a Web
Service running on tomcat through 

http://hostname:8080/services/MyService?wsdl

Is there any possibility to configure it ? I am using eclipse (4.2) WTPs
Web  Service Creation Wizzards with Axis2 1.6.1. 

The problem is, that the productive web service used by many clients has
the namespace "ax21". One of our  clients has an exotic Web Service
Client and has some kind of fix coded dependency to the namesapce
"ax21". So if we update our productive system, the clients Web Service
Proxy will brake. 

How can we solve this?

<wsdl:types>
<xs:schema xmlns:ax24="http://model.example.de/xsd"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://model.example.de/xsd">
<xs:complexType name="Bid">
<xs:sequence>
<xs:element minOccurs="0" name="bidID" nillable="true"
type="xs:string"/>
<xs:element minOccurs="0" name="bidRank" type="xs:int"/>
<xs:element minOccurs="0" name="bidValue" nillable="true"
type="ax24:BidValue"/>
....
</xs:sequence>

....

</wsdl:type>


Thank you in advance

with best regads

Johann K.





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


Re: Changing Namesspace in WSDL from ax24 to ax21

Posted by Kishanthan Thangarajah <ks...@gmail.com>.
On Mon, Mar 4, 2013 at 6:13 PM, Johann Kiefel <in...@dshin.net> wrote:

>
> Hello,
>
> i would like to change the default namespace " ax24" to "ax21" that is
> included in the automatic generated WSDL Files when i invoke a Web
> Service running on tomcat through
>
> http://hostname:8080/services/MyService?wsdl
>
> Is there any possibility to configure it ? I am using eclipse (4.2) WTPs
> Web  Service Creation Wizzards with Axis2 1.6.1.
>
> The problem is, that the productive web service used by many clients has
> the namespace "ax21". One of our  clients has an exotic Web Service
> Client and has some kind of fix coded dependency to the namesapce
> "ax21". So if we update our productive system, the clients Web Service
> Proxy will brake.
>
> How can we solve this?
>

One possibility is to define the WSDL with correct namespace and include it
in the service archive (in META-INF) and set the "useOriginalwsdl" parameter to
true in services.xml.

But to be correct, you shouldn't depend on the namespace prefix defined in
WSDL. It is there to uniquely distinguish the name-spaces form one another.
IMO, this should not be problem, if the client proxy is written in a way
that it is independent of the namespace prefix in wsdl.

Thanks,
Kishanthan.

>
> <wsdl:types>
> <xs:schema xmlns:ax24="http://model.example.de/xsd"
> attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://model.example.de/xsd">
> <xs:complexType name="Bid">
> <xs:sequence>
> <xs:element minOccurs="0" name="bidID" nillable="true"
> type="xs:string"/>
> <xs:element minOccurs="0" name="bidRank" type="xs:int"/>
> <xs:element minOccurs="0" name="bidValue" nillable="true"
> type="ax24:BidValue"/>
> ....
> </xs:sequence>
>
> ....
>
> </wsdl:type>
>
>
> Thank you in advance
>
> with best regads
>
> Johann K.
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>