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

CLONE -WSDL serialization/parsing object broken in SDK 3.0 Beta 2

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Adobe Flex SDK Previous
    • None
    • RPC: WebService
    • None
    • Affected OS(s): Windows
      Affected OS(s):
      Language Found: English

    Description

      Steps to reproduce:
      1. Generate WSDL:

      • <xs:complexType name="getCampaignReportForAccount">
      • <xs:sequence>
        <xs:element minOccurs="0" name="filter" type="tns:campaignFilterBean" />
        </xs:sequence>
        </xs:complexType>
      • <xs:complexType name="campaignFilterBean">
        <xs:sequence />
        <xs:attribute name="ntw" type="tns:adNetworkEnum" />
        <xs:attribute name="nst" type="xs:string" />
        </xs:complexType>
      • <xs:simpleType name="adNetworkEnum">
        + <xs:restriction base="xs:string">
        <xs:enumeration value="Search" />
        <xs:enumeration value="Content" />
        <xs:enumeration value="All" />
        </xs:restriction>
        </xs:simpleType>

      Actual Results:

      (mx.rpc::Fault)#0
      errorID = 0
      faultCode = "EncodingError"
      faultDetail = (null)
      faultString = "Error #1034: Type Coercion failed: cannot convert enum::AdNetworkEnum@10791c61 to QName."
      message = "faultCode:EncodingError faultString:'Error #1034: Type Coercion failed: cannot convert enum::AdNetworkEnum@10791c61 to QName.' faultDetail:'null'"
      name = "Error"
      rootCause = (null)

      (mx.rpc::Fault)#0
      errorID = 0
      faultCode = "EncodingError"
      faultDetail = (null)
      faultString = "Error #1034: Type Coercion failed: cannot convert "Active" to QName."
      message = "faultCode:EncodingError faultString:'Error #1034: Type Coercion failed: cannot convert "All" to QName.' faultDetail:'null'"
      name = "Error"
      rootCause = (null)

      Expected Reult:
      Pass AS enum object to webserver. Working well if I wil pass string/double/int..., but in my case I have to pass Object in object

      Workaround (if any):

      Use primitive type in WSDL declaration

      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: