Link to home
Start Free TrialLog in
Avatar of coolispaul
coolispaulFlag for United States of America

asked on

sendandLoad problem in flash AS2

Hi,

I am trying to send data to a asp.net web service.
This seems to work, but the response is in a XML format:

<?xml version="1.0" encoding="utf-8"?>
<boolean xmlns="http://tempuri.org/">true</boolean>
 rather than just a string format of resukt = true

Flash doesnt seem to recognise that the result object of the senandload has actually loaded:

Response.onLoad = function(success:Boolean)

IS this because the web service is returning the response in XML format? and is there a way around this?

Thanks
Paul
SOLUTION
Avatar of jitendra_wadhwani
jitendra_wadhwani

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of coolispaul

ASKER

ok thanks will give that a go.

I noticed this post from someone: - Is this a feasible alternative?


 No screen name said on Nov 19, 2006 at 3:00 PM :

    Concerning: LoadVars.sendAndLoad

    You can send variable/value post information and receive xml information by using code like below.

    It's a great way to work with web services and avoid using the modem-unfriendly web service connector component. can adobe confirm that this method of sending with loadVars and receiving xml will be supported in the future?

    var replyXML = new XML();
    replyXML.onLoad = myOnLoad;
    function myOnLoad(success)
    {
    if (success) {
    trace(replyXML);
    } else {
    trace('fail');
    }
    }

    var send_lv = new LoadVars();
    send_lv.postVar = "foo";
    send_lv.sendAndLoad("addressOfMyWebServiceOrOtherProgram", replyXML, "POST");



Cheers
Paul
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial