Hi,
We use Xfire on our server and client side, but we ran into a problem
after turning validation on. We have an operation witch takes the
folloing element as a payload:
<xs:element name="getUserProfileRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="userId" type="xs:string"
minOccurs="0">
<xs:annotation>
<xs:documentation>You'll only have to
specify a userId if you want to read somebody else's profile
(assuming you have the authorization to do this)</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
The message that is generated on the client side:
<ns2:getUserProfileRequest
xmlns:ns2="http://tesis.nl/webservices/types">
<userId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true" />
</ns2:getUserProfileRequest>
This leads to the following error message when validating:
Exception in startElement: cvc-elt.3.1: Attribute
'http://www.w3.org/2001/XMLSchema-instance,nil' must not appear on
element 'userId', because the {nillable} property of 'userId' is false.
Is this expected behaviour? And if so is there a way to control this?
Thanks in advance,
Ivo van Dongen
--
Ivo van Dongen
Func. Internet Integration
Prins Hendrikkade 20-21, 1012 TL Amsterdam
W http://www.func.nl
T +31 20 4230000
F +31 20 4223500