What is preferred way to implement WebService call in plugin?

Answered

Hi all,

I'm currently writing one plugin that utilise remote WebService to fetch data to be displayed in plugin.

I'm wondering what is preferred way of managing network communication within plugin?

As I come from JavaEE/Spring development world, my first thought was to throw Spring WebService Template and utilise it for calling webservice, but I'm wondering if that is best practice.

Thanks,

Milan

0
1 comment

Platform only comes with low-level HTTP API com.intellij.util.io.HttpRequests. Basically you can use any 3rd party library to access your webservice, as long as you bundle all required JARs with your plugin. See also com.intellij.util.proxy.CommonProxy to access user-set IDE proxy settings.

0

Please sign in to leave a comment.