[英]Getting error while calling a soap service in OSB via service callout
I am getting below error when calling a soap service in OSB via service callout.通过服务标注在 OSB 中调用肥皂服务时出现以下错误。
" General runtime error: no top level SOAP body element found! " “一般运行时错误:未找到顶级 SOAP 主体元素! ”
Can anyone please tell me the root cause of this error?谁能告诉我这个错误的根本原因?
Clearly, you're not sending an actual <soap:Body>
in the envelope.显然,您并没有在信封中发送实际的
<soap:Body>
。 This commonly happens when replacing the entire $body
by mistake (instead of the contents of $body) in a Replace action.当在替换操作中错误地替换整个
$body
(而不是 $body 的内容)时,通常会发生这种情况。
I found the problem and resolved it.我发现了问题并解决了它。
Actually, the variable name for the 'Body' in Service Callout >> Configuration >> Configure Body >> Body* was different from the name of body variable which I was using in 'replace' action.实际上,Service Callout >> Configuration >> Configure Body >> Body* 中“Body”的变量名称与我在“替换”操作中使用的 body 变量名称不同。
After I changed the body variable name in service callout, and gave Body* = body and used 'body', then it is working fine.在我更改了服务标注中的 body 变量名称,并给了 Body* = body 并使用了 'body' 之后,它就可以正常工作了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.