You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Henry Lu <zh...@umich.edu> on 2010/06/02 20:01:40 UTC

client code by wsdl2java

I am new to cxf. I have a wsdl file and want to generate client file(s) 
to call the service. I used the following command:

wsdl2java -client xxx.wsdl

It generates following files:
xxx.java
xxxhttpget_client.java
xxxhttppost_client.java
xxxSoap_client.java
xxxSoap12_client.java

Which java file if good for me to use?

And our server side service requires login user name and password, how 
do I set username and password in the client code?

-Henry

Re: client code by wsdl2java

Posted by Glen Mazza <gl...@gmail.com>.
I don't know how you can *generate* a "complete client code", that's where
the individual developer normally kicks in.  But there's a "-client" option
for wsdl2java (http://cxf.apache.org/docs/wsdl-to-java.html) that can give
you a skeleton if that will help.

Glen


henry lu wrote:
> 
> Thank for your web site. I followed the instructions in the web page and 
> the build.xml file generated 3 interface files:
> 
> xxxHttpget.java
> xxxHttppost.java
> xxxSoap.java
> and xxx.java of service
> 
> There is no implementation files for client at all. Could you show me 
> what I should do to generate a complete client code.
> 
> -Henry
> 

-- 
View this message in context: http://old.nabble.com/client-code-by-wsdl2java-tp28757973p28758843.html
Sent from the cxf-user mailing list archive at Nabble.com.


Re: client code by wsdl2java

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday 02 June 2010 3:03:23 pm Henry Lu wrote:
> Thank for your web site. I followed the instructions in the web page and
> the build.xml file generated 3 interface files:
> 
> xxxHttpget.java
> xxxHttppost.java
> xxxSoap.java
> and xxx.java of service
> 
> There is no implementation files for client at all. Could you show me
> what I should do to generate a complete client code.

The "*_client.java" stuff generated with the -client flag is really just a 
sample client to show how to use the above code.   It's not really production 
code, it's just a sample to get things started.    The above is really all 
that  is need.   

Dan


> 
> -Henry
> 
> On 6/2/2010 2:21 PM, Glen Mazza wrote:
> > http://www.jroller.com/gmazza/entry/soap_client_tutorial,
> > http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic
> > 
> > HTH,
> > Glen
> > 
> > henry lu wrote:
> >> I am new to cxf. I have a wsdl file and want to generate client file(s)
> >> to call the service. I used the following command:
> >> 
> >> wsdl2java -client xxx.wsdl
> >> 
> >> It generates following files:
> >> xxx.java
> >> xxxhttpget_client.java
> >> xxxhttppost_client.java
> >> xxxSoap_client.java
> >> xxxSoap12_client.java
> >> 
> >> Which java file if good for me to use?
> >> 
> >> And our server side service requires login user name and password, how
> >> do I set username and password in the client code?
> >> 
> >> -Henry

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: client code by wsdl2java

Posted by Henry Lu <zh...@umich.edu>.
Thank for your web site. I followed the instructions in the web page and 
the build.xml file generated 3 interface files:

xxxHttpget.java
xxxHttppost.java
xxxSoap.java
and xxx.java of service

There is no implementation files for client at all. Could you show me 
what I should do to generate a complete client code.

-Henry



On 6/2/2010 2:21 PM, Glen Mazza wrote:
> http://www.jroller.com/gmazza/entry/soap_client_tutorial,
> http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic
>
> HTH,
> Glen
>
>
> henry lu wrote:
>    
>> I am new to cxf. I have a wsdl file and want to generate client file(s)
>> to call the service. I used the following command:
>>
>> wsdl2java -client xxx.wsdl
>>
>> It generates following files:
>> xxx.java
>> xxxhttpget_client.java
>> xxxhttppost_client.java
>> xxxSoap_client.java
>> xxxSoap12_client.java
>>
>> Which java file if good for me to use?
>>
>> And our server side service requires login user name and password, how
>> do I set username and password in the client code?
>>
>> -Henry
>>
>>
>>      
>    

Re: client code by wsdl2java

Posted by Glen Mazza <gl...@gmail.com>.
http://www.jroller.com/gmazza/entry/soap_client_tutorial,
http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic

HTH,
Glen


henry lu wrote:
> 
> I am new to cxf. I have a wsdl file and want to generate client file(s) 
> to call the service. I used the following command:
> 
> wsdl2java -client xxx.wsdl
> 
> It generates following files:
> xxx.java
> xxxhttpget_client.java
> xxxhttppost_client.java
> xxxSoap_client.java
> xxxSoap12_client.java
> 
> Which java file if good for me to use?
> 
> And our server side service requires login user name and password, how 
> do I set username and password in the client code?
> 
> -Henry
> 
> 

-- 
View this message in context: http://old.nabble.com/client-code-by-wsdl2java-tp28757973p28758202.html
Sent from the cxf-user mailing list archive at Nabble.com.