When calling Web Service Elements with xsi:nil="true" attribute are
sent if property is null and response comes back as null. This is not
a documentation error rather product error. Any help will be very
appreciated.

An example is below:

Here an applicant has one to many relationship with question. When
applicant is instantiate, flex builder instantiates all associated
object and set it to nil. When the response comes back from the Web
Services call Flex Builder sets question to null.

<?xml version="1.0" encoding="UTF-8"?>
<cc:CorticonRequest xmlns:cc="urn:Corticon"
decisionServiceName="USHealthS">
  <cc:WorkDocuments>
    <cc:Applicant>
      <cc:dob>2/6/2008</cc:dob>
      <cc:gender>Male</cc:gender>
      <cc:name>sdfs</cc:name>
      <cc:orderAPS>true</cc:orderAPS>
      <cc:ssn>232333333</cc:ssn>
      <cc:status xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
      <cc:diastolic
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
      <cc:exclusion
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
      <cc:question
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
      <cc:systolic
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
    </cc:Applicant>
    <cc:Diastolic
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
    <cc:Exclusion
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" />
    <cc:One xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
    <cc:Question xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
    <cc:Systolic xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:nil="true" />
  </cc:WorkDocuments>
</cc:CorticonRequest>



Below is the response coming back from the Web Services.

<?xml version="1.0" encoding="UTF-8"?>
<cc:CorticonResponse xmlns:cc="urn:Corticon"
decisionServiceName="USHealthS">
  <cc:WorkDocuments xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <cc:Applicant id="Applicant_id_1">
      <cc:dob>2/6/2008</cc:dob>
      <cc:gender>Male</cc:gender>
      <cc:name>sdfs</cc:name>
      <cc:orderAPS>true</cc:orderAPS>
      <cc:ssn>232333333</cc:ssn>
      <cc:status>pending</cc:status>
      <cc:diastolic xsi:nil="true" id="Diastolic_id_1" />
      <cc:exclusion xsi:nil="true" id="Exclusion_id_1" />
      <cc:question xsi:nil="true" id="Question_id_1" />
      <cc:question id="Question_id_3">
        <cc:appid>232333333</cc:appid>
        <cc:code>1B Hypertension</cc:code>
        <cc:dataType>String</cc:dataType>
        <cc:possibleValues>yes,no,unsure</cc:possibleValues>
        <cc:section>checklist</cc:section>
        <cc:sequence>1</cc:sequence>
        <cc:text>High or low blood pressure, hypertension, stroke,
heart murmur, mitral valve, prolapse, heart attack?</cc:text>
      </cc:question>
      <cc:question id="Question_id_4">
        <cc:appid>232333333</cc:appid>
        <cc:code>1E Gall Bladder</cc:code>
        <cc:dataType>String</cc:dataType>
        <cc:possibleValues>yes,no,unsure</cc:possibleValues>
        <cc:section>checklist</cc:section>
        <cc:sequence>2</cc:sequence>
        <cc:text>Have you been diagnosed with hepatitis, cirrhosis,
jaundice, gallstones?</cc:text>
      </cc:question>
      <cc:question id="Question_id_5">
        <cc:appid>232333333</cc:appid>
        <cc:code>1G Diabetes</cc:code>
        <cc:dataType>String</cc:dataType>
        <cc:possibleValues>yes,no,unsure</cc:possibleValues>
        <cc:section>checklist</cc:section>
        <cc:sequence>3</cc:sequence>
        <cc:text>Have you been diagnosed with diabetes, sugar
intollerance, pancreatitis, or any disease or disorder of the
pancreas?</cc:text>
      </cc:question>
      <cc:question id="Question_id_6">
        <cc:appid>232333333</cc:appid>
        <cc:code>1L Back</cc:code>
        <cc:dataType>String</cc:dataType>
        <cc:possibleValues>yes,no,unsure</cc:possibleValues>
        <cc:section>checklist</cc:section>
        <cc:sequence>4</cc:sequence>
        <cc:text>Have you been diagnosed with sprain/strain of the
neck or back or spine, disc disease?</cc:text>
      </cc:question>
      <cc:question id="Question_id_7">
        <cc:appid>232333333</cc:appid>
        <cc:code>1Z SRS Related Questions</cc:code>
        <cc:dataType>String</cc:dataType>
        <cc:possibleValues>yes,no,unsure</cc:possibleValues>
        <cc:section>checklist</cc:section>
        <cc:sequence>5</cc:sequence>
        <cc:text>Have you been diagnosed with SRS specific
disorders?</cc:text>
      </cc:question>
      <cc:question id="Question_id_8">
        <cc:appid>232333333</cc:appid>
        <cc:code>2Z Newborn</cc:code>
        <cc:dataType>String</cc:dataType>
        <cc:possibleValues>yes,no,unsure</cc:possibleValues>
        <cc:section>checklist</cc:section>
        <cc:sequence>5</cc:sequence>
        <cc:text>Any newborn ailments?</cc:text>
      </cc:question>
      <cc:systolic xsi:nil="true" id="Systolic_id_1" />
    </cc:Applicant>
    <cc:Diastolic xsi:nil="true" id="Diastolic_id_2" />
    <cc:Exclusion xsi:nil="true" id="Exclusion_id_2" />
    <cc:One xsi:nil="true" id="One_id_1" />
    <cc:Question xsi:nil="true" id="Question_id_2" />
    <cc:Systolic xsi:nil="true" id="Systolic_id_2" />
  </cc:WorkDocuments>


Reply via email to