users@jaxb.java.net

Re: Use of anyAttribute in a schema

From: Joe Fialli <Joseph.Fialli_at_Sun.COM>
Date: Thu, 21 Jul 2005 16:19:44 -0400

Michael C. Bruton wrote:

> Hi all,
>
> This is the first time I've posted a question.
>
> I have been tasked with programming some of the SOAP communications
> part of a web service project. Our company is required to use a web
> service to talk with one of our biggest customers.
>
> I want to use JAXB to generate just the SOAP part of the message.
> Once I have that document created as a file, I already have the code
> to send it.
>
> The problem is in using SOAP's encoding schema, which is imported
> to the custom schema for this service. The schema is located at
> http://schemas.xmlsoap.org/soap/encoding/, which uses the
> "anyAttribute" element, which is legal in the W3C XML Primer Part 0 at
> http://www.w3.org/TR/xmlschema-0/#NS.
>
> JAXB compiles, even with the -extension switch, always give the
> following warning:
>
> parsing a schema... [WARNING] warning:
> <anyAttribute> ignored
> line 67 of soapencoding.xsd
> (soapencoding.xsd is my local copy of the SOAP encoding schema.)
>
> I could sure use some help getting anyAttribute to be accepted by
> JAXB. Or is this impossible?

JAXB 1.0 only implemented a subset of XML Schema. It did not support
anyAttribute, hence the warning.
JAXB 2.0 supports 100% of XML Schema, including anyAttribute.

-Joe Fialli, Sun Microsystems

>
> Thanks - Mike Bruton
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>