【问题标题】:Karate returns HTTP 415 for soap request空手道为肥皂请求返回 HTTP 415
【发布时间】:2020-07-09 18:43:53
【问题描述】:

我正在尝试使用 karate 访问 SOAP 服务,它总是返回 415,而在 SOAP UI 中相同的服务是成功的。 空手道回应:

20:05:37 20:05:37.236 [ForkJoinPool-1-worker-1] DEBUG com.intuit.karate - response time in milliseconds: 37.15
20:05:37 1 < 415
20:05:37 1 < Content-Length: 0
 Given url soapServiceURL
   And header Content-Type = 'application/xml'
    And request requestPayLoad
    When method post
    Then status 200

如果我在这里遗漏了什么,请告知

【问题讨论】:

    标签: testing karate


    【解决方案1】:

    如果需要,请阅读文档并使用soap actionhttps://github.com/intuit/karate#soap-action

    Karate 可以发出任何 HTTP 请求,但您需要找出正确的标头等。一个提示是导出到 cURL,然后您就可以轻松完成。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-10
      • 1970-01-01
      • 1970-01-01
      • 2020-07-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多