HTTPendpoit doesn't work on fresh install 1.5.2

eggwise's picture
Hello guys, We have done a fresh install with the new 1.5.2 release and have copied all our services (made on a 1.5.1 install) to the new server. Most things work fine but I cannot run mashups via a HTTPEndpoit. It works on our other environment wit 1.5.1. (all windows installs). I know in the tyit page the URL for the HTTPEndpoint is buildup automatically when you enter the prompts. It works like tant in our 1.5.1. environment. When entering promptvalues in the tryit no URL in build up on our 1.5.2. environment. I added two screenprints. This is our mashup code: (I have no escaped the scripts)
this.serviceName = "ms_002de_cache";
this.documentation = "This mashup uses the ds_002de_cache dataservice to get open debt items";

getresult.documentation="Enter here user, password, cmpcode, actcode, refresh";
getresult.inputTypes = {"usrcode":"string", "password":"string", "cmpcode":"string", "actcode":"string", "refresh":"string"}
getresult.outputType = "#raw";
getresult.safe = "true";
getresult.HTTPLocation = "getresult/{usrcode}&{password}&{cmpcode}&{actcode}&{refresh}";


function getresult(usrcode, password, cmpcode, actcode, refresh)
{
var dataService = new WSRequest();
var options = new Array();
options.useSOAP = false;
options.useWSA = false;
options.HTTPmethod = "GET";
options.HTTPversion = "1.1";
var payload = {usrcode}{password}{cmpcode}{actcode}{refresh};
var result;
try {
dataService.open(options,"http://192.168.46.13:7762/services/admin/ds_002de_cache/",false);
dataService.send(payload);
result = dataService.responseXML;
} catch (e) {
result = e.toString();
}
return result
}

sendmail.documentation = "Send E-mail" ;
sendmail.inputTypes = {"from":"string", "to":"string", "subj":"string", "msg":"string"}
sendmail.outputType = "string";

function sendmail(from, to, subj, msg)
{
     var email = new Email();
     email.from = from;
     email.to = to;
     email.subject = subj;
     email.html = msg;
     //email.text = msg;
     email.send();
     return "done";
}


!!This occurs in the Tryit pages only!!!
AttachmentSize
151.jpg359.32 KB
152.jpg548.57 KB
jonathan.wso2.com's picture

Fix available

It looks like you've encountered https://wso2.org/jira/browse/MASHUP-1151. You can install the fix on 1.5.2 by replacing the file {mashup-server}/lib/jsstub.xslt with the one at https://wso2.org/repos/wso2/trunk/commons/dynamic-codegen/src/jsstub.xslt.
blakelycraig.yahoo.com's picture

Wow I have never heard of

Wow I have never heard of this before, what an interesting spiritual story. It's truly an inspirational and interesting story. Craig blog
library project main code
Learn Cloud
Learn
Cloud

The WSO2 Application Server is a reliable application server that can host your enterprise web applications. The WSO2 Application Server as a Service is offered in StratosLive, the WSO2 Platform as a Service. This article explains how a simple web application can be developed and deployed from Carbon Studio to the WSO2 Application Server...

Latest Webinar
Different groups within an organization need to monitor different Key Performance Indicators (KPIs) - An operations team will be interested in the response times of business services and loads of each service,..
Thursday, February 9th 2012, 09.00 AM (PST)

Thursday, February 9th 2012, 10.00 AM (GMT)