Forum Discussion

Intermountain_H_3's avatar
13 years ago

How do I sending null values in requests

Hi all
How do I send null values in requests ?
I tried <patientId xsi:nil="true" />
but it is giving me the following error
Attribute not allowed (no wildcards allowed): nil@xsi in element patientId

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi,

    you have to define your element to be nilable in the corresponding XML Schema definition for this to be valid. Otherwise the absence of the element could be interpreted as null!?

    regards,

    /Ole
    SmartBear Software
    • glakhaney's avatar
      glakhaney
      New Contributor

      Hi Team,

       

      I have defined the element as nillable in my XSD but when I am importing the WSDL in SOAP UI, the nillable namespace is not generated and I get the Attribute not allowed (no wildcards allowed): nil@xsi in element error.

       

      I even tried by manually adding the namespace in XSD (and I can see that it is present in WSDL) but when imported in SOAPUI, it does not reflect.

       

      The only solution that works is that I manually add the namespace in SOAP UI Request but I cannot ask my consumers to do the same. Kindly suggest.

       

      Regards,

      Geeta