• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generate code from WSDL which re-uses previous objects  RSS feed

 
Michael Remijan
Author
Ranch Hand
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?
 
Peer Reynders
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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!