vineet131
13 years agoOccasional Contributor
How to Read specific text from Raw Response of REST service
Hi,
I am trying to to read the a specific text from the Raw response of REST service.
For example I need to read text "Could not map UserM for" from below mentioned Raw response:
------------
HTTP/1.1 500 Internal Server Error
Connection: close
Date: Thu, 18 Oct 2012 14:21:33 GMT
Content-Length: 8006
Content-Type: text/html; charset=UTF-8
X-Powered-By: Servlet/2.5 JSP/2.1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<HTML>
<HEAD>
<TITLE>Error 500--Internal Server Error</TITLE>
</HEAD>
<BODY bgcolor="white">
<FONT FACE=Helvetica><BR CLEAR=all>
<TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
<FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2>
</FONT></TD></TR>
</TABLE>
<TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><pre>com.az.rd.gsm.common.ext.GsmUncheckedException: Rest call unsuccessful: Request:
Response: status[500]
Date: [Thu, 18 Oct 2012 15:19:41 GMT] Server: [Oracle Containers for J2EE] Connection: [Keep-Alive] Keep-Alive: [timeout=15, max=100] Content-Type: [text/plain] Transfer-Encoding: [chunked] , entity: [glow][glow]Could not map UserM for: xxxxx[/glow][/glow]
------------------------
Can anybody help me on this issue?
Regards,
Vineet
I am trying to to read the a specific text from the Raw response of REST service.
For example I need to read text "Could not map UserM for" from below mentioned Raw response:
------------
HTTP/1.1 500 Internal Server Error
Connection: close
Date: Thu, 18 Oct 2012 14:21:33 GMT
Content-Length: 8006
Content-Type: text/html; charset=UTF-8
X-Powered-By: Servlet/2.5 JSP/2.1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Draft//EN">
<HTML>
<HEAD>
<TITLE>Error 500--Internal Server Error</TITLE>
</HEAD>
<BODY bgcolor="white">
<FONT FACE=Helvetica><BR CLEAR=all>
<TABLE border=0 cellspacing=5><TR><TD><BR CLEAR=all>
<FONT FACE="Helvetica" COLOR="black" SIZE="3"><H2>Error 500--Internal Server Error</H2>
</FONT></TD></TR>
</TABLE>
<TABLE border=0 width=100% cellpadding=10><TR><TD VALIGN=top WIDTH=100% BGCOLOR=white><FONT FACE="Courier New"><pre>com.az.rd.gsm.common.ext.GsmUncheckedException: Rest call unsuccessful: Request:
Response: status[500]
Date: [Thu, 18 Oct 2012 15:19:41 GMT] Server: [Oracle Containers for J2EE] Connection: [Keep-Alive] Keep-Alive: [timeout=15, max=100] Content-Type: [text/plain] Transfer-Encoding: [chunked] , entity: [glow][glow]Could not map UserM for: xxxxx[/glow][/glow]
------------------------
Can anybody help me on this issue?
Regards,
Vineet