This content has been marked as final. Show 5 replies
Here is your service definition:
var reqObj : Object = new Object();
reqObj["parm1"] = "parm1Data";
reqObj["parm2"] = "parm2Data"
locationSaveService.send( reqObj );
The reqObj is simply an object that has a bunch of properties.
I do not believe there is a limitation with the POST method.
I believe that the GET method has limitiation. Get is the default for the HTTPService object.
Use post as the method
I tried using method="POST" and I'm getting the same results (or lack thereof). The HTTPService thinks it was successful as its calling the method in the result, but the data is not getting to the database.
If you post your code we can get a better idea.
But basically, you look like your are on the right path.
As long as you are creating an object with properties and assigining a value to the property and passing it to the send method Flex will do the rest.
Other than scratching through log statements, you need to write some server code to log what is happening on the server after the request is made. That is the only way to see what is happening on the server.
I don't know of any way to examine the URL that Flex generates using the send method and the requestObject.
I think I'll add some logging functionality to the servlets. That way I can see how the call is being sent via Flex.
I added logging and it appears that using an Object to post the parameters to the url is not working. Why, I don't know, but I changed the code to just build a full url string with parameters and that seems to be working OK, so I use that for now.