Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3131

GET REST service call returns 200 but html page

$
0
0

Dear colleagues,

 

I am writing an NWCloud application providing REST web services. I use JPA for database connections in the backend and JAX-B for handling xml data. I also use JAX-RS to write the web services which I deploy in a servlet and publish them on my  NWCloud-trial-account. I implement the UI using SAP UI 5.

 

I implemented my first GET and POST services, and they seem to work fine except that sometimes they don't return the expected data, but somehow return only html code. I have the feeling that this has something to do with authentication and SAML requests but I can't figure out what to do.

 

The html code which is returned looks like this:

 

<html><head><meta http-equiv="cache-control" content="no-cache" /><meta http-equiv="pragma" content="no-cache" /></head><body style="background-color:#FFFFFF" onload="var url=window.location.hash;if(url&&0!==url.length){document.cookie=&quot;oucrsrcmudlbqbodivgimtfby_anchor=&quot;+escape(url);}document.forms[0].submit()"><p><script language="javascript">document.write("Please wait ...");</script></p><
noscript><p>Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed.</p></noscript><for method="post" action="https://accounts.sap.com/saml2/idp/sso/accounts.sap.com"><input type="hidden" name="SAMLRequest" value="<really long combination of letters and numbers>"/><input type="hidden" name="RelayState" value="oucrsrcmudlbqbodivgimtfby"/><noscript><input type="submit" value="Continue"/></noscript></form></body></html>

 

And the response header looks like this:

Screen Shot 2013-03-26 at 8.19.32 AM.png


Viewing all articles
Browse latest Browse all 3131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>