That's clever thinking Paul! It appears to solve my problem in most
cases. Just to make life interesting I've been saddled with a few
oddball schemas similar to the one below. The designer has embedded an
XML document within another as text content. I can work out how to
manually unmarshal this thing but I'm wondering if I can extend your
suggestion so Axis will do this for me. Anyone know of a way to inform
the code generator of this nesting?
<bun>
<hotdog>
<relish>1234</relish>
<mustard><SideOrders Fries="1"/></mustard>
</hotdog>
</bun>
Rich
-----Original Message-----
From: Paul Fremantle [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 02, 2007 2:00 AM
To: [email protected]
Subject: Re: XSD2Java
Rich
One of the aspects of WSDL is "duck-typing".
http://en.wikipedia.org/wiki/Duck_typing
The result of this is that you can have two different WSDLs. The
official WSDL and a "pseudo" WSDL. So one approach would be to take
the official WSDL, edit it to include the XSDs and then generate a
client from it. You end up with a client that has databinding, but
still talks to the real service.
Paul
On 6/1/07, Rich Adili <[EMAIL PROTECTED]> wrote:
> Yep, tons of them. Since writing this I've done some puttering about
> with various bindings and not found a good solution. The code
generated
> by XSD2Java doesn't like my XML. The XML conforms to the schema but
does
> not reference the schema so the generated code doesn't recognize the
> namespace of any of its tags.
>
> -----Original Message-----
> From: Paul Fremantle [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 01, 2007 7:49 AM
> To: [email protected]
> Subject: Re: XSD2Java
>
> Rich
>
> Do you have schema somewhere (i.e. just not in the WSDL)?
>
> Paul
>
> On 5/31/07, Rich Adili <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > My services exchange a number of XML documents that aren't code
> > generated from WSDL as the content is spec'ed as xs:any. Is XSD2Java
> my
> > best choice for generating Java bindings for these documents? Any
> > documentation or examples lying around?
> >
> > Thanks,
> > Rich
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Paul Fremantle
> Co-Founder and VP of Technical Sales, WSO2
> OASIS WS-RX TC Co-chair
>
> blog: http://pzf.fremantle.org
> [EMAIL PROTECTED]
>
> "Oxygenating the Web Service Platform", www.wso2.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair
blog: http://pzf.fremantle.org
[EMAIL PROTECTED]
"Oxygenating the Web Service Platform", www.wso2.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]