This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Services and the fly likes Creating Apache Axis2 Webservice Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Web Services
Bookmark "Creating Apache Axis2 Webservice Client" Watch "Creating Apache Axis2 Webservice Client" New topic

Creating Apache Axis2 Webservice Client

Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 523
This is the document I am following, ('long story' section)

Webservice (developed using JAX-RPC)

Webservice Client (developed using Apache Axis2)

If required I can give you list of auto-generated files. How can I create an object of Stub? Any help is appreciated.

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42958
(developed using JAX-RPC)

This sounds suspicious - Axis2 does not support JAX-RPC.
Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 523
Isn't webservice consumer implementation independent of actual webservice implementation? i.e. websevice could be implemented in java but consumer could be iphone(c), java or dot net.

Also, these webservices are currently being consumed for an iPhone apps. then what's wrong with Apache Axis client?

Thank You.
g tsuji
Ranch Hand

Joined: Jan 18, 2011
Posts: 591
...what's wrong with Apache Axis client?

If you mean wrong in the sense that you might not be sure of the "What comes here?" below...
TestWSEndPointServiceStub stub = new TestWSEndPointServiceStub("What comes here?");

You should, modulo other complications, primarily look for the {}address element, in particular read its "location" attribute in the wsdl.

Axis2's supports for rpc is restricted to rpc/literal style; but I think not many would still use rpc/encoded style any more, so your application might be just that of the former, rpc/literal style.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Creating Apache Axis2 Webservice Client
It's not a secret anymore!