• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Generate code from WSDL which re-uses previous objects

 
Author
Posts: 131
7
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm kinda new to webservices so sorry if this is a simple question. I have 2 web services created by the EE5 @WebService annotation. The account webservice returns Account objects. When I use Eclipse to create a webservice client the code generates the com.mycompany.account.Account class. This is fine.

Now my second webservice returns Journal objects. I wrote the webservice to accept Account objects as method parameters so the journals for an account can be found. My problem is when I use Eclipse to create a webservice client the code generates the com.mycompany.journal.Account class. This is not find.

com.mycompany.account.Account
is not the same as
com.mycompany.journal.Account

I'd like to modify the code generation of the second webservice so that when it creates the Account object it won't create its own inside the journal package. I don't want to translate an Account object in one package to an Account object in another package.

Any ideas?
 
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Michael Remijan:
Any ideas?



As far as I know only Axis2 will let you use pre-existing classes - if you use and configure JiBX.
 
What? What, what, what? What what tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic