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 Tom Jordahl <to...@macromedia.com> on 2002/03/13 23:48:40 UTC

RE: WSDL compliant ?!

In the current CVS source, this work 2 ways:

1. Only a single CurrentWeather type is referenced, so a single Java class it output:

java org.apche.axis.wsdl.WSDL2Java --verbose http://www.vbws.com/services/weatherretriever.asmx?WSDL

Parsing XML file:  http://www.vbws.com/services/weatherretriever.asmx?WSDL
Generating type implementation:  d:\tmp\org\tempuri\CurrentWeather.java
Generating portType interface:  d:\tmp\org\tempuri\WeatherRetrieverSoap.java
Generating client-side stub:  d:\tmp\org\tempuri\WeatherRetrieverSoapStub.java
Generating service class:  d:\tmp\org\tempuri\WeatherRetriever.java
Generating service class:  d:\tmp\org\tempuri\WeatherRetrieverLocator.java


2. The --all switch is given, and an error will occur if the default namespace mapping is used for the two namespaces (http://tempuri.org/literalTypes and http://tempuri.org/).  The solution is to map the two namespaces differently:

java org.apche.axis.wsdl.WSDL2Java --all --verbose
    -Nhttp://tempuri.org/literalTypes=foo 
    -Nhttp://tempuri.org/=bar 
    http://www.vbws.com/services/weatherretriever.asmx?WSDL

Parsing XML file:  http://www.vbws.com/services/weatherretriever.asmx?WSDL
Generating type implementation:  d:\tmp\bar\CurrentWeather.java
Generating type implementation:  d:\tmp\foo\CurrentWeather.java
Generating portType interface:  d:\tmp\bar\WeatherRetrieverSoap.java
Generating client-side stub:  d:\tmp\bar\WeatherRetrieverSoapStub.java
Generating portType interface:  d:\tmp\bar\WeatherRetrieverHttpPost.java
Generating service class:  d:\tmp\bar\WeatherRetriever.java
Generating service class:  d:\tmp\bar\WeatherRetrieverLocator.java
Generating portType interface:  d:\tmp\bar\WeatherRetrieverHttpGet.java

--
Tom Jordahl
Macromedia


-----Original Message-----
From: herve attia [mailto:herve_attia@hotmail.com]
Sent: Wednesday, March 13, 2002 1:55 PM
To: axis-user@xml.apache.org
Subject: WSDL compliant ?!



I came accross some WSDL from Microsoft.NET and it sounds that sometimes the Axis WSDL2Java tool complains about it compliance.

For instance, if you look closer this sample WSDL .Net http://www.vbws.com/services/weatherretriever.asmx?WSDL

it maps two namespaces (S0, S1) with elements of the same name "CurrentWeather"....from my understanding....I might be wrong but we are allowed to define elements of with same name belonging to a different namespace ?!

Any comments ?

Regards

herve







Send and receive Hotmail on your mobile device: Click Here