更新时间:2022-01-31 07:26:36
在发布到WCF RESTful Web服务时,HTTP 400错误请求的解决方案 [ ^ ]
编辑
-------------------
您没有共享其他错误消息(400 Bad Request不是绝对错误消息) 。确保您使用的是正确的内容类型&数据类型。并使用适当的异常处理来获取与错误相关的更多详细信息。检查这些。
使用JQuery进行基于WCF REST的服务调用 [ ^ ]
使用WCF和& ;;进行有效的错误处理REST [ ^ ]
WCF和JSON服务 [ ^ ]
将文件作为Base64字符串发送到WCF RESTful服务 [ ^ ]
WCF POST测试工具 [ ^ ]
WCF REST异常处理 [ ^ ]
Solution to HTTP 400 Bad Request when POSTing to WCF RESTful web service[^]
EDIT
-------------------
You didn't share the additional error message(400 Bad Request is not an absolute error message). Make sure you're using right content-type & datatype. And use proper exception handling to get more details related to errors. Check these.
WCF REST Based Service Call using JQuery[^]
Effective Error Handling with WCF & REST[^]
WCF and JSON Services[^]
Sending files as a Base64 String to a WCF RESTful Service[^]
WCF POST test harness[^]
WCF REST Exception handling [^]