2010 Feb 10 7:49 PM
Dear Friends
I have developed one application that takes the input from user and give it back to SAP system. If I need to receive the data from the SAP system it is fine I am able to read it from BSP XML URL.
I dont know how to send data from Adobe flex to SAP system... please tell me how can i utilize xml to do that. I have one constraint that i cant use webservices for it and Flash Islands as well ... i am supposed to use only xml.
Please advice me. if you can provide me any code will be more beninificial. yes I know in the book developing reach internet application by Adobe Flex from SAP Press has this thing in example. in last chapters.. under send method. but i dont have access to that book as well if any body has that book... the example what is mention there could be most suitable to my problem.
please reply me. your any help will be appreciated.
Thanking you
Regards
Naeem
2010 Feb 24 2:52 PM
Hi Naim,
The following information will help you
If the following is your bsp url
http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp
In the Flex application add the following code
<mx:HTTPService
id="mySrv"
url="http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp";>
<mx:request>
<employeid>007<employeid>
<deptId>7</deptId>
<empname>James<empname>
</mx:request>
</mx:HTTPService>
and in the BSP application use the following method in the controller class to receive the data (if you are using MVC for the BSP)
CALL METHOD REQUEST->GET_FORM_FIELD
EXPORTING
NAME = 'employeid' "<employeid> passed in the flex http request
RECEIVING
VALUE = l_employeid. " value 007 will be received to this variable
this is similar to directly passing url parameters as below
http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp?employeid=007;deptId=7&empname=James
Thank & regards
Anand.C
Hi Naim,
The following information will help you
If the following is your bsp url
http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp
In the Flex application add the following code
<mx:HTTPService
id="mySrv"
url="http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp";>
<mx:request>
<employeid>007<employeid>
<deptId>7</deptId>
<empname>James<empname>
</mx:request>
</mx:HTTPService>
and in the BSP application use the following method in the controller class to receive the data (if you are using MVC for the BSP)
CALL METHOD REQUEST->GET_FORM_FIELD
EXPORTING
NAME = 'employeid' "<employeid> passed in the flex http request
RECEIVING
VALUE = l_employeid. " value 007 will be received to this variable
this is similar to directly passing url parameters as below
http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp?employeid=007;deptId=7&empname=James
Thank & regards
Anand.C
2010 Feb 24 2:52 PM
Hi Naim,
The following information will help you
If the following is your bsp url
http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp
In the Flex application add the following code
<mx:HTTPService
id="mySrv"
url="http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp";>
<mx:request>
<employeid>007<employeid>
<deptId>7</deptId>
<empname>James<empname>
</mx:request>
</mx:HTTPService>
and in the BSP application use the following method in the controller class to receive the data (if you are using MVC for the BSP)
CALL METHOD REQUEST->GET_FORM_FIELD
EXPORTING
NAME = 'employeid' "<employeid> passed in the flex http request
RECEIVING
VALUE = l_employeid. " value 007 will be received to this variable
this is similar to directly passing url parameters as below
http://<myserver>:<port>/sap/bc/bsp/sap/zsample/service.bsp?employeid=007;deptId=7&empname=James
Thank & regards
Anand.C
2010 May 21 7:08 PM
Hi,
i have a question.
if i try to put any character as ü,ß,ä, etc.... with the httpService in the request, it give me in the SAP XML Flow logic file another character.
If i try to put direct in the url this value with the same parameter, than no problem.
I try to define the XML file with encoding=utf-8 or encoding=ISO-...
no result.
Can i specify the encoing of the request ?
Do you have an idee, why ?
Thank for your help.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |