Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
OTN Speaker Bureau
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: May 15, 2013 5:11 AM by
Response Status Code
May 15, 2013 4:10 AM
How to get Response status code of the request. In response stream we are getting Statuscode and Status Message along with many data. But I want only status message and code. How to get this.
This content has been marked as final.
Show 1 reply
Re: Response Status Code
May 15, 2013 5:11 AM
in response to
ServiceResponse serviceResponse = idcClient.sendRequest(userContext, requestDataBinder);
DataBinder responseBinder = serviceResponse.getResponseAsBinder(false);
int statusCode = responseBinder.getLocalData().getInteger("StatusCode");
String statusMessage = responseBinder.getLocal ("StatusMessage");
System.out.println(" Status: " + statusCode + " - " + statusMessage);