Using system.include pointing to runtime generated stubs

aldo.strac.gmail.com's picture

Is this possible to write something like

system.include("http://mashup.server.address/services/target?stub&lang=e4x");

in order to get a reference to a web service in a dynamically way? I'm doing this way and, in spite of the correct visualization of stub code if I visit the URL, if I'll call the included service's reference, I get an error like this:

Fault: ReferenceError: "target" is not defined.

Thanks for help!

tyrell's picture

As far as I remember, you

As far as I remember, you can't use system.include in that way. You have to first save the generated stub locally to include it. Tyrell
ruchira's picture

+1

Hi, Tyrell is right. As soon as we saved our mashup or applied changes to the mashup, it automatically re-deploy the mashup and tries to include the file you specified. So you need to copy it there before adding system.include() to the mashup. Ruchira
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)