i can't make my service as REST in caché v 2012. do you have an idea how i can do it ?
Thank you for your replay.
- Log in to post comments
i can't make my service as REST in caché v 2012. do you have an idea how i can do it ?
Thank you for your replay.
Thank you agin for your help :)
this solution will be worked on Rest service,
yes, i added it in my web service.
/// HANDLED CORS POLICY
Parameter HandleCorsRequest = 1;
not work,
I can use this in %Soap.WebService ? bellow my request from frontend client
=============================================================
function soapRequest(){
var soapMessage = '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:abon="http://namespace">'+
' <soapenv:Header/>'+
'<soapenv:Body>'+
'<abon:ActivationContrat>'+
'<abon:PUBLISH>'+
'<abon:HEADER>'+
'<abon:SENDER_ID>?</abon:SENDER_ID>'+
'<abon:RECEIVER_ID>?</abon:RECEIVER_ID>'+
'<abon:COMPANY>?</abon:COMPANY>'+
'<abon:COUNTRY>?</abon:COUNTRY>'+
'<abon:DATE>?</abon:DATE>'+
' <abon:MESSAGE_TYPE>?</abon:MESSAGE_TYPE>'+
'</abon:HEADER>'+
'<abon:CONTENT>'+
<!--Zero or more repetitions:-->
'<abon:CONTRAT>'+
'<abon:STORE>?</abon:STORE>'+
'<abon:CASH_DATE>?</abon:CASH_DATE>'+
'<abon:CASH_BOX>?</abon:CASH_BOX>'+
'<abon:CASH_TICKET>?</abon:CASH_TICKET>'+
'<abon:CASH_AMOUNT>?</abon:CASH_AMOUNT>'+
'<abon:EAN>fromtest</abon:EAN>'+
'<abon:ACTIVATION_CODE>3058030416</abon:ACTIVATION_CODE>'+
'</abon:CONTRAT>'+
'</abon:CONTENT>'+
'</abon:PUBLISH>'+
'</abon:ActivationContrat>'+
'</soapenv:Body>'+
'</soapenv:Envelope>';
function createSoapRequest(method,url){
var xhr = new XMLHttpRequest();
if ("withCredentials" in xhr){
console.log("with crediential ok");
xhr.open(method,url,false);
console.log("opend");
}/*else if (typeof XDomainRequest != "undefined"){
console.log("xDomaineRequest ok");7
}
else{
console.log("CORS not supportes");
xhr=null;
}*/
return xhr;
}
var xhr = createSoapRequest("POST","http://vmw-app-dev:57772/csp/vdbcen/API.MSP.AbonContract.cls?wsdl");
if (!xhr){
console.log("XHR iccue");
return;
}
xhr.onload = function(){
var result = xhr.responseText;
console.log(result);
}
xhr.setRequestHeader("Content-Type","text/xml");
xhr.send(soapMessage);
========================================================
Thank you YURI MARX GOMES for your replay,
I added this parametrer but not work, generate same error :(
Hi Danny,
Great, Thank you Danny, i think it's the great idea,
I ll try to use VBA code :)
i will come back to you Danny :)
Thank you Danny for your replay, i export the data to excel using csv file, this work fine, but some data i neet to display its inside a dropdown list , how i can do this, there's some classes in caché to handle the data in sheet and cells from Excel file ?