You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jake Goulding <go...@vivisimo.com> on 2008/09/23 21:59:20 UTC
[axis2] Any examples of how to use external JAXB customization with
wsdl2java?
Hey all:
I have a mildly complicated WSDL with a few inline schemas. Inside of one of those schemas, I have an element that has an attribute and a child element of the same name. Using wsdl2java, I get the following error:
[ERROR] Property "Cache" is already defined. Use <jaxb:property> to resolve this conflict.
I have seen references to JAXB customization files, but nothing concrete with Axis2. Most references seem to want to know the location for the XSD, which I don't know how to specify that it is internal to the WSDL. If anyone has an example of a file that would let me change this attribute name (including the right magic switch to wsdl2java!) I'd be much obliged.
Thanks!
-Jake
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [axis2] Any examples of how to use external JAXB customization
with wsdl2java?
Posted by Jake Goulding <go...@vivisimo.com>.
Martin:
Thanks for the suggestion. That is what I have done as a temporary hack
to continue on, but it won't be a full solution as I ultimately don't
have the power to change that bit of my service.
I know that JAXB offers support for this with the wsimport tool, but I'm
not clean on how wsimport and Axis integrate (if at all!)
-Jake
Martin Gainty wrote:
> flying blind here as I dont see your xsd or your wsdl
> can you define your element name to be anything other than a reserved
> word such as Cache
> (even Cache1 will do)
>
> Martin
> ______________________________________________
> Disclaimer and confidentiality note
> Everything in this e-mail and any attachments relates to the official
> business of Sender. This transmission is of a confidential nature and
> Sender does not endorse distribution to any party other than intended
> recipient. Sender does not necessarily endorse content contained within
> this transmission.
>
>
> > Date: Tue, 23 Sep 2008 15:59:20 -0400
> > From: goulding@vivisimo.com
> > To: axis-user@ws.apache.org
> > Subject: [axis2] Any examples of how to use external JAXB
> customization with wsdl2java?
> >
> > Hey all:
> >
> > I have a mildly complicated WSDL with a few inline schemas. Inside of
> one of those schemas, I have an element that has an attribute and a
> child element of the same name. Using wsdl2java, I get the following error:
> >
> > [ERROR] Property "Cache" is already defined. Use <jaxb:property>
> to resolve this conflict.
> >
> > I have seen references to JAXB customization files, but nothing
> concrete with Axis2. Most references seem to want to know the location
> for the XSD, which I don't know how to specify that it is internal to
> the WSDL. If anyone has an example of a file that would let me change
> this attribute name (including the right magic switch to wsdl2java!) I'd
> be much obliged.
> >
> > Thanks!
> >
> > -Jake
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
> ------------------------------------------------------------------------
> Get more out of the Web. Learn 10 hidden secrets of Windows Live. Learn
> Now
> <http://windowslive.com/connect/post/jamiethomson.spaces.live.com-Blog-cns!550F681DAD532637!5295.entry?ocid=TXT_TAGLM_WL_getmore_092008>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org