Gents, I have a class I'm returning that follows standard javabean get/set conventions.  On the client side, I have a "generic" axis client that handles scalar types (String, Integer, etc.) as well as Element.  My question is, is there any way I can return, say, an Employee bean from my web service menthod, and cast it to Element/XML on the client side?  I've tried to do this, but if my bean has, say:
 
firstname
lastname
salary
 
fields.. I see via TCPMON the SOAP response contains <firstname>..</firstname><lastname>...</lastname>  etc. and their correct values, but my Axis client code (when I specify return type of Constants.SOAP_ELEMENT), just gets the <firstname> Element, and seems to think that's the whole document.  I've tried a beanmapping like this and many other variants:
 
<beanMapping qname="apachesoap:Element"  xmlns:apachesoap="http://xml.apache.org/xml-soap" languageSpecificType="java:com.mycompany.Employee"/> 
 
Anything I can do here to get the whole response document?  The WSDL is even generating fine, generating the complexType for Employee perfectly using the beanMapping above.
 
Thanks
Pete

Reply via email to