You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Michael <mt...@optonline.net> on 2011/01/29 02:45:50 UTC

What am I missing?

I'm new to CXF and have been working with it for several weeks.

I've been using Eclipse Helios (3.6) with the built in built in WTP features for CXF.  I've downloaded CXF 2.3.0 and configured Eclipse to use this version of the CXF runtime.

I've created several simple Java First web services and got them working with clients all using the features described above.

Lately, I've working with the FuseSource Services Framework (for CXF).  Presently I'm just reviewing their Java First samples.

I've looked at the Javadoc for the CXF API but I never see any of these classes being used.  What am I missing?

Both my simple Java First web services and THe FuseSource Java First samples all use JAX-WS.  What am I missing?

Where does CXF come in?

Re: What am I missing?

Posted by Daniel Kulp <dk...@apache.org>.
On Saturday 29 January 2011 8:18:12 am Michael wrote:
> What will that do for me?
> 
> What can I do on the server and client sides with CXF API that I can't do
> with native JAX-WS?  More importantly, how do I do it?

It depends on what you WANT to do.   CXF is a completely JAX-WS certified 
implementation.   Thus, by default, it completely implements the JAX-WS API's 
and that is the primary means of using CXF.   However, if you need to venture 
into things outside the JAX-WS spec, then you may need to use CXF API's and/or 
CXF configuration.   Things like WS-Security, advanced configuration of the 
HTTP connections, JMS, etc.....

Dan


> 
> The Apache CXF web site does not seem to make this clear, nor does the
> FuseSource documentation or sample code.  Neither shows any examples of how
> to use the CXF API, unless I've missed something which is quite possible!
> 
> Thanks
> 
> ----- Original Message -----
> From: "Freeman Fang" <fr...@gmail.com>
> To: <us...@cxf.apache.org>
> Sent: Friday, January 28, 2011 9:50 PM
> Subject: Re: What am I missing?
> 
> 
> Hi,
> 
> Seems like your Eclipse env not pick up cxf as jaxws implementation
> provider, you need ensure cxf-rt-frontend-jaxws-2.3.0.jar is in your
> classpath.
> 
> Freeman
> 
> On 2011-1-29, at 上午9:45, Michael wrote:
> > I'm new to CXF and have been working with it for several weeks.
> > 
> > I've been using Eclipse Helios (3.6) with the built in built in WTP
> > features for CXF.  I've downloaded CXF 2.3.0 and configured Eclipse
> > to use this version of the CXF runtime.
> > 
> > I've created several simple Java First web services and got them
> > working with clients all using the features described above.
> > 
> > Lately, I've working with the FuseSource Services Framework (for
> > CXF).  Presently I'm just reviewing their Java First samples.
> > 
> > I've looked at the Javadoc for the CXF API but I never see any of
> > these classes being used.  What am I missing?
> > 
> > Both my simple Java First web services and THe FuseSource Java First
> > samples all use JAX-WS.  What am I missing?
> > 
> > Where does CXF come in?

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

Re: What am I missing?

Posted by Benson Margulies <bi...@gmail.com>.
There is a file in the distro called 'WHICH_JARS'. If you aren't using
maven, you need to read it to answer this question.

