# Sending data to web service in Action Script 3.0

**URL:** https://forum.kirupa.com/t/sending-data-to-web-service-in-action-script-3-0/285845
**Category:** flash
**Created:** [April 7, 2009, 8:57am UTC](https://forum.kirupa.com/t/sending-data-to-web-service-in-action-script-3-0/285845 "2009-04-07T08:57:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ahmy](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@ahmy](https://forum.kirupa.com/u/ahmy)
#### Post date: [April 7, 2009, 8:57am UTC](https://forum.kirupa.com/t/sending-data-to-web-service-in-action-script-3-0/285845/1 "2009-04-07T08:57:33Z")

</div>

I need to access the database using web service through CS3 i have tried accessing the database using [Asp.Net](http://Asp.Net) page and it successed when i change just the URL of the Asp page and replace it with the web service URL it reports to me the follwoing error:  
Error opening URL '[[COLOR=#810081]http://localhost/Trial/DAService.asmx[/COLOR]’ Load failed: HTTP Status = 500 Load failed: IO error: Error #2032: Stream Error. URL: [URL=“http://localhost/Trial/DAService.asmx”][COLOR=#810081]http://localhost/Trial/DAService.asmx[/COLOR]](http://localhost/Trial/DAService.asmx)  
and this error elimnates when i request the web service and not sending data in the URL as i send SQL query through URLVariable as follows:  
var variables:URLVariables = new URLVariables();  
variables.SQLQuery = “select \* from Employee”;  
this code working with the .aspx page but when i use the web service it reports the previous error inspite the code written in web service is the same in the .aspx page.where in the web service i call a function in the constructor of the web service and this function gets the data from URL and then execute it as follows :  
if (HttpContext.Current.Request.Form[“SQLQuery”] != null)  
//Execute the SQL ::  
so can any one help me? i hope that my question is obivious to everyone!!
