Skip to Content

Post method of a rest webservice not accepted by SAP

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 04, 2011 at 05: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

    Add a comment
    10|10000 characters needed characters exceeded

    • 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?

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.