Groups | Blog | Home
all groups > flash data integration > september 2005 >

flash data integration : Web service connector in 2004 vs 8


MDKelly
9/26/2005 12:00:00 AM
I'm connecting to a very simple web service that takes three text strings as
input and returns a text string as output. In MX 2004 Pro, I'm expecting to get
the string "mike" as output, but I get the following:
<MDKSecretMessageResponse
xmlns="MDKSecretMessage"><Message>mike</Message></MDKSecretMessageResponse>

In Flash 8, it simply returns the string "undefined"

Why would I get different results across versions? Here is the wsdl. Perhaps
it is the problem. Thanks for any help.
Mike

<?xml version="1.0" encoding="utf-8" ?>
- <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tenf="MDKSecretMessage" targetNamespace="MDKSecretMessage">
<types />
- <message name="MDKSecretMessage-In">
<part name="TFWSUser" type="xsd:string" />
<part name="TFWSPassword" type="xsd:string" />
<part name="Key" type="xsd:string" />
</message>
- <message name="MDKSecretMessage-Out">
<part name="Message" type="xsd:string" />
</message>
- <portType name="MDKSecretMessage">
- <operation name="MDKSecretMessage">
<input message="tenf:MDKSecretMessage-In" />
<output message="tenf:MDKSecretMessage-Out" />
</operation>
</portType>
- <binding name="MDKSecretMessage" type="tenf:MDKSecretMessage">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"
/>
- <operation name="MDKSecretMessage">
<soap:operation style="rpc" soapAction="MDKSecretMessage" />
- <input>
<soap:body use="literal" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
<element />
- <service name="MDKSecretMessage">
- <port name="MDKSecretMessage" binding="tenf:MDKSecretMessage">
<soap:address
location="http://10.150.8.71/TimeTracker/tffcweb20050829.161347.dll" />
</port>
</service>
</definitions>
MDKelly
9/28/2005 10:24:06 PM
It looks like the reply comes in the 1999 SOAP schema instead of the 2001
schema. Flash 2004 didn't parse out the response correctly but Flash 8 just
returns "undefined." Is Flash not compatable with the 1999 SOAP schema? Here is
what the reply looks like:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/">
<soap:Body>
<MDKSecretMessageResponse>
<Message>You entered the correct key</Message>
</MDKSecretMessageResponse>
</soap:Body>
</soap:Envelope>
AddThis Social Bookmark Button