Re: web service proxy under XPCOM

"Tee, Leong-Chiang" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization PeerTouch Technologies Pte. Ltd.
Message-ID <[email protected]>
Martin Honnen wrote:
> 
> 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/xpcomref/group_WebServices.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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.