Hi Koen,

Thanks for you respond.

> The "OK" message is simply the http 200 status, right ?

exactly.

 
> I could see 2 possible ways of solving your problem:

I've kinda solved the problem, but I'm not quit sure if the solution is the
right solution. What I did is that I have simply defined a function named WR()
instead of WRUN() which I guess is used to start the server. In WR() I have just
changed 
   
    server.addEntryPoint(WServer::Application, createApplication) into
   
    server.addEntryPoint(WServer::WidgetSet, createApplication)

What I understood from these two commands is that, the first one starts a server
which deals with browsers and open sessions upon receiving requests from
browsers, but the second case starts a server which is responsible to update
Widgets.

The drawback with this solution is that I have to start two web servers to
handle my communication. One for my clients, and the other for the requests from
MoneyBookers.
 
> 1) Can you indicate a URL that moneybookers server should access,
> which includes arguments ?

I am not really familiar with WResources. MoneyBookers simply sends an HTTP POST
message to the webserver eg. (http://myIPaddress : portNo/ MoneyBookers). 

> In that case, you could give it the URL of a WResource, and then you
> can simply handle the request from within the WResource. The benefit
> of this approach is that you could keep all the logic in one Wt
> session.

This seems to be a good solution. I have to study a bit more about WResources,
and how I can send messages to them.

 
> The bootstrap procedure mainly serves to differentiate between
> JavaScript and non-JavaScript agents, but bots can always be treated
> as user agents that do not have JavaScript.
> 
> I recommend that you add the user agent that matches the moneybookers
> server in the <user-agents type="bot"> list of your configuration
> file. In this way, the first request will result in a session, and you
> can parse the arguments from the WEnvironment object.

This also seems to be a good way of doing this.

I will try to use your second suggestion, and will let you know if anything goes
wrong.

Thank you once more,

Nima




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to