I am trying to integrate adobe Flex with SAP Webservices .
Process is going fine from SAP END .
Even flash builder also asked for SAP USER ID AND PASSWORD which means connection is there .
BUT When its come to code in MXML component, I am having struggle there, I am getting errors .
I am trying to do this by following below given tutorials :
But in both tutorials, FLEX 3 has been used , And I am working on FLASH BUILDER 4.6 which is using SPARK Components where as in FLEX 3 mx components were used .
If I use Code of FLEX 3 I got nelow error :
var zservice:Service = new Service();
|1046: Type was not found or was not a compile-time constant: Service.||Flex Problem|
And If I find in SPARK Components, I got "SERVERCONFIG" and if i use that :
var zservice:ServerConfig = new ServerConfig();
|1061: Call to a possibly undefined method zxyzservice through a reference with static type mx.messaging.config:ServerConfig.|
|1119: Access of possibly undefined property zxyzservice through a reference with static type mx.messaging.config:ServerConfig.|
So, I am not able to get what exactly code I should write in order to correctly consume WEBSERVICE from SAP .
I am really in need to resolve this problem. Please help me out .