4

I need to specify a parameter in a function which is nullable. This doesn't work:

<message name="SaveRequest">
    <part name="serialNumber" nillable="true" type="xsd:int"/>
</message>
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
Simon
  • 3,235
  • 5
  • 36
  • 47

1 Answers1

4
<serialNumber xsi:nil="true" />

See w3.org XML Schema

gbn
  • 422,506
  • 82
  • 585
  • 676
  • Thank you for your answer and fixing my gramar:) But when I use: it dont work and i get error WSDLException (at /definitions/message[3]/serialNumber): faultCode=INVALID_WSDL: Encountered unexpected 'http://schemas.xmlsoap.org/wsdl/:serialNumber'. where is problem? thank you a lot for your help. – Simon Mar 29 '10 at 19:38
  • Did you declare the xsi namespace to http://www.w3.org/2001/XMLSchema-instance? If so could you paste your full wsdl or relevant parts so we can see what the real problem is? – whaley Jul 26 '10 at 04:16