Hi 

Please see my comments in the mail.

-----Original Message-----
From: Asleson, Ryan [mailto:[EMAIL PROTECTED]
Sent: Wed 10/24/2007 21:38
To: [email protected]
Subject: CXF First Time User Questions
 
 
Hello,
 
I'm a first time user of CXF.  I've used other web service tools in the
past and am now looking at using CXF.  I have a series of questions that
I hope somebody can answer for me:
 
1.  I used the WSDL2Java tool to generate a web service client from a
WSDL.  I noticed that none of the generated code contains the web
service endpoint URL.  Where does this come from?  Am I supposed to
supply it programmatically at runtime?  If so, how?

<Willem> For the server side , you can specify the endpoint publish by
using the JAXWS API's Endpoint.publish or by ServerFactoryBean's 
setAddress method.

<Willem>For the client side , it mainly come from the WSDL and you 
can also changed it by using the ProxyFactoryBean's setAddress method. 

<Willem>You can find more information about the client side setting here[1]
[1]http://www.nabble.com/Client-question-tf4357978.html#a12419843
 
 
2.  Related to #1, is there a way to define, programmatically, the web
service endpoint URL?  We are a web service consumer, but the web
service provider has a testing and a production environment.  I need to
be able to specify, at runtime, the endpoint to use, rather than having
to specify it at compile time.  Like many organizations, we promote code
through various testing environments to a production environment, and
I'd hate to have to specify a web service endpoint URL at compile time.

<Willem> I think I already give you the answer.
 
 
3.  Is there a way, programmatically, to specify a proxy server and
proxy port?  Our environment does not use the standard http.proxyHost
and http.proxyPort system variables (don't ask me why) so I need a way
to programmatically set the proxy server and proxy port for a web
service client.

<Willem> You can specify it in the configuration file [2] 
 [2]http://cwiki.apache.org/CXF20DOC/client-http-transport.html

4.  Is there any way that WSDL2Java can generate Java 1.4 compliant
code?  I see the output of WSDL2Java uses annotations.  Unfortunately
we're not yet on Java 1.5 (it should be happening soon) but the reality
is that we're currently still on 1.4.  Do I have any options here or do
I have to use another tool?

<Willem> No, CXF do not support JDK1.4, our work is based on the JAXWS API
which heavily uses the JDK 1.5's annotations.

Willem.
 
 
Thank you!!!
 
-Ryan
 
 

This e-mail message is being sent solely for use by the intended recipient(s) 
and may contain confidential information.  Any unauthorized review, use, 
disclosure or distribution is prohibited.  If you are not the intended 
recipient, please contact the sender by phone or reply by e-mail, delete the 
original message and destroy all copies. Thank you.

Reply via email to