• 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

Why is Axis2 wsdl2java making this complicated of a client stub?

 
Ranch Hand
Posts: 281
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using the "pixie dust" approach as I hear it being called in some posts here, so maybe that is the problem, but here is what's going on...

I've deployed a simple webservice to jboss4.0.5 (with jax-ws applied)
that is very simple:



On a remote server, when I build the stubs using wsdl2JAVA (based off
the wsdl generated when I deploy the webservice), I seem to have
to get access to the 'add result' by doing something like:



Is this normal? It seems odd to have to use an 'Add0' object and another
'Add' object that seems to wrap the Add0 object. Is there a reason the
stub doesn't provide a more simple implementation (minus the seemingly pointless wrapp) like:



or even better...



The client stub generation seems overly complicated. (When I deployed the service as an RPC type the wsdl2java generated the service stub without the wrapper around the Add class.)

I can deal with it the way it is, if that's just the 'facts of life,' but I just wanted to know if I'm doing something wrong. Maybe I need to add something to the annotations?
 
There are no more "hours", it's centi-days. They say it's better, but this tiny ad says it's stupid:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic