Welcome, Guest. Please login or register.
Did you miss your activation email?
05/23/12, 12:47
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  Web Services: XML, Soap, WSDL, UDDI, and Flash Integration (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  .net DataSet and web services, .net DataSet and web services
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: .net DataSet and web services, .net DataSet and web services  (Read 4443 times)
Elango
Server what's that
*
Posts: 2



View Profile Email
« on: 09/02/04, 06:35 »

Hi,
I have written a function in my webservices to return a dataset. When i port  the returned webservices dataset to the DataGrid's dataProvider, it's not  porting to it. If I check with the for in loop i see all the datas and it's not  displaying in flash components. Please anyone help on this ASAP.

[WebMethod]
public DataSet Alerter()
{
SqlConnection myConnection;
SqlCommand myCommand;
SqlDataAdapter myDataAdapter;
DataSet myDataSet;
String sql = "SELECT ProductName,UnitPrice,QuantityPerUnit FROM Products";
String conn = "Server=localhost;uid=sa;pwd=supportmm;database=Northwind";
myConnection = new SqlConnection(conn);
myConnection.Open();
myCommand= new SqlCommand(sql, myConnection);
myDataAdapter = new SqlDataAdapter(myCommand);
myDataSet = new DataSet();
myDataAdapter.Fill(myDataSet,"Products");
return myDataSet;


Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #1 on: 09/02/04, 17:58 »

Hi Elango, welcome to the Boards!

If you're using the Webservices Connector, you should pass an xml document, not a recordset. To pass a recordset, you need to use Remoting.

Jorge
Logged

Elango
Server what's that
*
Posts: 2



View Profile Email
« Reply #2 on: 09/02/04, 22:23 »

Hi,
  I got the result in my flash app, but can't able to handle those values. I just need some help for that. How to handle the .net dataset values inside flash. If i specify the return value to a datagrid's dataProvider too it doesn't support. Is there any other way to handle. Please help on this  Smiley

Thanks

Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #3 on: 09/03/04, 01:59 »

Flash can't understand .Net recordsets (nor Java or PHP ones) All those languages should use Flash Remoting to pass directly recordsets to Flash. If you don't have Remoting support in your server, name/value pairs or XML are options. Check http://www.flash-db.com/Tutorials/loading/

Jorge
Logged

hugobossv8
Jr. Programmer
**
Posts: 63



View Profile WWW
« Reply #4 on: 09/16/04, 16:47 »

I'm trying to do the same thing now with the WebServiceConnector.  I've done it with remoting already, but I want to figure out how to do it with WebServices.  Do I need to bind the WebServiceConnector to the XMLConnector? Or do I need to set data returned from the WebServiceConnector equal to XML object and then loop through the XML object to add the .NET dataset to DataGrid?

Thanks.
« Last Edit: 09/16/04, 16:47 by hugobossv8 » Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #5 on: 09/17/04, 02:15 »

Use the Webservice Connector and bind to some data component, check the example in the data tutorials from http://www.macromedia.com/support/documentation/en/flash/index.html

Jorge
Logged

hugobossv8
Jr. Programmer
**
Posts: 63



View Profile WWW
« Reply #6 on: 09/17/04, 10:07 »

Thanks Jorge,

This is what I tried doing at first, but the .NET dataset is not natively understood by Flash when it's loaded from a Web Service (like it is with remoting).  So when I tried to bind results to the dataprovider, it doesn't work.  What I want to know is should I try to bind the results to an XML connector, or do I need to loop through the recordset some how in actionscript?

Thanks.
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #7 on: 09/17/04, 13:57 »

As exposed in the posted tutorial, you need to import the schema from your WSDL to Flash trough the Webservice Connector and then bind trough your data components. If your service outputs an XML document, then XMLConnector is a choice.

Jorge
Logged

hugobossv8
Jr. Programmer
**
Posts: 63



View Profile WWW
« Reply #8 on: 09/17/04, 14:00 »

Thanks for the quick answer Jorge (and your patience), I will go through the tutorial so I can have a better understanding of this before I open my mouth again with questions Smiley Lips Sealed
Logged
linxian
Server what's that
*
Posts: 3



View Profile Email
« Reply #9 on: 11/04/04, 06:41 »

I don't know and give a example for me. Thank you.
覧覧覧覧覧覧覧覧覧覧覧覧覧覧
linxian163@163.com
Logged
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« Reply #10 on: 11/04/04, 06:50 »

Hi Linxian, welcome to the Boards !

Read posted tutorials, as hugobossv8 did, then return with your questions.

Jorge
Logged

linxian
Server what's that
*
Posts: 3



View Profile Email
« Reply #11 on: 11/08/04, 02:36 »


Huh
XmlConnector
Webserviceconnector

Don't Work。
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!