Question
4
Replies
208
Views
Posted: February 8, 2016
Last activity: February 8, 2016
Closed
Getting issue with REST web service
We are getting problem, with Rest Service. We followed below steps.
1) Created REST service.
2) Used Post method, and specified our input XML under "query string"section
3) Invoke Rest Service via Mozilla REST client and got below Results.
- Response Headers
- Status Code: 200 OK
- Content-Length: 0
- Content-Type: application/xml;charset=UTF-8
- Date: Mon, 08 Feb 2016 09:30:57 GMT
- Server: Apache-Coyote/1.1
- Set-Cookie: JSESSIONID=0310D7B69A1645B6221BE925FF84F0B6; Path=/prweb
- X-Powered-By: Servlet 2.5; JBoss-5.0/JBossWeb-2.1
- Response Body(Preview)
<parsererror>
XML Parsing Error: no element found Location: http://10.145.99.48:8080/prweb/PRRestService/Claims/Xchanging-Insurance-CWS-Claim/CreateClaim Line Number 1, Column 1:
<sourcetext> ^</sourcetext>
</parsererror>
Hi Kaur,
Are you able to log both your outgoing REST request to PRPC as well as the response ? Using TCPMON or FIDDLER or something like that ?
I'm not sure who is generating the '<parseerror>' XML fragment - PRPC or the REST client ?
Cheers
John