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
BedrockMission!

Learn More

View all

Sign in to view all badges

HTTPService request problem

Avatar

Avatar
Level 1
waefre
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
waefre
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
waefre
Level 1

12-08-2008

Hi,

I've faced a problem with HTTPService. I want to send a
parameter with a <request> markup to the jsp page and get
data based on this parameter. The service populate an
ArrayCollection.

I've used a button to execute the httpserv.send() method but
it doesn't work as I want it to.

The problem is, proper data appears after the second click on
the button. After the first click, ArrayCollection doesn't
populate, after second it populates right. The same thing happens
with changing parameter - after change and click, array is still
populated with the data representing previous prameter. After
second click, everything show as it should. Another parameter
change works the same.

Any ideas how to get data AFTER sending request? HttpService
code below.

Thanks in advance.



Best regards,

Wojtek



...

<mx:HTTPService

id="getPermissions"

url="
http://.../getPermissions.jsp"

method="POST"

useProxy="false"


result="permissionsArray=ArrayCollection(getPermissions.lastResult.permissions.permission);"

fault="handleFault(event)"

>

<mx:request xmlns="">


<contr_nr>{dataGrid1.selectedItem.contr_nr}</contr_nr>

</mx:request>

</mx:HTTPService>

...







Replies

Avatar

Avatar
Level 1
conscript7
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
conscript7
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
conscript7
Level 1

20-08-2008

hmm it looks ok

Avatar

Avatar
Level 1
waefre
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
waefre
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
waefre
Level 1

25-08-2008

The problem has been solved. I figured out that it had
nothing to do with HTTPService, the service was ok (as it looks :).
The problem was with data binding. Thanks anyway.