Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 19 total
Thread Calling RTC remote functions
Sun, May 13 2012 5:25 AMPermanent Link

Leslie

Hi,

I am experimenting with Real Thin Client SDK and I am wondering how to set up a ServerRequest to call a remote funcion?

Cheers,
Leslie
Sun, May 13 2012 11:28 AMPermanent Link

Leslie

I suppose this is a general XMLRPC question.

Cheers,
Leslie
Sun, May 13 2012 1:43 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

Leslie,

I have not tried the RTC but generally you need to figure out what
exactly is exchanged underneath since number of these solutions assume
their own code runs on both ends (some vendors auto-generate JavaScript
classes for client side so you can use that).

See if they have any notes on generic JavaScript access - usually this
might mean using certain (standard) format (XML-RPC like you said or
JSON) on server side.

More generically the ServerRequest is using JavaScript XMLHttpRequest i
believe so it's very flexible but at this time just takes raw data to
send so you need to build it out (or get some helper functions).

It might be easier on RTC side to just consume the raw data rather than
use their functions.

Raul

On 5/13/2012 11:28 AM, Leslie wrote:
> I suppose this is a general XMLRPC question.
>
> Cheers,
> Leslie
>
Sun, May 13 2012 2:37 PMPermanent Link

Leslie

Raul, thanks. I have the XML for calling the RTC function, what I  am looking for is the exact syntax to send  the request from an  EWB app. How to fill the header, what needs to be placed to  requestcontent ... ? I am new to web development so these might be rookie questions obvious to most.

Cheers,
Leslie
Sun, May 13 2012 4:09 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

I assume it's an http post with the xml as payload but to be sure you
would need an existing RTC server and client already (windows apps are
fine) and capture what exactly client sends.

Either log the raw received HTTP data (request, headers, data) on the
RTC server side or use something like http proxy to capture the actual
data (for example fiddler (http://www.fiddler2.com/fiddler2/)).

This NG thread has an example on how to fill in a request and add
headers, content etc in EWB app:
http://www.elevatesoft.com/forums?action=view&category=ewb&id=ewb_demos&page=1&msg=71#71

Raul

On 5/13/2012 2:37 PM, Leslie wrote:
> Raul, thanks. I have the XML for calling the RTC function, what I  am looking for is the exact syntax to send  the request from an  EWB app. How to fill the header, what needs to be placed to  requestcontent ... ? I am new to web development so these might be rookie questions obvious to most.
>
> Cheers,
> Leslie
>
Sun, May 13 2012 5:28 PMPermanent Link

Leslie

Raul,

Very helpful. Thanks a lot!

Cheers,
Leslie
Mon, May 14 2012 5:27 AMPermanent Link

Leslie

To answer my question:

RequestHeaders:

Content-Type: text/xml

RequestContent:

<?xml version="1.0" encoding="UTF-8"?>
<methodCall><methodName>aRemoteProcName</methodName><params>
<param><value><struct>
<member><name>aParameterName</name><value><string>aStringParameter</string></value></member>
</struct></value></param>
</params></methodCall>

Session ID is communicted through Params:

ID=NEW /  ID=PreviouslyRecievedAndStoredSessionID  

ResponceContent will be something like this:

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse><params><param>
<value><struct>
<member><name>aParameterName</name><value><string>aStringParameter</string></value></member>
</struct></value>
</param></params></methodResponse>

Cheers,
Leslie
Mon, May 14 2012 5:29 AMPermanent Link

Leslie

One more important thing:

Method:= rmPost;

Cheers,
Leslie
Mon, May 14 2012 5:30 AMPermanent Link

Leslie

Raul,

Fiddler was extremly useful.

Thanks again,
Leslie

Cheers,
Leslie
Mon, May 14 2012 8:26 AMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

Thanks Leslie for posting the results.

The RTC looks fairly straightforward - JS helper unit to (auto-)
generate/parse the xml would be helpful to speed things up though once
you have lot of functions/params.

I'm glad fiddler helped - i've used it myself numerous times.

Raul


On 5/14/2012 5:30 AM, Leslie wrote:
> Raul,
>
> Fiddler was extremly useful.
>
> Thanks again,
> Leslie
>
> Cheers,
> Leslie
>
Page 1 of 2Next Page
Jump to Page:  1 2
Image