• 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

Creating Apache Axis2 Webservice Client

 
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the document I am following, http://axis.apache.org/axis2/java/core/docs/userguide-creatingclients-xmlbeans.html ('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.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

(developed using JAX-RPC)


This sounds suspicious - Axis2 does not support JAX-RPC.
 
Saurabh Pillai
Ranch Hand
Posts: 541
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 734
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

...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 {http://schemas.xmlsoap.org/wsdl/soap}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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic