on 02-27-2014 5:54 PM
Hi Everyone,
We are trying approve the workflow decision by POST the HTTP request with Headers (SAP Business Workflow with SAP NetWeaver Gateway version 7.4).
HTTP POST with Headers (x-csrf-token)
we are following the SAP document
Below the code we are trying the same.
var oHeaders = {};
oHeaders["x-csrf-token"] = "<?php echo $csrftoken['xcsrfToken'];?>";
oHeaders["Authorization"] = "Basic ZGV2ZWxvcGVyOm5vc2VjcmV0";
jQuery.ajax({
type: "POST",
data: null,
headers: oHeaders,
success: successFunc,
error: errorFuncDefault
});
function successFunc(data) {
alert(data);
}
function errorFuncDefault(data) {
alert(data + 'error');
}
We facing the below errors like Method not supported some time and Authorization failed and we tried all possible ways but no result.
Could please help me, where we are going wrong.
Thanks in advance
Venky.
Hi Venky,
Not sure if this is in the correct forum. Perhaps you ought to post this in the Netweaver community instead as there are more likely to be developers there.
Regards
Graham
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.