[
https://wso2.org/jira/browse/MASHUP-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Keith Godwin Chapman resolved MASHUP-1102.
------------------------------------------
Resolution: Fixed
> Invoking a service over JSON using WSRequest Host object fails
> --------------------------------------------------------------
>
> Key: MASHUP-1102
> URL: https://wso2.org/jira/browse/MASHUP-1102
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Reporter: Keith Godwin Chapman
> Assignee: Keith Godwin Chapman
>
> Here is a test case
> function invokeGetWeather(city){
> var request = new WSRequest();
> var options = new Array();
> options.HTTPInputSerialization = "application/json/badgerfish";
> options.HTTPLocation = "weather/{city}";
> var payload = <getWeather><city>{city}</city></getWeather>;
> var result;
> try {
>
> request.open(options,"http://mooshup.com/services/samples/RESTSample/",
> false);
> request.send(payload);
> result = request.responseText;
> system.log(result,"info");
> } catch (e) {
> system.log(e.toString(),"error");
> return e.toString();
> }
> return result;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Mashup-dev mailing list
[email protected]
http://mailman.wso2.org/cgi-bin/mailman/listinfo/mashup-dev