如何执行对JSP页面和wsdl的Rest调用

时间:2018-08-28 03:12:00

标签: jsp wsdl options

我正在尝试进行一个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

请告知我该如何实现。这是出于质量检查的目的,而不是进行任何编码

0 个答案:

没有答案