I sent a GetResourceProperty request message to retrieve a property and
received a JAXRPCException with the following message: "Unexpected
error. Cause:
org.apache.ws.resource.properties.MetaDataViolationException: Property
element to add must be named ...". This is puzzling since I am just
reading a property.
The type for my property looks something like:
<xs:complexType name="FooType">
<xs:sequence>
<xs:element name="Spiffy" type="xs:hexBinary"
minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Type" type="x:TypeEnumeration"/>
<xs:element name="Name" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="Foo" type="x:FooType"/>
And the property is declared as follows in the resource property
document:
<xs:element ref="x:Foo"
minOccurs="0" maxOccurs="unbounded"/>
The documentation for MetaDataViolationException does not indicate the
conditions for which it will be thrown. The stack trace does not reach
my code, so I don't know what to change.
Can you help me understand why this exception is being thrown.
Thanks,
Bryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]