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

SAXarseException while using setSOAPMethodAttribute() API

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • None
    • SOAP
    • None

    Description

      I am trying to write test for setSOAPMethodAttribute() APIs.

      The following code throws SAXarseException.

      MathOps ws(endpoint);
      ws.setSOAPMethodAttribute("add", "ns5", "value");
      iResult = ws.div(15,3);
      cout << "Result is = " << iResult << endl;

      The tcp moitor response shows that "CDATA[org.xml.sax.SAXarseException: The
      namespace prefix "ns5" was not declared.]".

      Since the values set by setSOAPMethodAttribute() reflect in Soap Message Body, how do we declare
      namespace prefix in SOAP Message body ? I know that createNameSpaceDecl() declares a namespace prefix in the SOAP Header but I would like to know how it can be created in SOAP Message Body. Any tips on the exact usage of these APIs would be helpful.

      Regards
      Manohar

      Attachments

        Activity

          People

            dicka Adrian Dick
            cmanohar Manohar Kumar Chintala
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: