Imported stub for exchangeRate fails (using system.include)
-----------------------------------------------------------

                 Key: MASHUP-703
                 URL: https://wso2.org/jira/browse/MASHUP-703
             Project: WSO2 Mashup Server
          Issue Type: Bug
            Reporter: Keith Godwin Chapman
            Assignee: Jonathan Marsh


1. Using the stub generator tool create a stub for 
http://www.webservicex.net/CurrencyConvertor.asmx?wsdl and add it to the 
resources folder of a mashup.
2. Need to specify the URL of the endpoint due to a bug in the stub gen 
process. 
3. Invoke the service with USD and AUD as the parameters
4. The stub returns NAN (May be a bug in the data type conversion process in 
stub)

this.serviceName = "ImportingJS";

system.include("exchangeRate.stub.e4x");

convert.inputTypes = {"fromCurrency" : "string", "toCurrency" : "string"};
function convert(fromCurrency, toCurrency) {
        
CurrencyConvertor.setAddress("CurrencyConvertorSoap","http://www.webserviceX.net/CurrencyConvertor.asmx";);
        return CurrencyConvertor.ConversionRate(fromCurrency, toCurrency);
}

-- 
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://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev

Reply via email to