Sorry, upon investigation the jar still included an
Envelope and the generated MessageImpl was using that
instead of accepting the class I put in the
globalBinding....
For a note...I moved the globalBinding section to the
top of the document in the global portion.....
My second email contained an example app....trying
this in that app also demonstrates the issue. If you
look at what is generated, the MessageImpl.setEnvelope
is looking for a com.mytest.schema.soap.Envelope
instead of javax.xml.soap.SOAPEnvelope....Its a rough
example but proves the point...
I'm assuming my entry was ignored....
-S
--- Sal Campana <scampa123_at_yahoo.com> wrote:
> That worked!!!
>
> thanks so much...
>
> -Sal
>
>
>
> --- Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
> wrote:
> >
> > The globalBindings customization can be used only
> > once in the entire
> > schema set you compile.
> >
> > But in your binding, you have two of them (one for
> > SOAP and the other
> > for WSMF.)
> >
> > You should combine them into one by writing as
> > follows:
> >
> > <jxb:globalBindings>
> > <jxb:javaType
> > name="javax.xml.soap.SOAPEnvelope"
> > xmlType="soap:Envelope"
> >
>
parseMethod="com.hp.wsm.commons.xml.soap.SOAPNodeUtils.convertStringToEnvelope"
> >
>
printMethod="com.hp.wsm.commons.xml.soap.SOAPNodeUtils.convertEnvelopeToString"/>
> > <jxb:javaType
> > name="com.hp.wsm.commons.net.AnyURI"
> > xmlType="xs:anyURI"
> >
>
parseMethod="com.hp.wsm.commons.net.AnyURI.convertStringToAnyUri"
> >
>
printMethod="com.hp.wsm.commons.net.AnyURI.convertAnyUriToString"/>
> >
> > </jxb:globalBindings>
> >
> > And this will take effect to both schemas.
> >
> >
> > regards,
> > --
> > Kohsuke Kawaguchi
> > Sun Microsystems
> > kohsuke.kawaguchi_at_sun.com
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe_at_jaxb.dev.java.net
> > For additional commands, e-mail:
> > users-help_at_jaxb.dev.java.net
> >
>
>
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail:
> users-help_at_jaxb.dev.java.net
>
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net