Go Back   CodingForums.com > :: Client side development > Flash & ActionScript > Adobe Flex

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-24-2008, 12:31 AM   PM User | #1
gwfran
New Coder

 
Join Date: Nov 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
gwfran is an unknown quantity at this point
Question HTTPService and .NET web service

I have a .NET web service which allows me to do either SOAP or an HTTP POST. I can't use the SOAP service (don't ask, it's an order from on high) so I need to get my Flex project set up to connect properly.

.NET Service:
Quote:
POST /UserService.asmx/getUserByName HTTP/1.1
Host: localhost
Content-Type: application/x-www-form-urlencoded
Content-Length: length

username=string
I can't find a way to specify the "/getUserByName" in the POST of the HTTPService:

Code:
			dataService = new HTTPService();
			dataService.url = dataServer + "UserService.asmx";
			dataService.method = "GET";
			dataService.addEventListener("result", userLoginResult);
			dataService.addEventListener("fault", fault_listener);
			dataService.contentType = "application/x-www-form-urlencoded|application/xml"
			dataService.resultFormat = "xml"
			
			var parameters:Object = new Object();
			parameters.username= username;
            dataService.send(parameters);
I've tried forcing it into the URL, but that fails.
I've also attempted to enter it as an Operation parameter, but that didn't work either.
Please HELP!!!

Last edited by gwfran; 06-24-2008 at 01:20 AM..
gwfran is offline   Reply With Quote
Old 06-24-2008, 08:02 PM   PM User | #2
gwfran
New Coder

 
Join Date: Nov 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
gwfran is an unknown quantity at this point
oh... my... GOD!!!!!!!!!!!!!!!!!!!!

Using this: dataService.contentType is what was killing my service call. Just removing it made everything work. That is pathetic considering that I basically regurgitated examples from Adobe. Flex/ActionScript is sucking more and more all the time...
gwfran is offline   Reply With Quote
Old 04-07-2009, 10:37 AM   PM User | #3
valentinoromeli
New to the CF scene

 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
valentinoromeli is an unknown quantity at this point
So how did you solved this one?

"I can't find a way to specify the "/getUserByName" in the POST of the HTTPService:"

Same problem!

Regards,
Valentino Rijhen
valentinoromeli is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:55 AM.


Advertisement
Log in to turn off these ads.