Hi All,
Basis team has already configured SSO between these systems, but I want to verify if it is done properly. What step do i need to follow to check if it is configured properly ?
If at all I find SSO is configured correctly , How I can pass that MYSAPSSO2 token and consume service exposed by Gateway.
I am doing this way but getting HTTP 400 error
Cookie[] cookies = request.getCookies();
String myCookeString = "";
for (int i = 0; i < cookies.length; i++) {
myCookeString = myCookeString+cookies[i].getName() +"="+ cookies[i].getValue()+"; ";
}
URL gatewayServiceUrl = new URL("http://192.168.1.35:8020/sap/opu/odata/sap/ZGW_BPM_TEST_SERVICE_SRV/GetData1Set?$filter=name eq 'ABCD'");
HttpURLConnection connection = (HttpURLConnection) gatewayServiceUrl.openConnection();
connection.addRequestProperty("Cookie",myCookeString);
connection.setRequestMethod("HEAD");
connection.connect();