This is good, but is there any way to go about it without using this library
on the server side?  (e.g. have the method still return an Employee bean,
and have axis give me the full complex type in the response as an Element
and not just one element of the complex type?)

----- Original Message -----
From: "David Thielen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, May 05, 2004 6:47 PM
Subject: Re: map bean to XML


> Take a look at betwixt in the jakarta project.
>
> - dave
>
>
> ---------- Original Message ----------------------------------
> From: "Pete Clark" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date:  Wed, 5 May 2004 17:05:20 -0400
>
> >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