Skip to Content
Author's profile photo Former Member

Consuming SAP web services with complex input structure in Action Script 2

*Consuming SAP web services with complex input structure in Action Script 2*  If you want to create flash user interface and use SAP backend systems then consuming web services is the best way for communication between these two layers. Flash user interface advantages are pretty and dynamic view, usage of animation, development of user interface for mobile devices. Prerequisites: ** Link to WSDL file of the consumed web service. A web service operation could be called with or without parameters. If the web service has several parameters of simple types then they can be passed in the operation call as arguments. If the input structure model is more complex you will need to create the same structure in action script using inner arrays. Every array should have an index which is exactly the same as the name of the attribute in the web service input structure. Creation of this complex array structure is shown at the example below. This is an example of building flash application calling a web service. In your case you have to set your web service address and change the parameters according to it. A web service for insurance company has an operation ‘addVehicle’. This input structure is complex and parameter values should be passed with inner arrays.   Implementation: Design a form with input fields and a Save button in flash studio. This can be done with drag and drop of elements from COMPONENTS view. The form should look like this on the screenshot:  Now you have to set instance names to all input fields. This is done in the PROPERTIES view. For example you can name the first field with “regNum”:  

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.