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
on May 15, 2013 10:11 AM by 1004787
Response Status Code
May 15, 2013 9: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.
I have the same question
Show 0 Likes
This content has been marked as final.
Show 1 reply
Re: Response Status Code
May 15, 2013 10: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);