Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

consecutive calls to: <webservice>.send()

Avatar

Not applicable
Hello forum,



I'm new at Flex and ActionScript and I am in trouble with Web
Service Consumption. In my application, I need to call several
times to the same Web Service but with one different request
parameter.



The thing is, that once performed all the .send(), the
resultHandler is called, but always with the last value I gave to
that request parameter, so the result is always the same.



I paste some of the code:



[..]

employeeID = "00005001";

wsGetEmployeeData.EmployeeGetdata.send();

employeeID = "00005002";

wsGetEmployeeData.EmployeeGetdata.send();

[..]

private function
resultGetEmployeeData(event:ResultEvent):void{

xmlEmpData= wsGetEmployeeData.EmployeeGetdata.lastResult;

[..]

<mx:WebService id="wsGetEmployeeData" wsdl="url">

<mx:operation name="EmployeeGetdata"

resultFormat="e4x"

result="resultGetEmployeeData(event);"

fault="faultGetEmployeeData(event);">

<mx:request>

<EmployeeId>{employeeID}</EmployeeId>

</mx:request>

</mx:operation>

</mx:WebService>

[..]



Does anyone have an idea of how to call the Same Webservice?



Thank you,

toni
0 Replies