Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-21024

SOAPEncoder doesn't set the type properly when args are extensions of abstract types.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK 3.4 (Release)
    • None
    • RPC: WebService
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Browser: Firefox 3.x
      Language Found: English

    Description

      Steps to reproduce:
      1. see attached wsdl, generate code from that
      2. call the Hyper9Service.saveJob method using a DataCollectionJob as the jobData parameter
      3. Notice the <jobData> element doesn't indicate that it is of the type DataCollectionJob which is a class that extends AbstractJob.

      Actual Results: here is the envelope

      <SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <sch:saveJob xmlns:sch="http://www.hyper9.com/ws">
      <sch:jobData>
      <sch:description>
      </sch:description>
      <sch:group>
      Data Collection
      </sch:group>
      <sch:id xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      <sch:name>
      Config-4a6ff5ae-2e8e-4af7-9e97-f70c68dffc94
      </sch:name>
      <sch:owner xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      </sch:jobData>
      </sch:saveJob>
      </SOAP-ENV:Body>

      Expected Results: This is what it should look like

      <SOAP-ENV:Body xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
      <sch:saveJob xmlns:sch="http://www.hyper9.com/ws">
      <sch:jobData xsi:type="DataCollectionJob" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      <sch:description>
      </sch:description>
      <sch:group>
      Data Collection
      </sch:group>
      <sch:id xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      <sch:name>
      Config-4a6ff5ae-2e8e-4af7-9e97-f70c68dffc94
      </sch:name>
      <sch:owner xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
      </sch:jobData>
      </sch:saveJob>
      </SOAP-ENV:Body>

      Workaround (if any): Hack up the BaseHyper9Service.as class' "call" method to specifically inject the text into the soap envelope

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: