[wsas-java-dev] Re: [commons-dev] Improvements to adminui
javascript/AJAX library
Sanjiva Weerawarana
sanjiva at wso2.com
Fri Mar 9 00:37:10 PST 2007
I'm confused.
> I believe you are referring prior to WSRequest.js. The simplest solution
> would be to start with native/WSRequest.js.
I'm referring to the stuff at
http://wso2.org/repos/wso2/trunk/wsf/javascript/native/. I think you meant
the same right?
> We propose that main.js contains functions related to a namespace
> "WSO2.common", (ex: WSO2.common.send(args...)) will solve the namespace
> issue.
+1 but IMO it should be wso2.wsf.
> As an example, WSO2.common.send(args...) is the wrapper function that
> uses WSRequest functionality to communicate with server. This is our
> original plan and we were waiting for a release of WSRequest to achieve
> this.
No I disagree- if there's a need to wrap WSRequest then we haven't got
WSRequest right. What is preventing you from doing
foo=new wso2.wsf.WSRequest()
and then using the methods of foo? Let's fix those problems so you can use
it directly.
THILINA/JONATHAN: are you guys using that in the mashup server??
If folks aren't using it then the code is no good and we must fix it.
> There could be another send() in the namespace of "WSO2.wsas". Thus, we
> could simply create an object of WSO2.wsas and call send() function.
> (i.e WSO2.wsas.send(args..)).
>
> In addition to this we could give another util function in main.js,
>
> WSO2.namespace(obj); that will create the object with proper namespace.
>
> Ex:
>
> WSO2.namespace('org.wso2.foo'); will create an Object =>
> WSO2.org.wso2.foo. Thus, user can simply implement his functions,
> without any namespace collisions.
>
> In this mode, WSRequest itself dosen't have to aware of its namespace.
I don't quite grok- that all seems weird and overly complex to me .. all
that's needed is to put WSRequest in a namespace to avoid collisions. Why
do we need to go beyond that?
Thanks,
Sanjiva.
--
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
email: sanjiva at wso2.com; cell: +94 77 787 6880; fax: +1 509 691 2000
"Oxygenating the Web Service Platform."
More information about the Wsas-java-dev
mailing list