-->

Add SugarCRM REST services to NetBeans

2019-09-19 07:47发布

问题:

I'm trying to use NetBeans "Add Web Service" wizard to see SugarCRM REST web services. But when I insert url 'http://ip/sugarcrm/service/v2/rest.php' (or 'http://ip/sugarcrm/service/v2/rest.php?wadl') I receive the error message:

  • "cannot determine if the service is of type wsdl or wadl".

I have already included JAX-RPC plugin, as mentioned in 'http://stackoverflow.com/questions/4762149/adding-new-web-services-in-netbeans', but this not helped. In fact, I think NetBeans doesn't need RPC plugins to connecto to REST services...

Any help?

回答1:

As far as I know, Sugar uses the same methods and types for both SOAP and Rest. Can Netbeans interpret a soap wsdl for rest purposes?



回答2:

I don't think you're using the correct URLs.

One of the URLs in your post: http://ip/sugarcrm/service/v2/rest.php -> is trying to go to a host called "ip". Is that a host in your network? If not, then its going nowhere.