首页 > 解决方案 > 如何对 jsp 页面和 wsdl 进行 OPTIONS Rest 调用

问题描述

我正在尝试进行 OPTIONS 休息调用,以了解在 jsp 页面和 wsdl 中使用 curl 和 SOAP UI 的可用 HTTP 方法。它返回我下面的错误

要求 :

curl -i -X OPTIONS https://<host>:<port>/abc/def/ghi/jkl?wsdl

回复 :

HTTP/1.1 405 Method Not Allowed
Content-Type: text/xml; charset=UTF-8
Content-Length: 224

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>HTTP verb was not GET or POST</faultstring></soap:Fault></soap:Body></soap:Envelope>

对于 jsp 页面:

要求 :

curl -i -X OPTIONS https://<host>:<port>/webpage/login.jsp

回复 :

HTTP/1.1 405 JSPs only permit GET POST or HEAD
Date: Tue, 28 Aug 2018 01:27:52 GMT
X-Frame-Options: DENY
Content-Length: 0

请建议我怎样才能做到这一点。这是出于 QA 目的,而不是进行任何编码

标签: jspwsdloptions

解决方案


推荐阅读