I've noticed that the default when serializing an ActionScript object
for a web service call is to look for properties in the ActionScript
object that match the element names in the WSDL.

This works fine most of the time, but what if you have an element name
in the WSDL that is an ActionScript keyword?  For example, I have a
java object that has a "function" property.  It results in a
"function" element in the WSDL, but my ActionScript counterpart has a
property called "myFunction" so that it compiles.

Is there any way to tell Flex that it should use my "myFunction"
property when it needs a value for the "function" element during
serialization?

As a workaround, I know I could change the WSDL and the Java so they
all use "myFunction", but I'm curious to know if I can use custom
mappings. In theory, it shouldn't matter who is consuming the service,
and I should be able to use any legal element name on both the client
and the server.

Thanks,

Steve

Reply via email to