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

an exception occurs in running WS client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • current (nightly)
    • None
    • Client - Stub
    • None
    • Win2K, UNIX

    Description

      Such codes of WS client are generated by WDSL2WS tool. If the result type is a complex type, in type deserialize function create below code:

      int Axis_DeSerialize_GenericOutput(GenericOutput* param, IWrapperSoapDeSerializer* pIWSDZ)
      {
      param->ResultCode = pIWSDZ->getElementAsString( "ResultCode",0);
      param->ResultMsg = pIWSDZ->getElementAsString( "ResultMsg",0);
      return pIWSDZ->getStatus();
      }

      here, ResultCode and ResutluMsg are elements in Result:
      <Result>
      <ResultCode>...</ResultCode>
      <ResultMsg>...</ResultMsg>
      </Result>

      Due to the second parameter is 0 (NULL), when the program execute it will access the address 0, so a exception occurs.

      Attachments

        1. umbpi.wsdl
          10 kB
          anson ye
        2. umbpi.zip
          136 kB
          Chinthana Dinapala

        Activity

          People

            cdinapala Chinthana Dinapala
            anson anson ye
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: