You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Problem in connect to a REST service

Received Response
37
Views
2
Comments
edited Jan 2, 2018 8:00AM in Java 2 comments

Summary

Problem in connect to a REST service

Content

Hi,

I'm new working with JCS SX.

I need to connect to REST service of our Saas (CRM).

The basic thing that I'm trying is using the following code:

import com.sun.jersey.api.client.WebResource;

import com.sun.jersey.api.client.Client;

import com.sun.jersey.api.client.ClientResponse;

import com.sun.jersey.api.client.config.ClientConfig;

import com.sun.jersey.api.client.config.DefaultClientConfig;

import com.sun.jersey.api.client.filter.ClientFilter;

import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;

import com.sun.jersey.api.client.filter.LoggingFilter;

import com.sun.jersey.client.urlconnection.HTTPSProperties;

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!