Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-570

Duplicate namespace on operation element of SOAP message causes problem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • C++-SCA-Next
    • C++-SCA-Next
    • C++ SCA Old / Contrib
    • None
    • Windows XP

    Description

      This is an artefact of the Interop testing.

      JIRA505 (http://issues.apache.org/jira/browse/TUSCANY-505 )describes the problem associated with having xsi:type associated with the wrapper element in the SOAP body. I note that the C++ produced messages also have duplicate namespaces which may also be causing a problem as I have to remove the duplicate to move on through the interop testing.

      When C++ calls stock quote

      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:To>http://localhost:8081/interop-stockquote/services/StockQuoteService</wsa:To>
      <wsa:Action>http://www.quickstockquote.com/StockQuoteService/getQuote</wsa:Action>
      <wsa:MessageID>870bf065-6849-47fb-86ad-224b81513541</wsa:MessageID>
      </soapenv:Header>
      <soapenv:Body>
      <getQuote xsi:type="getQuote" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns="http://www.quickstockquote.com/StockQuoteService/"
      xmlns:tns="http://www.quickstockquote.com/StockQuoteService/">
      <symbol>IBM</symbol>
      </getQuote>
      </soapenv:Body>
      </soapenv:Envelope>

      When Java calls stock quote

      <?xml version='1.0' encoding='UTF-8'?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header />
      <soapenv:Body>
      <Service:getQuote xmlns:Service="http://www.quickstockquote.com/StockQuoteService/">
      <symbol>IBM</symbol>
      </Service:getQuote>
      </soapenv:Body>
      </soapenv:Envelope>

      Note that C++ declares the namspace http://www.quickstockquote.com/StockQuoteService/ as the default namespace and with a prefix.

      I haven't investigated in depth the cause of this but this is a place hold for when I (or someone else) gets round to looking.

      For testing I adjusted SDOXMLWritte.cpp around line 788 to prevent it writing out namespaces:

      Attachments

        Activity

          People

            Unassigned Unassigned
            simonslaws Simon Laws
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: