RE: [axis2] error when generate code using wsdl2java with multiple binding

2008-07-31 Thread Zhuang, Guanxia (Robin)
Hi

 

This is a web service I found on the internet, you can access this wsdl with 
the url http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL, I try 
to generate the service side code and client side code of this wsdl file, but 
axis2 failed. Suriarachchi sugguests rewriting this wsdl file with multiple 
, each contains only one . But it still fails too. Do you know 
the solution to this problem?

 

Regards

---

Robin

Sycamore Networks (Shanghai China)

 



From: keith chapman [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 01, 2008 11:25 AM
To: axis-user@ws.apache.org
Subject: Re: [axis2] error when generate code using wsdl2java with multiple 
binding

 

Hi,

Is this some sort of a sample WSDL? It does not look well constructed at all. 
You can author this WSDL in a much cleaner fashion. I do not understand the 
rational for having 3 portTypes. This could be described using a single port 
type (The abstract definition of the service) and 4 bindings.  Bindings for 
SOAP 1.1, SOAP 1.2, HTTP GET and HTTP POST.

Thanks,
Keith.

2008/8/1 Zhuang, Guanxia (Robin) <[EMAIL PROTECTED]>

Hi Suriarachchi,

Thank you very much for your time.

I try to change the wsdl file, I put each  element a . but it 
fail to generate all the skeletons for all . of course I use the 
option �Cap.

Please help to look at the wsdl file below, the whole version can be found at 
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL

 

I think maybe I should create several wsdl file, each file contain one 
, one  and one  only. Is it that what the axis2 
want?

 





 

   

  http://WebXml.com.cn/";>

 ..

  

 

   

 

   

  

   

  ..

   

  

   

 

   

  

   

 

   

  .

   

 

   

  ..

   

 

   

  http://schemas.xmlsoap.org/soap/http"; />

  ..

   

 

   

  http://schemas.xmlsoap.org/soap/http"; />

  .

   

 

   

  

  ..

   

 

   

  

  .

   

 

   

  

 ...

   

 

   

  

 ...

   

 

   

  

 

   

 

   

  

 

   

 



 

Regards

---

Guanxia Zhuang (Robin)

Sycamore Networks (SDC)

Phone: 021-24050832

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2008 12:54 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] error when generate code using wsdl2java with multiple 
binding

 

 

On Thu, Jul 31, 2008 at 9:32 AM, Zhuang, Guanxia (Robin) <[EMAIL PROTECTED]> 
wrote:

i have got a wsdl file from 
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL , and i want 
to generate the sever side code and client code from it. but axis4 1.4 only 
generate five methods. it should generate 5 methods for each binding i think.

Axis2 generates the code for one portType (per service). So it generates the 
code for the portType of the port it selects.
for Axis2 what ever your service should have  one port Type. So if you can 
change the wsdl  to as follows and use -ap option it generates correctly.


-
-

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

-

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>


 


-

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

-
   



http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

 

thanks,
Amila.

 

i try to use axis2 to generate code from other wsdl file with multiple 
binding, but it just generate part of the methods, not all of the methods. can 
anybody try this wsdl, and let me know how to generate the server side and the 
client side code from it? thanks

 

Regards

---

Guanxia Zhuang (Robin)

Sycamore Networks (SDC)

Phone: 021-24050832

 

 




-- 
Amila Suriarachchi,
WSO2 Inc.




-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org



Re: [axis2] error when generate code using wsdl2java with multiple binding

2008-07-31 Thread keith chapman
Hi,

Is this some sort of a sample WSDL? It does not look well constructed at
all. You can author this WSDL in a much cleaner fashion. I do not understand
the rational for having 3 portTypes. This could be described using a single
port type (The abstract definition of the service) and 4 bindings.  Bindings
for SOAP 1.1, SOAP 1.2, HTTP GET and HTTP POST.

Thanks,
Keith.

2008/8/1 Zhuang, Guanxia (Robin) <[EMAIL PROTECTED]>

