Hello Gary,

we have a similar problem in out architecture:

We want to hide the webservice-aspects from our clients in the 1st Tier 
and from our clients in the appserver,
so we implemented EJBs with common data transfer classes in their 
remote-interfaces. The EJBs themselves
map the data transfer classes to the axis generated classes.

This overhead is necessary from my point of view in order to hide the 
webservices a much as possible from
the different clients and in order to have the useful infrastructure of 
our common data transfer classes (which have
some useful baseclasses themselves).

Since we design the data transfer classes with almost the same structure 
like tue axis generated classes, the
mapping can be done by some easy reflection (deep copying of objects, 
traversing class hierarchy and
aggegration paths).

regards,
Thomas
 




"Godfrey, Gary" <[EMAIL PROTECTED]> 
15.07.03 17:33
Bitte antworten zu
[EMAIL PROTECTED]


An
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Kopie
"Hardiman, Piers" <[EMAIL PROTECTED]>
Thema
WSDL2Java






The web service we are writing uses complex objects. We have created our 
main interface, implementation and complex data object structure.
We have run Java2WSDL and this has created the WSDL as expected. We have 
run WSDL2Java and asked for the generated classes to go into their own 
package. This has generated versions of our complex data structure.
How do we tie the Axis generated code to our implementation code? The only 
way we see of doing it is to write adapter classes to map our data 
transfer classes to the Axis versions. This is incredibly complex due to 
the data hierachy and requires business logic to handle null data.
Any help will be appreciated. 
Regards, 
Gary Godfrey 
 
************************************************************************** 
         The information transmitted herewith is sensitive information 
intended only for use by the individual or entity to which it is 
addressed. If the reader of this message is not the intended recipient, 
you are hereby notified that any review, retransmission, dissemination, 
distribution, copying or other use of, or taking of any action in reliance 
upon this information is strictly prohibited. If you have received this 
communication in error, please contact the sender and delete the material 
from your computer.

Reply via email to