Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Post method of a rest webservice not accepted by SAP

AntonPierhagen
Active Participant
0 Kudos

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

2 REPLIES 2

athavanraja
Active Contributor
0 Kudos

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

0 Kudos

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?