Thanks Ruchira for the detailed explanation. So it seems like WSRequest.js
is used for two different purposes in the FE & the BE. There is a bundle
called org.wso2.carbon.core.common. You should be able to include your
common scripts into that bundle in carbon core.

Thanks
Azeez

On Fri, Aug 6, 2010 at 12:17 PM, Ruchira Wageesha <[email protected]> wrote:

> 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
>
>


-- 
Afkham Azeez
Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com,
Lean . Enterprise . Middleware
Member; Apache Software Foundation; http://www.apache.org/
email: [email protected] cell: +94 77 3320919
blog: http://blog.afkham.org
twitter: http://twitter.com/afkham_azeez
linked-in: http://lk.linkedin.com/in/afkhamazeez
_______________________________________________
Carbon-dev mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev

Reply via email to