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.
Java EE Evangelist — Author, EJB 3 in Action 2nd Edition — Java Community Process Member