Hi,

Tryit
====

In Tryit, all web service calls are done using Javascript. In order to do
that, we use *WSRequest.js*+*Javascript Stub for that Service .* Further,
the whole Tryit page is generated at the backend as HTML(when you do an HTTP
GET to foo?tryit) and sent back to the FE.

So when HTML is generated in the backend, we need to specify the path for *
WSReqeust.js*. As WSRequest.js in the FE, then we are unable to include the
path of it. Anyway, we can be bit more tricky and include the path of *
WSRequest.js* which is in the FE.

But this won't always work as we need to know the FE server url when Tryit
page is generated. i.e. One must have logged into BE using a FE. Otherwise,
there won't be any link reference the BE about the FE. But when Tryit is
considered, we should be able to Tryit a service even without a FE. i.e. By
just replacing the ?wsdl of a wsdl url with ?tryit, it give us the tryit
page.

Mashup Server's Custom UI
=====================

In MS, we can have html pages along with services(in the BE) which gives a
customized UI to access services. Even there, Javascript is used to call web
services. i.e. We need to include the path for  *WSRequest.js* in those html
files as well. Further those html files should work without a FE.

Hope it is bit more clear this time. :-)

regards,
Ruchira



On Fri, Aug 6, 2010 at 11:28 AM, Afkham Azeez <[email protected]> wrote:

> Please elaborate a bit more on why you need these JS files in both places,
> so that we can see whether we can come up with a better solution.
>
> Thanks
> Azeez
>
>
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to