aspose file tools*
The moose likes Web Services and the fly likes Axis2 Questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis2 Questions" Watch "Axis2 Questions" New topic
Author

Axis2 Questions

Cloey Tan
Ranch Hand

Joined: Feb 03, 2009
Posts: 60
I'm using ejb3 and jboss for my web application, and plan to try out the Axis2 feature, and i have a few questions here:

1)Inside my axis2-1.5\lib, there're so many jar files, which are the relevant lib for me to get Service Client?
2)i came across the WSDL2Java tool, its for generating the java classes which are related to consuming some WSDL?
3)For example, i need to consume a web service online http://~.php?WSDL, how would the WSDL2Java come into place?
4)Can i work with axis2 for the web service client without using the wsdl2java?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
1)Inside my axis2-1.5\lib, there're so many jar files, which are the relevant lib for me to get Service Client?

Does it matter? That is to say, is there a particular benefit in removing any of the files? You could find out by trial-and-error (remove jar files one by one, and see if there are runtime errors) if you really wanted to, but I see little point in doing so.

2)i came across the WSDL2Java tool, its for generating the java classes which are related to consuming some WSDL?

Kind of. wsdl2java reads the WSDL, and then uses that information to create Java client code. For running the client code the WSDL is no longer needed.

3)For example, i need to consume a web service online http://~.php?WSDL, how would the WSDL2Java come into place?

The http://ws.apache.org/axis2/1_5/quickstartguide.html page explains how to use it for creating client code for the various types of clients. If you don't know which type of client to use, start with the XMLBeans type.

4)Can i work with axis2 for the web service client without using the wsdl2java?

Yes, but you'd have to write the client code yourself - not a fun or easy task by any means. Why not let the tool do the work for you? You'll save lots of time.


Ping & DNS - updated with new look and Ping home screen widget
Cloey Tan
Ranch Hand

Joined: Feb 03, 2009
Posts: 60
Thanks for the help, it has been of great help to me.
Just started off with the Axis2 wsdl2Java tool and now i have a few more questions to ask here:

1) I followed the link as given on the axis2 website, and it generates quite a number of classes, i assume the clientxxstub being generated is an example of client, and the rest of the classes generated are the web service api which need to exist together with the client class as well. please correct if im wrong.
Im using the xmlbeans method, because i got some error previously using the ADB. Part of the error are like below:
Any idea why this happens with the ADB?





2) I tried to generate client with another wsdl using xmlbeans, the exactly same method that i used for the previous example, but it ended up with an error.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis2 Questions
 
Similar Threads
Webservice Mapping
Adding WS Security Info to Soap Header
Deploying the Eclipse generated web service client on Tomcat
reading soap-envelop messages
WSDL2JAVA generating all the Client code in one solid Java file