>   Hi Suriarachchi,
>
> Thank you very much for your time.
>
> I try to change the wsdl file, I put each  element a . but
> it fail to generate all the skeletons for all . of course I use
> the option �Cap.
>
> Please help to look at the wsdl file below, the whole version can be found
> at http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL
>
>
>
> I think maybe I should create several wsdl file, each file contain one
> , one  and one  only. Is it that what the axis2
> want?
>
>
>
> 
>
> 
>
>
>
>
>
>   
>  targetNamespace="http://WebXml.com.cn/";>
>
>  ..
>
>   
>
>
>
>
>
>
>
>
>
>   
>
>
>
>   ..
>
>
>
>   
>
>
>
>
>
>
>
>   
>
>
>
>
>
>
>
>   .
>
>
>
>
>
>
>
>   ..
>
>
>
>
>
>
>   type="tns:WeatherWebServiceSoap">
>
>   http://schemas.xmlsoap.org/soap/http"; />
>
>   ..
>
>
>
>
>
>
>   type="tns:WeatherWebServiceSoap">
>
>   
>  transport="http://schemas.xmlsoap.org/soap/http"; />
>
>   .
>
>
>
>
>
>
>   type="tns:WeatherWebServiceHttpGet">
>
>   
>
>   ..
>
>
>
>
>
>
>   type="tns:WeatherWebServiceHttpPost">
>
>   
>
>   .
>
>
>
>
>
>
>
>   
>  binding="tns:WeatherWebServiceSoap">
>
>  ...
>
>
>
>
>
>
>
>   
>  binding="tns:WeatherWebServiceSoap12">
>
>  ...
>
>
>
>
>
>
>
>           
>      binding="tns:WeatherWebServiceHttpGet">
>
>  
>
>
>
>
>
>
>
>   
>  binding="tns:WeatherWebServiceHttpPost">
>
>  
>
>
>
>
>
> 
>
>
>
> Regards
>
> ---
>
> Guanxia Zhuang (Robin)
>
> Sycamore Networks (SDC)
>
> Phone: 021-24050832
>
>
>   --
>
> *From:* Amila Suriarachchi [mailto:[EMAIL PROTECTED]
> *Sent:* Thursday, July 31, 2008 12:54 PM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: [axis2] error when generate code using wsdl2java with
> multiple binding
>
>
>
>
>
> On Thu, Jul 31, 2008 at 9:32 AM, Zhuang, Guanxia (Robin) <
> [EMAIL PROTECTED]> wrote:
>
> i have got a wsdl file from
> http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL , and i
> want to generate the sever side code and client code from it. but axis4 1.4
> only generate five methods. it should generate 5 methods for each binding i
> think.
>
> Axis2 generates the code for one portType (per service). So it generates
> the code for the portType of the port it selects.
> for Axis2 what ever your service should have  one port Type. So if you can
> change the wsdl  to as follows and use -ap option it generates correctly.
>
> 
> -
> -
>  binding="tns:WeatherWebServiceSoap">
> http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>
> 
> -
>  binding="tns:WeatherWebServiceSoap12">
> http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>
> 
>
> 
> 
>
> -
>  binding="tns:WeatherWebServiceHttpGet">
> http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>
> 
> -
>
> 
>
>  binding="tns:WeatherWebServiceHttpPost">
> http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>
> 
> 
>
> thanks,
> Amila.
>
>
>
> i try to use axis2 to generate code from other wsdl file with multiple
> binding, but it just generate part of the methods, not all of the methods.
> can anybody try this wsdl, and let me know how to generate the server side
> and the client side code from it? thanks
>
>
>
> Regards
>
> ---
>
> Guanxia Zhuang (Robin)
>
> Sycamore Networks (SDC)
>
> Phone: 021-24050832
>
>
>
>
>
>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org


RE: [axis2] error when generate code using wsdl2java with multiple binding

2008-07-31 Thread Zhuang, Guanxia (Robin)
Hi Suriarachchi,

Thank you very much for your time.

I try to change the wsdl file, I put each  element a . but it 
fail to generate all the skeletons for all . of course I use the 
option �Cap.

Please help to look at the wsdl file below, the whole version can be found at 
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL

 

I think maybe I should create several wsdl file, each file contain one 
, one  and one  only. Is it that what the axis2 
want?

 





 

   

  http://WebXml.com.cn/";>

 ..

  

 

   

 

   

  

   

  ..

   

  

   

 

   

  

   

 

   

  .

   

 

   

  ..

   

 

   

  http://schemas.xmlsoap.org/soap/http"; />

  ..

   

 

   

  http://schemas.xmlsoap.org/soap/http"; />

  .

   

 

   

  

  ..

   

 

   

  

  .

   

 

   

  

 ...

   

 

   

  

 ...

   

 

   

  

 

   

 

   

  

 

   

 



 

Regards

---

Guanxia Zhuang (Robin)

Sycamore Networks (SDC)

Phone: 021-24050832

 



From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 31, 2008 12:54 PM
To: axis-user@ws.apache.org
Subject: Re: [axis2] error when generate code using wsdl2java with multiple 
binding

 

 

On Thu, Jul 31, 2008 at 9:32 AM, Zhuang, Guanxia (Robin) <[EMAIL PROTECTED]> 
wrote:

i have got a wsdl file from 
http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL , and i want 
to generate the sever side code and client code from it. but axis4 1.4 only 
generate five methods. it should generate 5 methods for each binding i think.

Axis2 generates the code for one portType (per service). So it generates the 
code for the portType of the port it selects.
for Axis2 what ever your service should have  one port Type. So if you can 
change the wsdl  to as follows and use -ap option it generates correctly.


-
-

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

-

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>


 


-

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

-
   



http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

 

thanks,
Amila.

 

i try to use axis2 to generate code from other wsdl file with multiple 
binding, but it just generate part of the methods, not all of the methods. can 
anybody try this wsdl, and let me know how to generate the server side and the 
client side code from it? thanks

 

Regards

---

Guanxia Zhuang (Robin)

Sycamore Networks (SDC)

Phone: 021-24050832

 

 




-- 
Amila Suriarachchi,
WSO2 Inc.



Re: [axis2] error when generate code using wsdl2java with multiple binding

2008-07-30 Thread Amila Suriarachchi
On Thu, Jul 31, 2008 at 9:32 AM, Zhuang, Guanxia (Robin) <
[EMAIL PROTECTED]> wrote:

>  i have got a wsdl file from
> http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL , and i
> want to generate the sever side code and client code from it. but axis4 1.4
> only generate five methods. it should generate 5 methods for each binding i
> think.
>
Axis2 generates the code for one portType (per service). So it generates the
code for the portType of the port it selects.
for Axis2 what ever your service should have  one port Type. So if you can
change the wsdl  to as follows and use -ap option it generates correctly.


−
−

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

−

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>





−

http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>

−




http://www.webxml.com.cn/WebServices/WeatherWebService.asmx"/>



thanks,
Amila.

>
>
> i try to use axis2 to generate code from other wsdl file with multiple
> binding, but it just generate part of the methods, not all of the methods.
> can anybody try this wsdl, and let me know how to generate the server side
> and the client side code from it? thanks
>
>
>
> Regards
>
> ---
>
> Guanxia Zhuang (Robin)
>
> Sycamore Networks (SDC)
>
> Phone: 021-24050832
>
>
>
>
>



-- 
Amila Suriarachchi,
WSO2 Inc.