It seems like we should be able to use RequestService for this - it would be nice if we could pass in a xap.requestservice.HttpRequest object instead of a url into the xap.requestservice.RequestService methods.
There is another way to do it though, you can use xap.util.HttpUtils.post(). -Scott Boyd On Sat, Aug 25, 2007 at 8:02 AM, Coach Wei <[EMAIL PROTECTED]> wrote: > Is there a way to send a POST message to the server using XAP messaging > API? The RequestService API only allows simply "url" (developer can not > set message content) - > > > > xap.requestservice.RequestService > <file:///D:\Nexaweb\Nexaweb%20Platform%204.5.7.1971\doc\JavaScriptIntegr > ated\doc\xap\xap.requestservice.RequestService.html#xap.requestservice.R > equestService()> ( clientSession ) API: > > Object > > retrieve > <file:///D:\Nexaweb\Nexaweb%20Platform%204.5.7.1971\doc\JavaScriptIntegr > ated\doc\xap\xap.requestservice.RequestService.html#retrieve#retrieve> > (url) > Retrieves the XMLHttpRequest object from the specified URL. > > Object > > retrieveAndProcess > <file:///D:\Nexaweb\Nexaweb%20Platform%204.5.7.1971\doc\JavaScriptIntegr > ated\doc\xap\xap.requestservice.RequestService.html#retrieveAndProcess#r > etrieveAndProcess> (url) > Retrieves a server-side page and processes it assuming it is > proper XML, executing any namespaced commands like XModify. > > Object > > retrieveAndProcessAsynchronously > <file:///D:\Nexaweb\Nexaweb%20Platform%204.5.7.1971\doc\JavaScriptIntegr > ated\doc\xap\xap.requestservice.RequestService.html#retrieveAndProcessAs > ynchronously#retrieveAndProcessAsynchronously> (url, listener) > Asynchronously retrieves a server-side page and processes it > assuming it is proper XML, executing any namespaced commands like > XModify. > > Object > > retrieveAsynchronously > <file:///D:\Nexaweb\Nexaweb%20Platform%204.5.7.1971\doc\JavaScriptIntegr > ated\doc\xap\xap.requestservice.RequestService.html#retrieveAsynchronous > ly#retrieveAsynchronously> (url, listener) > Asynchronously retrieves the XMLHttpRequest object from the > specified URL. > > <static> Object > > urlToPath > <file:///D:\Nexaweb\Nexaweb%20Platform%204.5.7.1971\doc\JavaScriptIntegr > ated\doc\xap\xap.requestservice.RequestService.html#!s!urlToPath#!s!urlT > oPath> ( url ) > Given a url like: /a/b?c=d Turn it into a path ending in > slash like /a/ > > > > > > Coach Wei > > Nexaweb Technologies > > 1 Van de Graaff, Burlington MA 01803 > > o 781.345.5435, f 781.354.5501 > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> www.nexaweb.com > <http://www.nexaweb.com> > > Blog: Direct from Web 2.0 <http://www.coachwei.com> > > > > "Enterprise Web 2.0 Solutions - Thinner, Richer, Faster" > > > >
