[swx] Problem with SWX-Wordpress
ben
ben_da_dog at yahoo.co.uk
Tue Mar 4 02:45:59 PST 2008
Hi Herdiansah,
Welcome to the swx list, it's nice and peaceful here.
I tried doing a request to the same service your app is doing (Wordpress
class, getImages function, argument 0)
and i get a fault event triggered that says:
*Error 2: mysql_connect() [<a
href='function.mysql-connect'>function.mysql-connect</a>]: Access denied
for user 'web5'@'localhost' (using password: YES) in
/home/d41lyfla/public_html/swx/php/services/Wordpress.php, line 29.*
Hope that helps. Looks like a db connection issue.
Here's the code to reproduce the problem (place on one frame in a movie
and put swx's org source actionscript folder next to it):
/import org.swxformat.SWX;/
/var swx:SWX = new SWX();/
/swx.gateway = "http://swx.dailyflashid.org/php/swx.php";/
/swx.encoding = "GET";/
/swx.debug = true;/
/ /
/var callParameters:Object =/
/{/
/ serviceClass: "Wordpress",/
/ method: "getImages",/
/ args: [0],/
/ result: [this, resultHandler],/
/ timeout: [this, timeoutHandler],/
/ fault: [this, faultHandler]/
/}/
/ /
/swx.call(callParameters);/
/ /
/function resultHandler(event:Object)/
/{/
/ trace("result!");/
/}/
/function timeoutHandler(event:Object)/
/{/
/ trace("timeoutHandler!");/
/}/
/function faultHandler(event:Object)/
/{/
/ trace("faultHandler!");/
/ trace(event.fault.message);/
/}/
/stop();/
Cheers
Ben
Herdiansah wrote:
> Hi,
>
> I have setup SWX gateway and installed SWX-Wordpress on my site.
> I have test the SWX-WP API using SWX service explorer and it works fine.
> And then I've made a simple test for this service but it didn't work
> and then I tried a simple test using Twitter service and it work.
>
> If you take a look at this http://swx.dailyflashid.org/php/explorer/
> and try the wordpress service it works fine.
> but if you try this simple test http://herdiansah.com/swx/wp/
> wordpress_test.html it won't work while the twitter test does work
> http://herdiansah.com/swx/twitter/twitter_test.html
> Both test file using the same code only different in service.
>
> is anyone having the same issue with SWX-Wordpress?
>
> Cheers,
> Herdiansah
> --------------------------------------------------------
> Mobile: +628151800094
> Portfolio: http://www.herdiansah.com
> Blog: http://www.dailyflashid.org/
>
>
> _______________________________________________
> swx mailing list
> swx at osflash.org
> http://osflash.org/mailman/listinfo/swx_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20080304/4175642f/attachment.html
More information about the swx
mailing list