• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis2 Questions

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Cloey Tan
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic