users@jaxb.java.net

Re: Specified globalBinding customization not used error when compiling XJC

From: Sal Campana <scampa123_at_yahoo.com>
Date: Thu, 11 Dec 2003 09:49:41 -0800 (PST)

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