Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK 3.3 (Release)
-
None
-
Affected OS(s): All OS Platforms
Browser: Internet Explorer 7.x
Language Found: English
Description
Steps to reproduce:
1. See attached samples, java2wsdl.rar for server side code (Weblogic 10.3) and SimpleClient.rar for the Flex client side. See READ_ME.txt in java2wsdl for information on how to build and deploy the server side.
2. Click on the button in the SimpleClient.mxml.
3. Capture the SOAP Reply being sent to the client from the web service via an HTTP Proxy or similar.
Actual Results:
The SOAP reply sent to the server looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:sendMessageResponse xmlns:ns2="http://java2wsdl.jaxws.webservices.examples/">
<return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:testReply">
<response>got request class =class examples.webservices.jaxws.java2wsdl.BaseRequest, value=null
</response>
<testResponseAAA>this is a test response
</testResponseAAA>
</return>
</ns2:sendMessageResponse>
</S:Body>
</S:Envelope>
Expected Results:
I would expect that the element response would have the type TestRequest and not BaseRequest as in this example. See the below response with one potential fix that we implemented.
<?xml version='1.0' encoding='UTF-8'?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:sendMessageResponse xmlns:ns2="http://java2wsdl.jaxws.webservices.examples/">
<return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:testReply">
<response>got request class =class examples.webservices.jaxws.java2wsdl.TestRequest, value=null
</response>
<testResponseAAA>this is a test response</testResponseAAA>
</return>
</ns2:sendMessageResponse>
</S:Body>
</S:Envelope>
Workaround (if any):
See XMLDecoder.as and SchemaTypeRegistry.as