Welcome, Guest. Please login or register.
Did you miss your activation email?
05/16/12, 22:29
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  The Library
| |-+  Technical Reference Area (Moderators: Flash-db, Musicman, BurtonRider1983, vesa kortelainen, Ronald Wernecke, Jorge Solis)
| | |-+  AMFPHP: Multiple service calls.
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: AMFPHP: Multiple service calls.  (Read 4663 times)
Jorge Solis
Administrator
Systems Administrator
*****
Posts: 14600


View Profile
« on: 11/26/04, 11:02 »

Thanks to Christophe Herreman for this simply hack around the problem of multiple service calls:

Problem: When you try to call 2 or more services at the same time, it's possible that AMFPHP will return an error saying that the class of the service you're using is not known to the gateway.

no class named yourService is known to the gateway

Solution: Check the setBaseClassPath() method in your gateway.php file. It should use and absolute path instead of a relative path. You can change it like this.

- before $gateway->setBaseClassPath("./services/");
- after $gateway->setBaseClassPath(realpath("services/") . "/");

After this change you should be able to call 2 or more services at the same time.


You can see the original post here: http://cherreman.blogspot.com/ (temporary place, link could be lost)

Jorge
« Last Edit: 11/26/04, 11:03 by Jorge Solis » Logged

Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
anything