This is Interesting: Free Magazines for Graphics designers and webmasters
Home > Archive > Mozilla XML > October 2005 > web service proxy under XPCOM
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
web service proxy under XPCOM
|
|
| Tee, Leong-Chiang 2005-10-14, 3:24 am |
| Hi,
I tried the web service written in JavaScript, it worked perfectly.
However, I cannot find any documentation to using this proxy model under
my XPCOM. Is it true that the proxy in current state can only work via
XPConnect?
Thanks.
--
Best Regards,
Tee, Leong-Chiang
PeerTouch Technologies Pte. Ltd.
| |
| Martin Honnen 2005-10-14, 6:46 pm |
|
Tee, Leong-Chiang wrote:
> I tried the web service written in JavaScript, it worked perfectly.
> However, I cannot find any documentation to using this proxy model under
> my XPCOM. Is it true that the proxy in current state can only work via
> XPConnect?
As XPConnect simply exposes XPCOM components to JavaScript I think it
should be possible to use those components from C++ as well. Are you not
able to use the stuff documented here
<http://xulplanet.com/references/xpc...ebServices.html>
from C++?
--
Martin Honnen
http://JavaScript.FAQTs.com/
| |
| Tee, Leong-Chiang 2005-10-17, 3:21 am |
| Martin Honnen wrote:
>
> Tee, Leong-Chiang wrote:
>
>
>
> As XPConnect simply exposes XPCOM components to JavaScript I think it
> should be possible to use those components from C++ as well. Are you not
> able to use the stuff documented here
> <http://xulplanet.com/references/xpc...ebServices.html>
> from C++?
>
>
>
I think the same way but I can't find concrete example for doing that.
If I got the proxy (nsIWebServiceProxy) from the web service, if I
simple do (instanceof nsIWebServiceProxy)->myWebServiceOperation, it
can't simply pass the compile phase because there is no such method
defined in the interface (make sense). My question is how to use the
proxy to invoke the web service operation?
Thanks.
--
Best Regards,
Tee, Leong-Chiang
PeerTouch Technologies Pte. Ltd.
|
|
|
| | Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |
|