将请求头字段添加到 JMeter WebService(SOAP) 请求
似乎JMeter的WebService(SOAP)请求不包含HTTP标头管理器中定义的请求中的标头。
我想在 JMeter 测试的每个 SOAP 请求中发送 Accept-Encoding: gzip, deflate - 有没有办法实现这一点?
It seems like the WebService(SOAP) Request of JMeter does not include headers in the request defined in a HTTP Header Manager.
I want to send Accept-Encoding: gzip, deflate with every SOAP request of my JMeter test - is there a way to achieve that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的解决方法是使用 SOAP/XML-RPC 请求 采样器而不是 WebService(SOAP) 请求。这会将配置的请求标头发送到服务器。
之后,我发现传入的压缩响应未解压缩,因此我在 https://issues.apache.org/bugzilla/show_bug.cgi?id=48542 并创建了一个补丁。该错误已在主干中修复,应包含在当前的夜间构建中。
The workaround for me was to use the SOAP/XML-RPC Request Sampler instead of the the WebService(SOAP) Request. This one sends the configured request headers to the server.
After that I found out that the incoming compressed response was not decompressed so I filed a bug at https://issues.apache.org/bugzilla/show_bug.cgi?id=48542 and created a patch. The bug is fixed in the trunk and should be included in the current nightly build.