jsp - 如何对 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 目的,而不是进行任何编码
解决方案
推荐阅读
- java - Dependent dynamic dropdown using JSP, Servlet, JQuery and denormalized Mysql table
- java - 单击时尝试获取 JButton 的坐标
- java - Draw jpanel at double position
- batch-file - 当字符串与定界符具有相同字符时如何仅处理特定定界符
- java - How can I display a Youtube video in Android app from desired video ID such that the ID is set from a server so that I can change the ID later?
- swift - 当依赖项名称等于项目名称时,运行“swift build”会因分段错误而崩溃
- c - C Two-Way Pipe Not Working
- javascript - Accessing CefSharp JS Object from remote URL
- javascript - Angular 仅显示一次表头,如果没有数据则隐藏表头
- maven - How can I setup multiple repositories for mvn builds?