Skip to Content

SAP B1If - HTTP call - how use method PATCH?

Hi guys!

We are using SAP B1If (Version 1.22.27) to send a HTTP request to an API using the PATCH HTTP method. In payload for HTTP call we are using <method>patch</method> in <call><connect> section.

But always we receive error in HTTP call: HTTPcode="405", HTTPmsg="Method Not Allowed". In returnData we get "Message":"The requested resource does not support http method 'POST'."

We conclude that B1If is not accepting PATCH HTTP method and is always sending the request as POST. We found In B1If online documentation, in topic 5.1 Configuring HTTP Outbound (HTTA), that "The integration framework supports POST, GET, PUT, DELETE, and TRACE."

We try to add the X-HTTP-Method-Override header = PATCH in the request, but we still get the same response (HTTPcode="405", HTTPmsg="Method Not Allowed")... We believe that the API hasn't built-in support for X-HTTP-Method-Override header.

Anybody knows some strategy to make a HTTP call using PATCH in SAP B1If?

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

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.