cancel
Showing results for 
Search instead for 
Did you mean: 

After execution rest url, it is not displaying code in xml format

Former Member
0 Kudos

Hi, 

     

      After execution of REST url, i am getting code in json at right part of the window but it is not displaying code in xml format at right  part of the window.any help will be greatly appreciated..

Thanks..

Accepted Solutions (0)

Answers (1)

Answers (1)

AshwinDutt
Active Contributor
0 Kudos

Hello,

You are getting response in xml.

Please remove the Header Content-Type - application/xml

Now check please.

Do not add any Header.

Keep only the URL and fire.

If you want response in json add as below ->

/sap/opu/odata/sap/YOUR_SERVICENAME_SRV/?$format=json

Looks like you have clicked on Use as Request button and hence you are seeing the HTTP Response as part of HTTP Request including Header Content-Type - application/xml

Regards,

Ashwin

Former Member
0 Kudos

Hi,

I tried accordingly but still it is not generating code in xml at right part of the window.

former_member184867
Active Contributor
0 Kudos

May be you can try with some external REST client such as Postman for Chrome(Postman - REST Client - Chrome Web Store)  or REST Client for Mozilla(RESTClient, a debugger for RESTful web services. :: Add-ons for Firefox). These will simulate the same behavior .