Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-644

Nillable response-fields lead to corrupt a XML-response

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5 Final
    • None
    • Server - General
    • None
    • Redhat ES 3; HP-UX 11

    Description

      returning NULL-values (in nillable fields) lead to corrupt a XML-response:

      part of the wsdl:

      <complexType name="LoginResult">
      <complexContent>
      <extension base="tns1:Result">
      <sequence>
      <element name="address" nillable="true" type="xsd:string"/>
      <element name="defEmail" nillable="true" type="xsd:string"/>
      <element name="pwdLife" type="xsd:int"/>
      </sequence>
      </extension>
      </complexContent>
      </complexType>

      part of the response:

      <ns5:address xmlns:ns5"http://results.xzy.com" xsi:nil="true"></ns5:address>
      <ns6:defEmail xmlns:ns6"http://results.xzy.com" xsi:nil="true"></ns6:defEmail>

      bugfix:

      ./src/common/BasicTypeSerializer.cpp Line 99

      m_sSZ += "=\"";
      -->
      m_sSZ += "\"";

      part of the response using the fix:

      <ns5:address xmlns:ns5="http://results.xzy.com" xsi:nil="true"></ns5:address>
      <ns6:defEmail xmlns:ns6="http://results.xzy.com" xsi:nil="true"></ns6:defEmail>

      Attachments

        Activity

          People

            dchandradasa Marcus Dushshantha Chandradasa
            a9702466 Stephan Pelikan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: