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 Srinivasa K <ku...@gmail.com> on 2010/06/22 17:56:02 UTC

CXF vs Axis2

Hi,

We are trying to migrate to Axis2 and also considering CXF. Could anybody
provide advantages of CXF over Axis2?
And, which one is the best in peformance view?

Appreciate your help on this.

Thanks,
Srini

Re: CXF vs Axis2

Posted by İbrahim DEMİR <ib...@gmail.com>.
Hi;

Metro can also work with .NET clients. I had no hands on experience with
Metro but my firends are using it with .NET clients.

I had .NET clients and my services were handled by Axis2. There was no
problem also. Axis2 was doing well.

So reading the system requirements can also be a point for a desicion. Metro
need jdk 1.5 or higher .



--
İbrahim DEMİR
twt: @ibrahimdemir
ff:    @ibrahimdemir
http://www.ibrahimdemir.org


On Wed, Jun 23, 2010 at 19:03, Srinivasa K <ku...@gmail.com> wrote:

> Hi Dennis,
>
> Thank you very much for the details that you provided. When we reviewed
> your article, it seems Metro is good in performance point of view - compare
> to CXF and Axis2. Do you suggest to go with Metro? At this point of time we
> are looking for the best one in overall performance and implementation.
>
> We have web services clients with different platform, like Java, C# and
> Natural(SotwareAG). We also have to consider the best interoperability with
> this platforms. We tested with Axis2 on C# client and we solved array issues
> that we had with Axis1.
> We appreciate your suggestion on this.
>
> Thanks,
> Srini
>
>
> On Tue, Jun 22, 2010 at 12:15 PM, Dennis Sosnoski <dm...@sosnoski.com>wrote:
>
>> Dennis Sosnoski wrote:
>>
>>> ...
>>>
>>>
>>> My IBM developerWorks series on Java Web Services (
>>> http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services:)
>>> has details on the configuration issues and performance (though the main
>>> performance article on CXF seems to be missing in the search results right
>>> now - I'll post a direct link to that when I can track it down).
>>>
>>
>> I saw that Ibrahim had this "missing link" in his email response (thanks,
>> Ibrahim!):
>> http://www.ibm.com/developerworks/java/library/j-jws14/index.html
>>
>>  - Dennis
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>
>

Re: CXF vs Axis2

Posted by Srinivasa K <ku...@gmail.com>.
Hi Dennis,

Thank you very much for your inputs on this. I may conact you If I need any
futher help.
Thanks again.

Thanks,
Srini

On Wed, Jun 23, 2010 at 6:22 PM, Dennis Sosnoski <dm...@sosnoski.com> wrote:

> Hi Srini,
>
> Metro has a small performance advantage over CXF and Axis2, though that's
> mostly significant for small messages. Generally the performance with large
> messages is going to be more of a concern, and there the three are pretty
> close (as long as WS-Security isn't involved).
>
> Personally, though, I think Metro is only a good choice if you're buying
> into the whole Metro+NetBeans+Glassfish combination. Metro documentation is
> mostly based around using NetBeans and Glassfish, and the configuration is
> somewhat messy if you're doing it directly.
>
> If you are using WS-Security, CXF seems to have the best all-around support
> for WS-Security features while also providing very good performance.
>
> In terms of interoperability, that's largely a function of the XML schemas
> you're using, which in turn depends on your data binding. Metro only
> supports JAXB data binding, while CXF supports both JAXB and XMLBeans (with
> JiBX support in the works). If you're starting from Java code your best
> approach to generate a schema and WSDL is to use my Jibx2Wsdl tool, which
> cleanly handles most types of Java constructs (including multi-dimensional
> arrays). You wouldn't be able to use the generated JiBX bindings with CXF at
> present, but you'd be able to use the generated schema and WSDL to generate
> code using JAXB.
>
> I do teach in-house training courses on all these issues, including CXF and
> Metro usage, so feel free to contact me directly if your organization could
> use some help in getting started.
>
>  - Dennis
>
> Dennis M. Sosnoski
> SOA and Web Services in Java
>
> Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
>
>
>
> Srinivasa K wrote:
>
>>
>> Hi Dennis,
>>
>> Thank you very much for the details that you provided. When we reviewed
>> your article, it seems Metro is good in performance point of view - compare
>> to CXF and Axis2. Do you suggest to go with Metro? At this point of time we
>> are looking for the best one in overall performance and implementation.
>>
>> We have web services clients with different platform, like Java, C# and
>> Natural(SotwareAG). We also have to consider the best interoperability with
>> this platforms. We tested with Axis2 on C# client and we solved array issues
>> that we had with Axis1.
>>
>> We appreciate your suggestion on this.
>>  Thanks,
>> Srini
>>
>>
>> On Tue, Jun 22, 2010 at 12:15 PM, Dennis Sosnoski <dms@sosnoski.com<mailto:
>> dms@sosnoski.com>> wrote:
>>
>>    Dennis Sosnoski wrote:
>>
>>        ...
>>
>>
>>        My IBM developerWorks series on Java Web Services
>>        (
>> http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services
>> :)
>>        has details on the configuration issues and performance
>>        (though the main performance article on CXF seems to be
>>        missing in the search results right now - I'll post a direct
>>        link to that when I can track it down).
>>
>>
>>    I saw that Ibrahim had this "missing link" in his email response
>>    (thanks, Ibrahim!):
>>    http://www.ibm.com/developerworks/java/library/j-jws14/index.html
>>
>>     - Dennis
>>
>>
>>    ---------------------------------------------------------------------
>>    To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>    For additional commands, e-mail: java-user-help@axis.apache.org
>>    <ma...@axis.apache.org>
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: CXF vs Axis2

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Hi Srini,

Metro has a small performance advantage over CXF and Axis2, though 
that's mostly significant for small messages. Generally the performance 
with large messages is going to be more of a concern, and there the 
three are pretty close (as long as WS-Security isn't involved).

Personally, though, I think Metro is only a good choice if you're buying 
into the whole Metro+NetBeans+Glassfish combination. Metro documentation 
is mostly based around using NetBeans and Glassfish, and the 
configuration is somewhat messy if you're doing it directly.

If you are using WS-Security, CXF seems to have the best all-around 
support for WS-Security features while also providing very good performance.

In terms of interoperability, that's largely a function of the XML 
schemas you're using, which in turn depends on your data binding. Metro 
only supports JAXB data binding, while CXF supports both JAXB and 
XMLBeans (with JiBX support in the works). If you're starting from Java 
code your best approach to generate a schema and WSDL is to use my 
Jibx2Wsdl tool, which cleanly handles most types of Java constructs 
(including multi-dimensional arrays). You wouldn't be able to use the 
generated JiBX bindings with CXF at present, but you'd be able to use 
the generated schema and WSDL to generate code using JAXB.

I do teach in-house training courses on all these issues, including CXF 
and Metro usage, so feel free to contact me directly if your 
organization could use some help in getting started.

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Srinivasa K wrote:
>
> Hi Dennis,
>
> Thank you very much for the details that you provided. When we 
> reviewed your article, it seems Metro is good in performance point of 
> view - compare to CXF and Axis2. Do you suggest to go with Metro? At 
> this point of time we are looking for the best one in overall 
> performance and implementation.
>
> We have web services clients with different platform, like Java, C# 
> and Natural(SotwareAG). We also have to consider the best 
> interoperability with this platforms. We tested with Axis2 on C# 
> client and we solved array issues that we had with Axis1.
>
> We appreciate your suggestion on this.
>  
> Thanks,
> Srini
>
>
> On Tue, Jun 22, 2010 at 12:15 PM, Dennis Sosnoski <dms@sosnoski.com 
> <ma...@sosnoski.com>> wrote:
>
>     Dennis Sosnoski wrote:
>
>         ...
>
>
>         My IBM developerWorks series on Java Web Services
>         (http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services:)
>         has details on the configuration issues and performance
>         (though the main performance article on CXF seems to be
>         missing in the search results right now - I'll post a direct
>         link to that when I can track it down).
>
>
>     I saw that Ibrahim had this "missing link" in his email response
>     (thanks, Ibrahim!):
>     http://www.ibm.com/developerworks/java/library/j-jws14/index.html
>
>      - Dennis
>
>
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>     <ma...@axis.apache.org>
>     For additional commands, e-mail: java-user-help@axis.apache.org
>     <ma...@axis.apache.org>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: CXF vs Axis2

Posted by Srinivasa K <ku...@gmail.com>.
Hi Dennis,

Thank you very much for the details that you provided. When we reviewed your
article, it seems Metro is good in performance point of view - compare to
CXF and Axis2. Do you suggest to go with Metro? At this point of time we are
looking for the best one in overall performance and implementation.

We have web services clients with different platform, like Java, C# and
Natural(SotwareAG). We also have to consider the best interoperability with
this platforms. We tested with Axis2 on C# client and we solved array issues
that we had with Axis1.
We appreciate your suggestion on this.

Thanks,
Srini


On Tue, Jun 22, 2010 at 12:15 PM, Dennis Sosnoski <dm...@sosnoski.com> wrote:

> Dennis Sosnoski wrote:
>
>> ...
>>
>>
>> My IBM developerWorks series on Java Web Services (
>> http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services:)
>> has details on the configuration issues and performance (though the main
>> performance article on CXF seems to be missing in the search results right
>> now - I'll post a direct link to that when I can track it down).
>>
>
> I saw that Ibrahim had this "missing link" in his email response (thanks,
> Ibrahim!):
> http://www.ibm.com/developerworks/java/library/j-jws14/index.html
>
>  - Dennis
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>

Re: CXF vs Axis2

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Dennis Sosnoski wrote:
> ...
>
> My IBM developerWorks series on Java Web Services 
> (http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services:) 
> has details on the configuration issues and performance (though the 
> main performance article on CXF seems to be missing in the search 
> results right now - I'll post a direct link to that when I can track 
> it down).

I saw that Ibrahim had this "missing link" in his email response 
(thanks, Ibrahim!): 
http://www.ibm.com/developerworks/java/library/j-jws14/index.html

  - Dennis

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: CXF vs Axis2

Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Hi Srini,

If you're not using WS-Security the two stacks each have some advantages 
and disadvantages. The main difference on the client side is that CXF is 
best used with the JAX-WS frontend, which means you need to have access 
to the WSDL at runtime (since that's how JAX-WS handles configuration). 
Axis2's JAX-WS support is limited, but it does provide direct 
configuration in ADB code generated from WSDL which is in many ways 
simpler than the JAX-WS approach. On the server side, with Axis2 you 
deploy a web app (WAR) which acts as a host for as many services as you 
want to run, and also provides some basic monitoring and control 
functions; with CXF you build and deploy a separate web app for each 
service.

The two perform about the same unless you're using WS-Security. If 
you're using WS-Security CXF gives *much* better performance than Axis2. 
The way you configure WS-Security in CXF is also cleaner than in Axis2, 
which requires a hacked-up version of the WSDL with embedded security 
configuration parameters (CXF just has separate files with the security 
configuration parameters).

My IBM developerWorks series on Java Web Services 
(http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services:) 
has details on the configuration issues and performance (though the main 
performance article on CXF seems to be missing in the search results 
right now - I'll post a direct link to that when I can track it down).

  - Dennis

Dennis M. Sosnoski
XML and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117



Srinivasa K wrote:
> Hi,
>  
> We are trying to migrate to Axis2 and also considering CXF. Could 
> anybody provide advantages of CXF over Axis2?
> And, which one is the best in peformance view?
>  
> Appreciate your help on this.
>  
> Thanks,
> Srini

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org


Re: CXF vs Axis2

Posted by İbrahim DEMİR <ib...@gmail.com>.
Hi;

These were the questions I had asked before using Axis2 and now I'm happy
with Axis2 using ADB

Here is a nice post about CFX and Axis2 performance:
http://www.ibm.com/developerworks/java/library/j-jws14/index.html

And here is another good benchmarking about binding methods (for the other
question you have sent to the mailing list)
http://wso2.org/library/588

But I want to remind that these are human-made benchmarks so there is always
the option of miss benchmarking.

Yours.
--
İbrahim DEMİR
twt: @ibrahimdemir
ff:    @ibrahimdemir
http://www.ibrahimdemir.org


On Tue, Jun 22, 2010 at 18:56, Srinivasa K <ku...@gmail.com> wrote:

> Hi,
>
> We are trying to migrate to Axis2 and also considering CXF. Could anybody
> provide advantages of CXF over Axis2?
> And, which one is the best in peformance view?
>
> Appreciate your help on this.
>
> Thanks,
> Srini
>

Re: CXF vs Axis2

Posted by Ron Wheeler <rw...@artifact-software.com>.
CXF is certainly easy to use and very fast to get up and running.

Ron

On 22/06/2010 11:56 AM, Srinivasa K wrote:
> Hi,
> We are trying to migrate to Axis2 and also considering CXF. Could 
> anybody provide advantages of CXF over Axis2?
> And, which one is the best in peformance view?
> Appreciate your help on this.
> Thanks,
> Srini


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org