简体   繁体   English

无法通过邮递员在我的s4sdk应用程序上运行更新,创建和删除查询

[英]unable to run update, create & delete query on my s4sdk app via postman

I followed the tutorial: https://open.sap.com/courses/s4h13/items/258qEhXx5kdG8b4SXMSJYp , I made changes in accordance with my Custom Odata service, however my app works only for read operations. 我遵循了该教程: https : //open.sap.com/courses/s4h13/items/258qEhXx5kdG8b4SXMSJYp ,我根据自定义Odata服务进行了更改,但是我的应用仅适用于读取操作。 I am adding X-CSRF-token after fetching it via get request, but still I get 501 (not implemented error) even though I do have doPatch method implemented in my servlet & its respective command class. 通过get请求获取X-CSRF令牌后,我正在添加X-CSRF令牌,但是即使在servlet及其相应的命令类中实现了doPatch方法,我仍然会得到501(未实现的错误)。 any suggestion what I might be doing wrong? 有什么建议我可能做错了吗?

You correctly pointed out that the issue was with HttpServlet class, I switched to the one which was used in the example & my update operation started working. 您正确地指出问题出在HttpServlet类,我切换到示例中使用的那个,我的更新操作开始起作用。 thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM