Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

client.request(req,dest) throwing Server error (500)

$
0
0

Hi,

I tried to get Data from Northwind odata service using Outbound Connectivity

 

This is products.xshttpdest

 

host = "services.odata.org";
port = 80;  
description = "Sample outbound connection";
useSSL = false;
pathPrefix = "/northwind/northwind.svc/Products";
authType = none;
useProxy = false;
proxyHost = "";
proxyPort = 0;
timeout = 0;

And below code is for readData.xsjs

var dest = $.net.http.readDestination("package", "products");    
var client = new $.net.http.Client();    
var req = new $.web.WebRequest($.net.http.GET, "");    
client.request(req, dest);    
var response = client.getResponse();

I am getting Internal Server error at line 04 in the readData.xsjs file.

Please suggest a solution

Is there any permission or settings required to enable client.request.

 

Thanks,

Vijay


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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