Professional Documents
Culture Documents
Applies to:
SAP Web Application Server (WAS) 6.40, 7.0 and CE (7.1). For more information, visit the Web Services homepage.
Summary
The main objective of this tutorial is to create a Web Service whose end point is a Remote Function Module and consuming that web service in Adobe Flex 3 Application using Web Service Introspection Method. You can now easily develop your favorite Flex based client application that consumes SAP RFCs as Web Services. Web Service Introspection Method will generate client proxy classes from WSDL signatures. Author: Vivek Khedekar
Company: Larsen & Toubro Infotech Ltd. Created on: 5 August 2009
Author Bio
Vivek Khedekar works at Larsen & Toubro Infotech Ltd., as a SAP Technical Consultant. He has primarily worked on SAP technologies like ABAP, ALE-IDoc, WebDynpro Java, Adobe Interactive Forms and also tried hands on integrating Adobe Flex, AIR with SAP via RFCs and Web Services.
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Table of Contents
Creating Simple RFC..........................................................................................................................................3 Generating Web Service Using WS Wizard .......................................................................................................5 Create a Flex Project ..........................................................................................................................................9 Web Service Introspection................................................................................................................................11 Script to Call the Web Service Proxy................................................................................................................14 Running the Application....................................................................................................................................15 Related Content................................................................................................................................................16 Disclaimer and Liability Notice..........................................................................................................................17
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Press continue.
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Provide the name and description of the FM. This may not be same as FM name
Press continue.
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Select Basic Authorization and must check the Release for Runtime.
Click Complete
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Now you can access the wsdl as: http://<host>:<port>/sap/bc/srt/rfc/sap/<RFC Name>?sap-client=<client>&wsdl=1.1 For our example it is: http://<host>:<port>/sap/bc/srt/rfc/sap/ZTEST_INTRO?sap-client=800&wsdl=1.1
Note: You can skip the generation of web service using wizard and use wsdl as:
http:// <host>:<port>/sap/bc/soap/wsdl11?services=ZTEST_INTRO
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Confirm with Finish. The Flex project is created. In ZTEST_FLEX.mxml add design as below:
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Press Finish
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
After entering valid Login credentials application will gives the output.
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method
Related Content
Welcome to the Flex and SAP Web Services Quickstart Consuming ABAP Web Services using Flex Adobe Flex For more information, visit the Web Services homepage.
Consumption of SAP RFC in Adobe Flex 3 Application Using Web Service Introspection Method