Hello, i ve deploy de the RIS.war over WebSphere 7 fixpack 29, with IDM
4.0.2 C
I followed all the steps that the documentation indicates.
I m having this problem while i try to get information via REST call.
I tried this


Code:
--------------------
curl -v -H "Content-Type: application/json" -X GET -u userassword --url http://myserver:9080/Ris/v1/identities
--------------------


The response was this:


Code:
--------------------
< HTTP/1.1 401 Unauthorized
< Content-Type: text/html;charset=ISO-8859-1
< $WSEP:
< Content-Language: en-US
< Transfer-Encoding: chunked
< Date: Thu, 10 Oct 2013 19:00:44 GMT
--------------------


And also i used a java class to do the same


Code:
--------------------
public class RestService {
public static final String SERVICE_URL = "http://10.1.41.21:9080/Ris/v1/identities";
public static final String ADMIN_DN = "user";
public static final String ADMIN_PW = "password";

public static void main(String[] args) throws IOException {
String authString = ADMIN_DN + ":" + ADMIN_PW;
String b64encodedAuthString= Base64.encode(authString.getBytes());
//String b64encodedAuthString = new sun.misc.BASE64Encoder().encode(authString.getByte s());
URL restURL = new URL(SERVICE_URL );


System.out.println("calling url: " + restURL.toString());
HttpURLConnection identitiesURL = (HttpURLConnection) restURL.openConnection();
identitiesURL.setRequestMethod("GET");
identitiesURL.setRequestProperty("RESTAuthorizatio n", b64encodedAuthString);
identitiesURL.connect();
System.out.println("response code: " + identitiesURL.getResponseCode());

if (identitiesURL.getResponseCode() == 200) {
identitiesURL.getContentLength();
InputStream in = identitiesURL.getInputStream();
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String text = reader.readLine();
System.out.println(text);
}
identitiesURL.disconnect();
}
}
--------------------


Same respose. Any idea? The user i m using it's an Admin.


--
letroncoso
------------------------------------------------------------------------
letroncoso's Profile: https://forums.netiq.com/member.php?userid=743
View this thread: https://forums.netiq.com/showthread.php?t=48925