I think it depends on the code in your aspx page. I have no problems sending objects to .NET web services.
Perhaps your back-end code is expecting url parameters instead of actual parameters?
1 person found this helpful
My initial guess would be that the parameters are not spelled correctly. Always double check that in FLEX because it will never warn you about that. It will either work or it wont and its up to you to figure out you mis-spelled something! (just a heads up there).
Your code looks fine. The only difference I see with mine is that I use result events for my HTTPService objects, like this:
<s:HTTPService id="httpSRV" url="http://www.myURL.org:8060/BusinessStuff/WSDLName.asmx/WebServiceNameHere"/>
<s:CallResponder id="getHTTPSRVResult" result="getHTTPSRVResult_resultHandler(event)"/>
getHTTPSRVResult.token = httpSRV.send(params);
I am unsure if it requires a token for parameters to work in that fashion. Give it try, you never know. I do not believe it will fix your problem, but it could. My guess is something is wrong with the ASPX page...
BTW, welcome to FLEX and to this online community. I have been programming in FLEX for 3 months, so I understand your pain(s).
In response to rtalton:
You were correct. My inexperience with aspx lead me to use Request.QueryString which as I demonstrated works fine for concatenating url string; however, to use the other methods I needed to utilize Request.Form(‘varName”). Information for this found from… http://msdn.microsoft.com/en-us/library/system.web.httprequest.aspx
In response to Devtron:
Thank you for your greeting to the forum, and I think I’ll look into your usage of the HTTPService with a CallResponder. I haven’t read through all of Adobe’s documentation “Using Flex 4” yet, so I haven’t seen the CallResponder tag used.
Thanks both of you, for your assistance.