Flex and ASP.NET WS

First of all,
Create an ASP.NET Web Service. As i mentioned in the ASP.NET Web Service tab of my blog.

Working with Adobe Flex and  ASP.Net Web Service:

File--->>> New--->>> Flex Project--->>>
Step1:
Project Name(eg:- sampleWS)
Step2:
Application Type:(choose Web)
Step3:
Flex SDK Version
Use specific SDK:(choose flex 3.5)
Step4:
Server technology
Application server type(choose ASP.NET)
--->>>next--->>>finish
Step5:
Open sampleWS.mxml-->>>
then select Data-->>>Connect to Web Service--->>>
In the WSDL URI give the Webservice URI
(eg:-http://localhost:12315/sampleWS/Service.asmx?WSDL)

Note:-[Dont Forget To Add "?WSDL" to the URI]
--->>>>Finish

Step6:

Now drag and drop a datagrid control inside the sampleWS.mxml file.

select the datagrid and go to its property window---->>
data provider--->>bind to data

In the New Service Call select the web operation you want to work out
(eg:- here we will choose getDoctorDetails():Doctor[])

--->>> ok

thats it now just run the sampleWS.mxml file and you can able to see the doctormaster table details.

2 comments:

  1. nice sharing .

    please tell me , how we can use paypal api in flex without using asp .net or php .


    thanks.

    ReplyDelete
  2. what is the use of above example....if u dont..and can u give exact example for how to data exchange using httpservice

    ReplyDelete