wsdl



In the current application I am working on, we are using a Flex client that communicates with a Web service on the server side. The client's VOs are automatically generated.

One of the things that bothered me in that model is – how can I implement polymorphysm in this model?

 

Let's assume that in the wsdl there is a complex type A.

Two types extend it (using xsd:extension) – B1 and B2.

yoav.moran 24/06/2010 - 08:49

Currently I use Eclipse to generate VO classes from the WSDL.

The problem with that is that I can't override the classes and add more properties and functions as I need.

A possible solution is to use a custom code generator that will generate the classes on my conditions. Then I can define a class to extend my classes and not the model's classes, or set all base classes to extend EventDispatcher, etc.

Moreover - then I won't be influenced by the changes done in Flex builder during the versions (the Flex builder generates completely different code than the Flash builder 4).

1. Is there any other way to add my own functions and properties to the VOs?

2. What code generation software do you recommend?

yoav.moran 15/06/2010 - 14:22
Syndicate content