问题描述
使用 Qmetry 框架,尝试执行以下 POST 请求(正文中包含 xml 内容)。由于客户保密,我没有在下面的代码中提到确切的 URL。
发布请求:
post.sample.call={'headers':{'SoapAction':'<url here>','Content-Type':'text/xml;charset=UTF-8','Accept':'*/*','Authorization':'<authorization key here>'},'endPoint':'<endpoint here>','baseUrl':'<url here>','method':'POST','query-parameters':{},'form-parameters':{},'body':'<sending xml content here>'}
它抛出错误:
Caused by: java.lang.IllegalArgumentException: Passed in key must select exactly one node: post.sample.call
这在通过邮递员运行时工作正常。但是 Qmetry 失败了。
要在 qmetry 中运行,需要对上述 post 方法进行任何更改吗?请告诉我。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)