使用 SoapUI 连接到 SugarCRM REST 服务

发布于 2024-12-23 16:16:16 字数 1048 浏览 4 评论 0原文

我在网上的某个地方看到(例如 SugarCRM SOAP 测试调用失败),有些人使用SoapUI 用于访问 SugarCRM SOAP 或 REST Web 服务,其 URL 类似于 http://ip/sugarcrm/service/v2/soap.php 和分别是http://ip/sugarcrm/service/v2/rest.php。我尝试使用“新建 SoapUI 项目”向导,并将该 url 放入“初始 WSDL/WADL:”中。但我只收到错误消息:

“加载 [http://ip/sugarcrm/service/v2/soap 时出错。 php] org.apache.xmlbeans.XmlException:错误:遇到意外字符:'c'”,在 SOAP 情况下;

“加载 [http://ip/sugarcrm/service/v2/rest 时出错。 php] org.apache.xmlbeans.XmlException:错误:遇到意外字符(lex 状态 8):',' ",在 REST 情况下。

我也尝试过使用 NetBeans,就像我在 将 SugarCRM REST 服务添加到 NetBeans 中所解释的那样,但错误有所不同(但仍然出现错误)。

这可能是 SugarCRM 的问题还是我做错了什么?

I saw somewhere in net (like SugarCRM SOAP test call fails), that some people use SoapUI to access SugarCRM SOAP or REST web services, with urls like http://ip/sugarcrm/service/v2/soap.php and http://ip/sugarcrm/service/v2/rest.php, respectively. I tried it, with 'New SoapUI Project' wizard, and putting that urls in 'Initial WSDL/WADL:". But I only get error messages:

"Error loading [http://ip/sugarcrm/service/v2/soap.php] org.apache.xmlbeans.XmlException: error: Unexpected character encountered: 'c' ", in SOAP case;

and

"Error loading [http://ip/sugarcrm/service/v2/rest.php] org.apache.xmlbeans.XmlException: error: Unexpected character encountered (lex state 8): ',' ", in REST case.

I tried with NetBeans too, like I explained in Add SugarCRM REST services to NetBeans, but the error there is different (but still get an error).

Could this be an issue of SugarCRM or am I doing something wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

送君千里 2024-12-30 16:16:16

您需要使用 SOAP 服务的 wsdl,可以在 http://ip/sugarcrm/service/v2/soap.php?wsdl 找到该 wsdl

You need to use the wsdl for the SOAP service, which is found at http://ip/sugarcrm/service/v2/soap.php?wsdl

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文