Rank: Newbie Coder Groups: Member
Joined: 3/19/2008 Posts: 11 Points: 12 Location: USA
|
Is it possible to use WebORB PHP for Server to Server Communication?
In my situation I have to build a Web Service on a different server than the one that hosts WebORB. The data that the Web Service is to provide is the same that is available directly to the Flex Application via WebORB.
My thinking is that I can invoke the WebORB service from the second server rather than copy/paste the same code between servers so that I only have one set of code to maintain.
I could set up a socket client/server but PHP is limited in the number of open sockets and maintaining multiple sockets is a major code pain. The code uses an ORACLE database and the queries can take up to 30 seconds to process. Holding a socket open for long periods does not sound like a good idea.
I could set up a Web Service on the other server and a client on the Web Service server but that adds a lot of complexity and headaches that I don't need (I already tried this and keeping track of the different clients and servers is a pain and the connection was not reliable what with multiple XML messages being exchanged and was really difficult to debug.
Any ideas?
|
Rank: Administration Groups: Administration
, Member
Joined: 9/10/2009 Posts: 320 Points: 778 Location: US
|
as I understand your description, you can achieve it only by using webservices. Unfortunately, WebORB has no php server-side client.
|