On Sunday 28 November 2004 23:11, robert burrell donkin wrote:
> On 27 Nov 2004, at 15:58, Michael Schuerig wrote:
> > I'd like to pass a DynaClass instance to a method that takes a
> > Class argument. This doesn't seem to be possible, or is it?
>
> a DynaClass is not a real class (and i don't see any way that it
> could every be).

I suspected that much :-(

> > My concrete case is that I want to map XML type to a DynaClass in a
> > call
> > to WSIFService.mapType(QName, Class).
>
> i suspect that you're out of luck: a library has to be written to be
> dynabean aware.
>
> you might be able to find ways around this but it'd probably mean
> learning a lot more about the innards of the service. (maybe create a
> special class)

My understanding is that for this I'd have to make changes deeply in the 
bowels of WSIF, Axis, and probably the other WSIF providers.

Currently, even when calling a service dynamically, it's necessary to 
have classes to which the result can be mapped. They're mostly trivial 
to write or can be generated. It would have been nifty, though, if 
these classes -- or pseudo-classes -- could be created fully 
dynamically.

> alternatively, choose a dynabean aware binder. (for example,
> commons-betwixt.)

So far, I haven't looked into betwixt at all. I'm somewhat overwhelmed 
by the sheer number of different tools for binding XML to Java objects. 
I've got a penchant for commons-digester and have written some generic 
code for using it as an Axis deserializer -- I hope to put some sample 
code on the web soon.

Michael

-- 
Michael Schuerig                         Those people who smile a lot
mailto:[EMAIL PROTECTED]                             Watch the eyes
http://www.schuerig.de/michael/    --Ani DiFranco, Outta Me, Onto You

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to