BLOG-N-PLAY.COM
Ann and Nancy Wilson of Heart Are No fans of Sarah Palin! Heart Wants to Be Ripped Out of Republicans’ Campaign The duo requested that their song would no longer be used to promote Sarah Palin’s i
TODAY'S TOP SOA & WEBSERVICES LINKS



Data Services Made Easy for Adobe Flex Applications
Flex has gotten popular lately because of its rich GUI capabilities. It also comes in handy with HTTPService and Web Service components connecting to back-end servers to fetch and update data. But using this mechanism to talk to the back-end server requires formulating a unique service object from the Flex side, making a request, and getting back data from the back-end either in XML or plain text format. The response data then has to be parsed and fed to the Flex objects to update the UI. For small to medium-size Flex projects it's a viable solution, but for enterprise projects with thousands of external service calls it will get quite repetitive and could result in a lot of unmanageable, buggy code.
Reader Feedback: Page 1 of 1

Are you having any success either releasing the reference implementation or starting an open source project around this?

The wsdl2as framework mentioned here is not the wsdl2as open source one. It's a fresh implementation!

Your framework is exactly what I'm looking for. I thought similar functionality was already embedded into Flex but to my great disappointment, it's not. So I'd really love to see what you've come up with. And if I can help, it's with pleasure.
Is open source flash's wsdl2as the framework you're talking about?

This paper or the sample implementation (not currently available for public use) do not use wsdl2as tool(found in http://osflash.org/wsdl2as) to generate as3 code.
So, why wsdl2as tool fails is not pertinent to this paper as such. Please, visit any discussion forum provided by the project to discuss about specific issues in the wsdl2as tool.

The sample implementation in this paper do generate as3 code, but is implemented fresh from scratch. This paper is trying to just explain the architectural details of the approach ...

wsdl2as simply does not work. Worse, it doesn't tell you what the problem is:

Exception in thread "main" java.lang.IllegalArgumentException: local part cannot be "null" when creating a QName
at javax.xml.namespace.QName.(Unknown Source)
at javax.xml.namespace.QName.(Unknown Source)
at uk.co.badgersinfoil.asxsd.TypeNameGenerator.typeName(TypeNameGenerator.java:29)
at uk.co.badgersinfoil.asxsd.TypeBuilder.representationClassForComplexType(TypeBuilder.java:81)
at uk.co.badgersinfoil.asxsd.TypeBuilder.typeNameFor(TypeBuilder.java:46)
at uk.co.badgersinfoil.asxsd.MarshalingCodeGenStrategy.addConversionFromParameter(MarshalingCodeGenStrategy.java:78)
at uk.co.badgersinfoil.asxsd.MarshalUnmarshalBuilder.buildMethodBody(MarshalUnmarshalBuilder.java:89)
at uk.co.badgersinfoil.asxsd.MarshalUnmarshalBuilder.buildMethodBody(MarshalUnmarshalBuilder.java:111)
at uk.co.badgersinfoil.asxsd.MarshalUnmarshalBuilder.createMethodForElement(MarshalUnmarshalBuilder.java:81)
at uk.co.badgersinfoil.asxsd.MarshalUnmarshalBuilder.conversionMethodFor(MarshalUnmarshalBuilder.java:335)
at uk.co.badgersinfoil.wsdl2as.ASXSDTypeMappingStrategy.convertExprToXML(ASXSDTypeMappingStrategy.java:44)
at uk.co.badgersinfoil.wsdl2as.ActionScript3Builder.buildOperationParameterList(ActionScript3Builder.java:371)
at uk.co.badgersinfoil.wsdl2as.ActionScript3Builder.buildBindingOperationMethod(ActionScript3Builder.java:280)
at uk.co.badgersinfoil.wsdl2as.ActionScript3Builder.buildBinding(ActionScript3Builder.java:267)
at uk.co.badgersinfoil.wsdl2as.ActionScript3Builder.buildAllBindings(ActionScript3Builder.java:243)
at uk.co.badgersinfoil.wsdl2as.ActionScript3Builder.build(ActionScript3Builder.java:78)
at uk.co.badgersinfoil.wsdl2as.Main.process(Main.java:88)
at uk.co.badgersinfoil.wsdl2as.Main.main(Main.java:59)

The generated code might need to change if there are major changes in the action script language or some API change in flex web-services support. In Moxie(flex 3) release there is no major change in the AS language and flex Web Service API, so the generated code should just work fine.

If I'm correct there will be similar support for this in Flex 3. If so: can the generated code easily be replaced by what is available through Flex 3 later on?

This is indeed a nice article on overall architecture of flex based applications based on complex server side data requirements. It will definitely serve as an alternative to FDS for programming flex ui for public web services.

This is one of those ideas that entice us designer crossovers with visions of easily discoverable, accessable, post-processable server-side stuff. And if we know enough T-SQL we can really take better at an architectural level.

Can't help but wonder at the lack of followup/comments by the community.

On the subject of compression; what's it take to bring XML into line AMF much less AMF3 (& setting aside scalability issues) for a 'text-heavy' object.

What would the reverse look like? if one were defining the server-side objects from the native Flex? Couldn't we literally feed mxml components in a digestible way?

Could you provide a link to a much larger version of your 1st diagram?
http://res.sys-con.com/story/aug07/418939/fig1.jpg

Flex has gotten popular lately because of its rich GUI capabilities. It also comes in handy with HTTPService and Web Service components connecting to back-end servers to fetch and update data. But using this mechanism to talk to the back-end server requires formulating a unique service object from the Flex side, making a request, and getting back data from the back-end either in XML or plain text format. The response data then has to be parsed and fed to the Flex objects to update the UI. For small to medium-size Flex projects it's a viable solution, but for enterprise projects with thousands of external service calls it will get quite repetitive and could result in a lot of unmanageable, buggy code.


FEATURED WHITE PAPERS
YOUR FEEDBACK
Java Consultant wrote: Good Post... Java Software Programmer..
Java Consultant wrote: Nice Article.... Java Programmer...
Java Consultant wrote: Good Post.... Java Consultant...
Java Consultant wrote: Great Post...... Java Consultant.....
Offshore Java Development wrote: Web Development........
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS


SYS-CON FEATURED WHITEPAPERS


BREAKING XML NEWS

Security Challenges for the Information Society

To be able to do anything useful, an ESB must be configured with all sorts of parameters, from endpo...
Representatives of the state IT organizations of Brazil, South Africa and Venezuela, three of the fo...
Two of the biggest launches in Rich Internet Application history took place in 2007/2008 when Adobe ...
Red Hat CTO Brian Stevens, Citrix CTO Simon Crosby, Egenera CTO Pete Manca, Allen Stewart, Group Man...
This article is aimed at beginner and intermediate Web developers looking to make the leap into data...
ISO said Friday that the appeals made by Brazil, India, South Africa and Venezuela protesting the st...
Since its inception, XML has been criticized for the overhead it introduces into the enterprise infr...
Vordel unveiled version 5.1 of its XML network infrastructure products, to accelerate, manage and pr...
As the number of XML files in enterprise organizations significantly increases, architects, applicat...
DataDirect and an operating company of Progress Software Corporation announced the availability of t...
Today's applications rely on data feeds from many sources, using technologies that are based on the ...
TX Text Control has been setting the standard in the software component industry for more than seven...
SYS-CON's upcoming '3rd International Virtualization Conference & Expo' faculty includes such distin...
XML is increasingly being used as the language of data exchange. An XML document based on a DTD or a...
From Application Virtualization to Xen, a round-up of the virtualization themes & topics being discu...
At the eleventh hour Brazil, India and Venezuela joined South Africa in appealing ISO's highly polit...
South Africa has formally objected to the fast track used to get OOXML to the brink of ISO standardi...
Red Hat is a trusted open source provider. Red Hat offers enterprise customers a long-term plan fo...
Office will support the Microsoft-hostile OpenDocument Format (ODF) 1.1 when Office 2007 Service Pac...
XBRL can help to transform business, dramatically simplifying filing and reporting and improving tra...
ADS BY GOOGLE