使用,尝试执行下面的POST请求(正文中包含xml内容)。由于客户端的机密性,我没有在下面的代码中提到确切的URL。
POST请求
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这在邮递员身上运行很好。但不适用于定量。
上述post方法是否需要在量规中运行?请让我知道。
发布于 2020-12-30 15:09:20
错误信息本身提供了原因!
传入密钥的
必须准确地选择一个node:post.sample.call
指示您可能有多个post.sample.call属性值或条目。最有可能的问题是;的价值。;用作列表分隔符,因此如果属性值需要,请在其前面添加转义字符\。例如
text/xml\;charset=UTF-8https://stackoverflow.com/questions/65506862
复制相似问题