Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
Adobe Flex SDK 4.0 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Browser: Internet Explorer 8.x
Language Found: English
Description
Steps to reproduce:
1. Use "Data->Connect to web service" to create wrapper code for a wsdl that defines a mime return type
2. Run program calling webservice
Actual Results:
The line: var soapResult:SOAPResult = decoder.decodeResponse(stringResult); in Operation.as throws an error reading the soap return data:
Error #1083: The prefix "0.urn" for element "0.urn:uuid:8B3148FF8D07A7E4801260891374173@apache.org" is not bound.
This leads to the fault listener being called.
Expected Results:
The result data being properly interpreted.
Workaround (if any):
none.
Below are 1)the wsdl for a simple hello world service 2)the soap result that can't be processed. The Content-id appears to cause problems because of the ':' when the XML object tries to parse it.
1)<?xml version="1.0" encoding="UTF-8"?>
<definitions name="HelloWorldWebService" targetNamespace="http://tempuri.org/HelloWorldWebService" xmlns:tns="http://tempuri.org/HelloWorldWebService" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:typesns="http://tempuri.org/HelloWorldWebService" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<types>
<schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/HelloWorldWebService" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://tempuri.org/HelloWorldWebService">
<annotation>
<documentation>generated schema</documentation>
</annotation>
<element name="helloWorldWebService">
<complexType>
<sequence>
<element name="parameters" type="tns:helloWorldWebServiceParameters"/>
</sequence>
</complexType>
</element>
<complexType name="helloWorldWebServiceParameters">
<sequence>
<element maxOccurs="1" minOccurs="0" name="_debug" type="string"/>
</sequence>
</complexType>
<element name="helloWorldWebServiceResponse">
<complexType>
<sequence>
<element name="helloWorldWebServiceResult">
<complexType>
<sequence>
<element maxOccurs="1" minOccurs="0" name="Streams">
<complexType>
<sequence>
<element maxOccurs="1" minOccurs="0" name="_WEBOUT">
<complexType>
<sequence>
<element name="Value" type="base64Binary"/>
</sequence>
<attribute name="contentType" type="string"/>
</complexType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="helloWorldWebService">
<part name="parameters" element="tns:helloWorldWebService">
</part>
</message>
<message name="helloWorldWebServiceResponse">
<part name="parameters" element="tns:helloWorldWebServiceResponse">
</part>
</message>
<portType name="HelloWorldWebServicePortType">
<operation name="helloWorldWebService">
<documentation>
<description>Sample: Hello World
Deploy as web svc</description>
<keywords>
<keyword>Data NULL</keyword>
<keyword>PUT</keyword>
</keywords>
</documentation>
<input message="tns:helloWorldWebService">
</input>
<output message="tns:helloWorldWebServiceResponse">
</output>
</operation>
</portType>
<binding name="HelloWorldWebServiceSoapBinding" type="tns:HelloWorldWebServicePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="helloWorldWebService">
<soap:operation soapAction="http://tempuri.org/HelloWorldWebService/helloWorldWebService"/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="HelloWorldWebService">
<documentation>
<keywords>
</keywords>
</documentation>
<port name="HelloWorldWebServicePort" binding="tns:HelloWorldWebServiceSoapBinding">
<soap:address location="http://100.250.110.187:8080/services/HelloWorldWebService"/>
</port>
</service>
</definitions>
2)--MIMEBoundaryurn_uuid_8B3148FF8D07A7E4801260891374172
Content-Type: application/xop+xml; charset=utf-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <0.urn:uuid:8B3148FF8D07A7E4801260891374173@apache.org>
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><m:helloWorldWebServiceResponse xmlns:m="http://tempuri.org/HelloWorldWebService"><m:helloWorldWebServiceResult><axis2ns10:Streams xmlns:axis2ns10="http://tempuri.org/HelloWorldWebService"><axis2ns11:_WEBOUT xmlns:axis2ns11="http://tempuri.org/HelloWorldWebService" contentType="text/html;charset=utf-8"><axis2ns12:Value xmlns:axis2ns12="http://tempuri.org/HelloWorldWebService"><xop:Include href="cid:1.urn:uuid:8B3148FF8D07A7E4801260891374174@apache.org" xmlns:xop="http://www.w3.org/2004/08/xop/include" /></axis2ns12:Value></axis2ns11:_WEBOUT></axis2ns10:Streams></m:helloWorldWebServiceResult></m:helloWorldWebServiceResponse></soapenv:Body></soapenv:Envelope>
--MIMEBoundaryurn_uuid_8B3148FF8D07A7E4801260891374172
Content-Type: text/html;charset=utf-8
Content-Transfer-Encoding: binary
Content-ID: <1.urn:uuid:8B3148FF8D07A7E4801260891374174@apache.org>
?<HTML>
<HEAD><TITLE>Hello World!</TITLE></HEAD>
<BODY>
<H1>Hello World!</H1>
</BODY>
</HTML>
-MIMEBoundaryurn_uuid_8B3148FF8D07A7E4801260891374172-