• 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

How to access a class defined within a class in WebService

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to develop a web service call Car which has a class Tyre defined within it as shown below


I have generated client stub using wsdl2java Eclipse pluging with "default" settings. But the Client stub class does not show any functions such as get_tyre or setTyre.

Any suggestions would be appreciated.
If this a repost, sorry.Please direct me to older post in your reply
Thanks


 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What API are you using - JAX-WS? If so, you'd use the @WebMethod annotation to indicate which methods you want to expose. It's possible that that doesn't work with nested classes, though (in which the outer class needs to provide setters and getters which you can annotate).
 
Kedar sk
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply, I am using ADB api, but I found what the problem was the inner class was not defined in wsdl, when I searched for the solution, on Issues Apache and got it under this link Fix for the inner classes issue (attached)
reply
    Bookmark Topic Watch Topic
  • New Topic