On Sun, Jan 30, 2011 at 11:11 AM, Michael <mt...@optonline.net> wrote:
> I'm starting to piece some things together from your response and Freeman's.
>
> With Eclipse Helios the Web Tools Platform (WTP) has been enhanced to
> include CXF.
>
> I can configure Eclipse to point to the CXF runtime, in my case v2.3.0.
>
> When I create a "Dynamic Web Project" for web services development, Eclipse
> automatically makes all the .jar files in the apache-cxf-2.3.0\lib directory
> available to my project.  The .jar file Freeman indicated that I might be
> missing is the cxf-rt-frontend-jaxws-2.3.0.jar which is in
> apache-cxf-2.3.0\modules.  There are many .jar file in this directory.  Is
> this the only one I need?
>
> ----- Original Message ----- From: "Benson Margulies"
> <bi...@gmail.com>
> To: <us...@cxf.apache.org>
> Sent: Saturday, January 29, 2011 1:58 PM
> Subject: Re: What am I missing?
>
>
> There are many detailed parameters that you can control more directly
> with the CXF API than with the JAX-WS API.
>
> However, you might not need or care about them.
>
> On the client side, the class you want is JaxWsProxyFactoryBean.
>
> You can see a simple example in
> http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/,
>
> However, it seems as if your real problem is classpath. You want to
> call the JAX-WS API and get the CXF provider, not the built-in one
> that comes with the JRE. That requires the putting enough CXF jars
> into your classpath. What is your current classpath?
>
> On Sat, Jan 29, 2011 at 8:18 AM, Michael <mt...@optonline.net> wrote:
>>
>> What will that do for me?
>>
>> What can I do on the server and client sides with CXF API that I can't do
>> with native JAX-WS? More importantly, how do I do it?
>>
>> The Apache CXF web site does not seem to make this clear, nor does the
>> FuseSource documentation or sample code. Neither shows any examples of how
>> to use the CXF API, unless I've missed something which is quite possible!
>>
>> Thanks
>>
>> ----- Original Message ----- From: "Freeman Fang" <fr...@gmail.com>
>> To: <us...@cxf.apache.org>
>> Sent: Friday, January 28, 2011 9:50 PM
>> Subject: Re: What am I missing?
>>
>>
>> Hi,
>>
>> Seems like your Eclipse env not pick up cxf as jaxws implementation
>> provider, you need ensure cxf-rt-frontend-jaxws-2.3.0.jar is in your
>> classpath.
>>
>> Freeman
>> On 2011-1-29, at 上午9:45, Michael wrote:
>>
>>> I'm new to CXF and have been working with it for several weeks.
>>>
>>> I've been using Eclipse Helios (3.6) with the built in built in WTP
>>> features for CXF. I've downloaded CXF 2.3.0 and configured Eclipse
>>> to use this version of the CXF runtime.
>>>
>>> I've created several simple Java First web services and got them
>>> working with clients all using the features described above.
>>>
>>> Lately, I've working with the FuseSource Services Framework (for
>>> CXF). Presently I'm just reviewing their Java First samples.
>>>
>>> I've looked at the Javadoc for the CXF API but I never see any of
>>> these classes being used. What am I missing?
>>>
>>> Both my simple Java First web services and THe FuseSource Java First
>>> samples all use JAX-WS. What am I missing?
>>>
>>> Where does CXF come in?
>>
>>
>> --
>> Freeman Fang
>>
>> ------------------------
>>
>> FuseSource: http://fusesource.com
>> blog: http://freemanfang.blogspot.com
>> twitter: http://twitter.com/freemanfang
>> Apache Servicemix:http://servicemix.apache.org
>> Apache Cxf: http://cxf.apache.org
>> Apache Karaf: http://karaf.apache.org
>> Apache Felix: http://felix.apache.org
>>
>>
>>
>
>

Re: What am I missing?

Posted by Michael <mt...@optonline.net>.
I'm starting to piece some things together from your response and Freeman's.

With Eclipse Helios the Web Tools Platform (WTP) has been enhanced to 
include CXF.

I can configure Eclipse to point to the CXF runtime, in my case v2.3.0.

When I create a "Dynamic Web Project" for web services development, Eclipse 
automatically makes all the .jar files in the apache-cxf-2.3.0\lib directory 
available to my project.  The .jar file Freeman indicated that I might be 
missing is the cxf-rt-frontend-jaxws-2.3.0.jar which is in 
apache-cxf-2.3.0\modules.  There are many .jar file in this directory.  Is 
this the only one I need?

----- Original Message ----- 
From: "Benson Margulies" <bi...@gmail.com>
To: <us...@cxf.apache.org>
Sent: Saturday, January 29, 2011 1:58 PM
Subject: Re: What am I missing?


There are many detailed parameters that you can control more directly
with the CXF API than with the JAX-WS API.

However, you might not need or care about them.

On the client side, the class you want is JaxWsProxyFactoryBean.

You can see a simple example in
http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/,

However, it seems as if your real problem is classpath. You want to
call the JAX-WS API and get the CXF provider, not the built-in one
that comes with the JRE. That requires the putting enough CXF jars
into your classpath. What is your current classpath?

On Sat, Jan 29, 2011 at 8:18 AM, Michael <mt...@optonline.net> wrote:
> What will that do for me?
>
> What can I do on the server and client sides with CXF API that I can't do
> with native JAX-WS? More importantly, how do I do it?
>
> The Apache CXF web site does not seem to make this clear, nor does the
> FuseSource documentation or sample code. Neither shows any examples of how
> to use the CXF API, unless I've missed something which is quite possible!
>
> Thanks
>
> ----- Original Message ----- From: "Freeman Fang" <fr...@gmail.com>
> To: <us...@cxf.apache.org>
> Sent: Friday, January 28, 2011 9:50 PM
> Subject: Re: What am I missing?
>
>
> Hi,
>
> Seems like your Eclipse env not pick up cxf as jaxws implementation
> provider, you need ensure cxf-rt-frontend-jaxws-2.3.0.jar is in your
> classpath.
>
> Freeman
> On 2011-1-29, at 上午9:45, Michael wrote:
>
>> I'm new to CXF and have been working with it for several weeks.
>>
>> I've been using Eclipse Helios (3.6) with the built in built in WTP
>> features for CXF. I've downloaded CXF 2.3.0 and configured Eclipse
>> to use this version of the CXF runtime.
>>
>> I've created several simple Java First web services and got them
>> working with clients all using the features described above.
>>
>> Lately, I've working with the FuseSource Services Framework (for
>> CXF). Presently I'm just reviewing their Java First samples.
>>
>> I've looked at the Javadoc for the CXF API but I never see any of
>> these classes being used. What am I missing?
>>
>> Both my simple Java First web services and THe FuseSource Java First
>> samples all use JAX-WS. What am I missing?
>>
>> Where does CXF come in?
>
>
> --
> Freeman Fang
>
> ------------------------
>
> FuseSource: http://fusesource.com
> blog: http://freemanfang.blogspot.com
> twitter: http://twitter.com/freemanfang
> Apache Servicemix:http://servicemix.apache.org
> Apache Cxf: http://cxf.apache.org
> Apache Karaf: http://karaf.apache.org
> Apache Felix: http://felix.apache.org
>
>
> 


Re: What am I missing?

Posted by Benson Margulies <bi...@gmail.com>.
There are many detailed parameters that you can control more directly
with the CXF API than with the JAX-WS API.

However, you might not need or care about them.

On the client side, the class you want is JaxWsProxyFactoryBean.

You can see a simple example in
http://www.benmccann.com/dev-blog/web-services-tutorial-with-apache-cxf/,

However, it seems as if your real problem is classpath. You want to
call the JAX-WS API and get the CXF provider, not the built-in one
that comes with the JRE. That requires the putting enough CXF jars
into your classpath. What is your current classpath?

On Sat, Jan 29, 2011 at 8:18 AM, Michael <mt...@optonline.net> wrote:
> What will that do for me?
>
> What can I do on the server and client sides with CXF API that I can't do
> with native JAX-WS?  More importantly, how do I do it?
>
> The Apache CXF web site does not seem to make this clear, nor does the
> FuseSource documentation or sample code.  Neither shows any examples of how
> to use the CXF API, unless I've missed something which is quite possible!
>
> Thanks
>
> ----- Original Message ----- From: "Freeman Fang" <fr...@gmail.com>
> To: <us...@cxf.apache.org>
> Sent: Friday, January 28, 2011 9:50 PM
> Subject: Re: What am I missing?
>
>
> Hi,
>
> Seems like your Eclipse env not pick up cxf as jaxws implementation
> provider, you need ensure cxf-rt-frontend-jaxws-2.3.0.jar is in your
> classpath.
>
> Freeman
> On 2011-1-29, at 上午9:45, Michael wrote:
>
>> I'm new to CXF and have been working with it for several weeks.
>>
>> I've been using Eclipse Helios (3.6) with the built in built in WTP
>> features for CXF.  I've downloaded CXF 2.3.0 and configured Eclipse
>> to use this version of the CXF runtime.
>>
>> I've created several simple Java First web services and got them
>> working with clients all using the features described above.
>>
>> Lately, I've working with the FuseSource Services Framework (for
>> CXF).  Presently I'm just reviewing their Java First samples.
>>
>> I've looked at the Javadoc for the CXF API but I never see any of
>> these classes being used.  What am I missing?
>>
>> Both my simple Java First web services and THe FuseSource Java First
>> samples all use JAX-WS.  What am I missing?
>>
>> Where does CXF come in?
>
>
> --
> Freeman Fang
>
> ------------------------
>
> FuseSource: http://fusesource.com
> blog: http://freemanfang.blogspot.com
> twitter: http://twitter.com/freemanfang
> Apache Servicemix:http://servicemix.apache.org
> Apache Cxf: http://cxf.apache.org
> Apache Karaf: http://karaf.apache.org
> Apache Felix: http://felix.apache.org
>
>
>

Re: What am I missing?

Posted by Michael <mt...@optonline.net>.
What will that do for me?

What can I do on the server and client sides with CXF API that I can't do 
with native JAX-WS?  More importantly, how do I do it?

The Apache CXF web site does not seem to make this clear, nor does the 
FuseSource documentation or sample code.  Neither shows any examples of how 
to use the CXF API, unless I've missed something which is quite possible!

Thanks

----- Original Message ----- 
From: "Freeman Fang" <fr...@gmail.com>
To: <us...@cxf.apache.org>
Sent: Friday, January 28, 2011 9:50 PM
Subject: Re: What am I missing?


Hi,

Seems like your Eclipse env not pick up cxf as jaxws implementation
provider, you need ensure cxf-rt-frontend-jaxws-2.3.0.jar is in your
classpath.

Freeman
On 2011-1-29, at 上午9:45, Michael wrote:

> I'm new to CXF and have been working with it for several weeks.
>
> I've been using Eclipse Helios (3.6) with the built in built in WTP
> features for CXF.  I've downloaded CXF 2.3.0 and configured Eclipse
> to use this version of the CXF runtime.
>
> I've created several simple Java First web services and got them
> working with clients all using the features described above.
>
> Lately, I've working with the FuseSource Services Framework (for
> CXF).  Presently I'm just reviewing their Java First samples.
>
> I've looked at the Javadoc for the CXF API but I never see any of
> these classes being used.  What am I missing?
>
> Both my simple Java First web services and THe FuseSource Java First
> samples all use JAX-WS.  What am I missing?
>
> Where does CXF come in?


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org



Re: What am I missing?

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

Seems like your Eclipse env not pick up cxf as jaxws implementation  
provider, you need ensure cxf-rt-frontend-jaxws-2.3.0.jar is in your  
classpath.

Freeman
On 2011-1-29, at 上午9:45, Michael wrote:

> I'm new to CXF and have been working with it for several weeks.
>
> I've been using Eclipse Helios (3.6) with the built in built in WTP  
> features for CXF.  I've downloaded CXF 2.3.0 and configured Eclipse  
> to use this version of the CXF runtime.
>
> I've created several simple Java First web services and got them  
> working with clients all using the features described above.
>
> Lately, I've working with the FuseSource Services Framework (for  
> CXF).  Presently I'm just reviewing their Java First samples.
>
> I've looked at the Javadoc for the CXF API but I never see any of  
> these classes being used.  What am I missing?
>
> Both my simple Java First web services and THe FuseSource Java First  
> samples all use JAX-WS.  What am I missing?
>
> Where does CXF come in?


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org