使用 SoapUI 连接到 SugarCRM REST 服务
我在网上的某个地方看到(例如 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要使用 SOAP 服务的 wsdl,可以在
http://ip/sugarcrm/service/v2/soap.php?wsdl
找到该 wsdlYou need to use the wsdl for the SOAP service, which is found at
http://ip/sugarcrm/service/v2/soap.php?wsdl