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

Deserialization Problem

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.3 Final
    • None
    • None
    • Windows

    Description

      I am working with Axis C++ 1.3. it is working smooth . But I have a small problem.
      For Deserialization of the return XML, I am using my own custom Deserializer function. From that function I am using the getAnyObject of SoapDeserilizer class. Actually my return data is a XML( I am sending a sample copy ). This function returns the data properly. But if the XML has any encoded data it make problem. When the function returns these data will unencoded and return actual charectors. But when I use this XML with any parser, it fails because of this data. For Examlple my XML consist of a data "<result> shijith&lal</result>". To properly parse this "&" charector must be encoded. But when the function returns this data in the abouve style ( not encoded ).

      My sample return XML

      <?xml version='1.0' encoding='UTF-8'?>
      <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <SOAP-ENV:Body>
      <ns1:myfunResponse xmlns:ns1="urn:myServer" SOAP-ENV:encodingStyle="http://xml.apache.org/xml-soap/literalxml">
      <return>
      <myresult><status recordid="shijith" statusid="0"><statusdesc>cn=shijith,ou=R&D,o=fishcer,c=ind</statusdesc></status></myresult>
      </return>
      </ns1:myfunResponse>

      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      Hope u can give me a suggestion

      Thaks

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              shijith shijith lal
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: