gpt4 book ai didi

salesforce - Force.com 标注 : Is there a way to get the full response from the target server

转载 作者:行者123 更新时间:2023-12-04 05:39:29 25 4
gpt4 key购买 nike

从 Force.com 调用 Web 服务时,我得到:

System.CalloutException: Web service callout failed: Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Envelope' but found ':HTML'



另一端的网络人员要求查看 Salesforce 从他们的服务器获得的完整响应。

有没有办法实现这一目标?我曾尝试使用匿名执行的调试级别“最佳”运行,但这会产生相同的小消息,没有进一步的细节。

最佳答案

您收到的消息是因为在 Saleforce 尝试解析响应时生成了错误,但不幸的是它没有被记录。

发生解析错误是因为您得到的是 HTML 页面,而不是 SOAP 消息响应。这通常发生在您访问受防火墙保护的服务时。这意味着您可以在计算机上浏览时看到该服务,但请记住 Salesforce 位于您的防火墙之外,因此 Salesforce 与您的服务的任何通信都将被阻止。

有几种方法可以解决这个问题,但 Salesforce 的这个 wiki 主题最好地涵盖了以下选项:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_om_outboundmessaging_security.htm

以上是特定于出站消息传递的,但本质上技术问题是相同的。

关于salesforce - Force.com 标注 : Is there a way to get the full response from the target server,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11447494/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com