简体   繁体   English

通过服务标注在 OSB 中调用肥皂服务时出错

[英]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.

相关问题 调用SOAP Web服务时获取URISyntaxException - Getting URISyntaxException in while calling SOAP web service 调用Web服务时出错 - Getting error while calling a web service 肥皂:使用肥皂服务时发生故障 - getting soap:Fault while consuming a soap service 通过Java调用Web服务时,获取javax.xml.soap.SOAPException:Oracle Weblogic服务器上未指定Content-Type错误 - Getting javax.xml.soap.SOAPException: Content-Type not specified error on Oracle weblogic server while calling web service through Java 在Java(RestEasy)中调用Rest Service方法时出现404错误 - Getting 404 error while calling rest service methods in java(RestEasy) 将附件发送到Soap Web服务时出错 - Error while sending attachment to Soap web service 通过SOAP从Java Swing应用程序调用.NET Web服务 - Calling .NET Web Service from Java Swing application via SOAP 从在Weblogic 11g中部署为war的代码调用soap服务时发生握手错误 - Handshake error while calling soap service from code deployed as war in weblogic 11g 如何在从 spring 集成调用 SOAP 服务时添加超时 - How to add timeout while calling SOAP Service from spring integration 尝试将SOAP请求发送到Web服务时收到WS-security错误 - getting an WS-security error while trying to send SOAP request toweb service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM