TechHui

Hawaiʻi's Technology Community

I've been working on some examples for my Flex and Silverlight presentation next week. Its amazing how simple it is to prototype RIA apps with Flex 3 and Java 6.

The first example I am using is a simple addition server and GUI client. This used to take hundreds of lines. Now it only takes a few:

Java:


Flex (MXML):


Thats it! I didn't have to create any config files, setup any servers, or futz with a mishmash of tools.

Cool stuff!

Views: 167

Replies to This Discussion

I was curious to see if it would be as simple from .NET web services and it is:

c#
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
public class Service1 : System.Web.Services.WebService {

[WebMethod]
public int Add(int first, int second) {
return first + second;
}

[WebMethod]
public int Multiply(int first, int second){
return first * second;
}
}

flex
Sorry, you'll have to check the download--my code is getting garbled :(

I've uploaded the full projects for the .NET web service and the flex mxml application. Of course you'll need to update the WebService tag with the correct location of the web service. Other than that, you should be able to easily consume web services from the .NET platform.
Attachments:

RSS

Sponsors

web design, web development, localization

© 2024   Created by Daniel Leuck.   Powered by

Badges  |  Report an Issue  |  Terms of Service