11-29-2011 8:42 AM
hi all
I have a FLEX application which communicate to SAP via rest webservices.
The type of the rest webservices are GET and POST.
When i try to get a connection to the webservice with the type POST from my FLEX application it always fails.
But when i try the POST webservice from an application like SOAPUI, which can be used to test your webservices, it works. So the webservice in SAP is correct.
From my FLEX application i can connect to a rest webservice of the type GET in SAP. No problems there. So no connection
error to the SAP system.
With this knowledge, I have created a workaround for my POST webservices. I changed it into a GET webservice who containing a PARAMETER what kind of webservice it is. Via this parameter i let the SAP system know it is a POST webservice.
And via this PARAMETER the system can run the logic of the POST webservice.
But it is not a proper solution. So does anybody know a better solution for this problem?
Kind regards,
Anton Pierhagen
12-04-2011 5:09 AM
Are you using HTTPService tag from flex side, then read this blog
http://marxsoftware.blogspot.com/2009/01/flex-httpservice-when-post-is-get.html
12-09-2011 8:19 AM
hi
I don't use this tag. In my actionscript code the webservice is called.
The weblog is not what i am looking for. I haven't got a POST method which is regonized by SAP as GET. But my POST method won't work if it is called from FLEX and the GET will work. Do you know a solution for it?