1 Reply Latest reply on May 15, 2013 10:11 AM by 1004787

    Response Status Code

    1004787
      Hi,
      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.

      Thanks
        • 1. Re: Response Status Code
          1004787
          Its working.....

          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);

          Thanks,
          Jayam