Ha! Serves me right for asking for the RAW! 😁
Ok - I am a little confused - what are you actually trying to do here? - I'm struggling to work out what you want to do and also why you're doing what you're doing.
I've copied your original post below and I'm gonna comment in RED text for each point you made that I've struggling to understand:
"When I run the Rest API call from ReadyAPI it gives 200- ok.
But response in XML does not show- instead it shows up some logs also am getting error in HTML Tab. - so the content you're getting back is html - now html has quite loose rules - xhtml has tighter rules that are just as tight as XMLs wellformed rules - but I dont know if MS are using html or xhtml - but the fact that you got a 200 is encouraging. The API you hit, responded and gave you a 200. So I'm not sure what you're concerned about. If the response payload wasn't xhtml but only html - then the wellformed rules wouldn't be 'tight' enough to be successfully parsed by the xml parser - and so you wouldn't expect wellformed content to appear in the XML tab.
You mention logs - what logs are you looking at? are you looking the HTTP log? or ReadyAPI log? what does it say in the logs.
You mention there's an error in the HTML tab - what does the error actually say? - is it "unsupported content" or something else?
If I run the same http request via chrome it works fine. - when you say running the request in chrome runs fine - you mean submitting a GET on whatever MS resource you're trying to hit? If you get a 200 in ReadyAPI, but somewhere it's showing some errors - but your GET was successful - you get a 200 response, you get a payload back - what's wrong with that? Remember if there are any slight issues with teh returned content in the request - Chrome isn't going to display those issues - Chrome's a browser - it's built to make things as easy as possible for the user and not to confuse - so it working fine in Chrome really doesn't help all that much.
I set the authentication method as Auth2.0 in ReadyAPI. - Have you confirmed it should be using OAuth v2.0, rather than OAuth v2.0 (Azure)? I'm asking this - but what I'mn actually asking is where did you get this info from - who gave you all the parm values for your OAuth v2.0 connection?
HTML response: - OK - don't really know what you're getting at here - I'm lost - what are you saying here - are you saying that you had a warning in the Chrome that you needed to enable cookies or do you mean something else?
Your browser is currently set to block cookies. You need to allow cookies to use this service.
Cookies are small text files stored on your computer that tell us when you're signed in. To learn how to allow cookies, check the online help in your web browser.
When i saved my XML response as html and tried to open, i got the below screen" - you mention XML response here - but the Content-Type of the response is text/html - so - do you actually mean the HTML response?
How did you save the response......does the response render in the HTML tab of the response after all? or did you copy the html out of the RAW details?
You state "When i saved my XML response as html and tried to open, i got the below screen" - so - again - struggling abit - you saved the response as what - an .html file? .mhtml file? .xml file? do you mean like you saved a copy of the response onto your hard drive, then opened it within Chrome?
If I'm following correctly and you're saying you copied the html response from a GET request you submitted in ReadyAPI, into the browser and submitted it - but couldn't login to the resource you were trying to hit - that is completely expected. OAuth v2.0 is made to be secure. There's loads of session stuff and other stuff that hinders you doing what you tried to do.
So! What were you trying to do? If you can explain the objective behind your efforts - we might be able to help you a bit more than what I've done so far.
Oh - please forgive all the questions - if there's something I dont understand it just ruins my understanding of the whole thing - I'm thick - I need things laid out nicely so I understand - so sorry making you answer all these questions!
Cheers,
Rich