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

Incorrect namespace for open content

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • C++-SCA-Next
    • None
    • C++ SDO
    • None

    Description

      I use XSDHelper::defineFile() to load the two schemas at http://schemas.xmlsoap.org/wsdl/ and http://schemas.xmlsoap.org/wsdl/soap/.

      I then build up an XML Document using that factory. I create an empty document and get the root data object. Then

      At this point I can introspect my port object, and I see:

      object(SDO_Model_ReflectionDataObject)#9 {

      This looks correct to me.

      Now we get to the problem. I save the XML document to a string. and it comes out like this:
      <?xml version="1.0" encoding="UTF-8"?>
      <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns2="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <service>
      <port>
      <address xsi:type="tns2:tAddress" location="http://example.com"/>
      </port>
      </service>
      </definitions>

      You'll notice that address has no namespace, and so is in the wsdl namespace by default, not the soap namespace where it belongs.

      This is using revision 478193.

      Attachments

        Activity

          People

            Unassigned Unassigned
            cem Caroline Maynard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: