Flex WSDL for ActionScript as an ant task?

Flex Builder 3 provides support for generating WSDL actions through a GUI (Data-> Import Web Service (WSDL)), but this method requires you to validate the generated source. This is undesirable for us (we understand that both sides "must be generated by the source code" and we decided that it is not), so we would like the method to generate actionscript classes from the ant task. In this case, the WSDL will live on the filesystem.

Any ideas?

+2


source to share


2 answers


You could spend some time transcoding through Flex Builder JARs to find the libraries they use to do this, and then call them from a very fine custom Ant task that you write yourself. The likelihood of this success is small, but it might be worth investigating to save a ton of work just in case.

In short, I would start with WSDL2Java to create Java classes that represent your WSDL objects. The results won't necessarily be pretty, but you should end up with classes that conform to the JavaBean specification. Then you can use one of the open source Java-to-ActionScript generators, which include:



I'm pretty sure Gas3 has an Ant task that you can use; not sure about Pimento.

0


source


From the comments in the generated code Flex Builder uses Apache Axis2

/ ** * BaseBlaBlahService.as * This file was automatically generated from the WSDL by the Apache Axis2 generator modified by Adobe * Any changes made to this file will be overwritten when the code is re-generated. * /



I also found this on the Adobe forum http://forums.adobe.com/thread/96006 .

I am also trying to solve this problem. We probably need to create a feature request on the adobe flex site. Let me see if I can find the adobe.com user id ....

0


source







All Articles