Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2007

Tip: Looking for answers? Try searching our database.

java web service engine (axis2 problems)

Thread view: 
Shark - 15 Jul 2007 15:02 GMT
Hi all,

I want to use web services engine in my j2ee project and I thought
about :
Axis2
JAX-WS
Spring web services

After trying Axis2 for about a week,
I was unable to call the service sending and receiving complex Objects
e.g:

Class MyClass{
    Long id;
    String name;
    OtherClass class;
    ...
}

Steps I took in order to run this Axis2 web service :
Download tomcat + axis War (install both)
Create aar file from MyClass _ services.xml
Deploy the aar
Generate java stubs using wsdl2java
Then I tried to unsuccessfully run the web service...

I am seeking for an alternative to Axis2 that will be much user
friendly (programmer friendly)
Or an example on how to perform this very basic task of sending and
receiving complex Java objects throw the web service

Many thanks,
Sharon
Arne Vajhøj - 15 Jul 2007 15:45 GMT
> I want to use web services engine in my j2ee project and I thought
> about :
[quoted text clipped - 12 lines]
>     ...
> }

I would always use a public class with private fields and
public getters and setters.

> Steps I took in order to run this Axis2 web service :
> Download tomcat + axis War (install both)
> Create aar file from MyClass _ services.xml
> Deploy the aar
> Generate java stubs using wsdl2java
> Then I tried to unsuccessfully run the web service...

Based on that error description it is impossible to say
what the problem is.

> I am seeking for an alternative to Axis2 that will be much user
> friendly (programmer friendly)
> Or an example on how to perform this very basic task of sending and
> receiving complex Java objects throw the web service

I did not have any problems with Axis2 and my own classes.

But one obvious alternative to Axis2 is XFire. You can try that and
see if it suit you better.

Arne
Shark - 15 Jul 2007 17:48 GMT
Thank you very much

After consulting with friend today he also recommended XFire,
He is working for a very big software company.
He said that his company tested Axis2 and rejected its use for XFire.
(j2ee application  with approximately 10K users)

I will give XFire a try.

Do you have any sample code for Axis2 / XFire that send java Class
instance and receives one as a parameter?
All code samples I found receives and get primitives / String.

Thank you
Sharon

On Jul 15, 5:45 pm, Arne Vajh?j <a...@vajhoej.dk> wrote:
> > I want to use web services engine in my j2ee project and I thought
> > about :
[quoted text clipped - 39 lines]
>
> - Show quoted text -
Tomek - 16 Jul 2007 11:04 GMT
> Thank you very much
>
[quoted text clipped - 4 lines]
>
> I will give XFire a try.

Very good decision :) But you can also check Apache CXF (which is
XFire successor )

> Do you have any sample code for Axis2 / XFire that send java Class
> instance and receives one as a parameter?

> All code samples I found receives and get primitives / String.

Take a look at XFire samples e.g. JSR181.

> Thank you
> Sharon
[quoted text clipped - 44 lines]
>
> > - Show quoted text -


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.