FORUMS: list search recent posts

Unable to send complex input data to WSDL method

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Supriya Tenany
Unable to send complex input data to WSDL method
on Mar 22, 2011 at 9:00:57 am

Hi,

I am unable to use a WSDL method when I try to send complex data as input. I am able to receive and use response for operations requiring simple inputs, but unable to send complex data inputs.

The operation to be called is in the following format:

The AS 2.0 code is:

[CODE]
import mx.services.*;
import mx.remoting.*;
import mx.rpc.*;
import mx.data.*;

var paramObject = new LoadVars();

paramObject.mobileObj.mobileId = "1234";
paramObject.mobileObj.mobileCode = "N";
paramObject.emailId = "supriyaakg@test.com";
paramObject.userPassword = "test123";

var myWebServiceObject = new WebService("http://abc/mobile_servicesSOAP?wsdl");

myWebServiceObject.onLoad = function()
{
trace("Success call for WSDL");

var MyPendingCallObject:PendingCall = myWebServiceObject.loginUser(paramObject);

trace("----" + MyPendingCallObject.request);//input data format

MyPendingCallObject.onResult = function(result)
{
trace("----" + MyPendingCallObject.response);//output data
}

MyPendingCallObject.onFault = function(fault:PendingCall)
{
trace("Fault = " + fault.response);

}
}

myWebServiceObject.onFault = function(fault)
{
trace("Oops!!!" + fault);
}
[/CODE]


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]