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

generated port-type code has unitialized variable problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1 Final
    • 1.3 Final
    • WSDL processing - RPC
    • None
    • Windows

    Description

      In the following, Ret is unitialized if m_pCall->Invoke fails. Seems to me that Ret should be assigned to the result of m_pCall->Invoke.

      xsd_string InteropTestPortType::echoString(xsd_string Value0)
      {
      xsd__string Ret;
      if (AXIS_SUCCESS != m_pCall->Initialize(CPP_RPC_PROVIDER, NORMAL_CHANNEL)) return Ret;
      m_pCall->SetTransportProperty(SOAPACTION_HEADER , "base#echoString");
      m_pCall->SetSOAPVersion(SOAP_VER_1_1);
      m_pCall->SetOperation("echoString", "http://soapinterop.org/");
      m_pCall->AddParameter((void*)&Value0, "inputString", XSD_STRING);
      if (AXIS_SUCCESS == m_pCall->Invoke())
      {
      if(AXIS_SUCCESS == m_pCall->CheckMessage("echoStringResponse", ""))

      { Ret = m_pCall->GetElementAsString("return", 0); }

      }
      m_pCall->UnInitialize();
      return Ret;
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            benson_basis Benson Margulies
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: