Expand my Community achievements bar.

Web Services - compilation errors in generated code

Avatar

Level 1
I am new to Flex Builder. I have built web services clients
and services using a handful of languages. Certainly the generation
of clients with FB3 is straightforward and about as intuitive as it
gets (unless, of course, I've missed something obvious and am
causing these issues). Unfortunately it's generating code that
contains errors for the web services we have written in Java and
implemented using Axis 1.4. One of the issues is related to the
existence of reserved words (such as "new") in the complex data
types that are passed/returned by these web services. These same
structures (classes) are not causing problems in the Java client or
server implementations. (I don't recall but I am guessing they are
prefixed with "_" characters.)



Secondly I am seeing this error (and others like it):



Severity and Description Path Resource Location Creation Time
Id

1119: Access of possibly undefined property
GetCCTransactions_RESULT through a reference with static type
Class. FBTest/src/dcn/circ4 CMECF_WS_CommonReportsServiceService.as
line 135 1206241030191 121622



The particular line of code referenced above looks like this:




addEventListener(GetCCTransactionsResultEvent.GetCCTransactions_RESULT,listener);



These errors are in the generated code therefore I am
wondering what, if any, known limitations there are in FB3's
support of web services.




1 Reply

Avatar

Former Community Member
I had some issues with generated code too, especially when
data types in request or response are quite complex. I saw a few
open bugs related to code generation from WSDL, including this one
-
http://bugs.adobe.com/jira/browse/FB-12297
:) There are other ways to call a web service in Flex. I am calling
the web services directly. Here is a great doc on who to do that
http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_6.html.



- Mykola