3 Replies Latest reply on Jul 19, 2011 7:10 AM by tom_sl

    Using ASP.NET web service - new objects created when null objects are sent



      I have an ASP.NET 2.0 web service and I have added it to the Flex 3.5 project in Flash Builder 4 via the wizard. I have a strange issue where if I send an object to the web service with some fields that are null the webservice is actually creating new objects on the other end (and not putting any data in them).

      The XML being sent looks like this:



      <tns:SomeFieldThatShouldBeNull xsi:nil="true"/>
      <tns:SomeFieldThatShouldBeNull2 xsi:nil="true"/>

      In this example SomeFieldThatShouldBeNull and SomeFieldThatShouldBeNull2 are being created as new objects by the webservice. It is vital for the application that does not happen. What could be causing this?


      This issue does not occur when we use the web service via the ASP.NET.