• Home
  • Regtweaker
  • Subscribe to Posts
  • Subscribe to comments

PC solutions

Give you Professional Suggestions

  • Home
  • News
  • Registry
  • Script
  • System Utility
  • Virus
  • Windows
  • XML
Home Script XML AS3 XmlRPC communication with PHP XmlRPC

AS3 XmlRPC communication with PHP XmlRPC

Posted on Sunday, 19 September 2010
717 Comments
Share|

Preparation:

1, as3 xmlRPC

Download link: http://danielmclaren.net/2007/08/03/xmlrpc-for-actionscript-30-free-library

2, php xmlRPC

This article uses the php that comes xmlRPC, of course you can also use the XML RPC for PHP writed by the other people, both use similar, but for the second, said memory management is better.

Download link: http://phpxmlrpc.sourceforge.net/

Operating System: Windows

AS3 Project:

1, after extracting as3xmlrpc, put the com folder to src directory, and then

package {

//import xmlrpc

import com.mattism.http.xmlrpc.*;

import com.mattism.http.xmlrpc.util.*;

import flash.display.Sprite;

import flash.events.ErrorEvent;

import flash.events.Event;

public class Client extends Sprite

{

private var rpc:Connection;

public function Client()

{

rpc = new ConnectionImpl(“http://127.0.0.1/xmlrpc.php”);

// Listening back to results

rpc.addEventListener(Event.COMPLETE,__onComplete);

rpc.addEventListener(ErrorEvent.error,__onError);

// Need to pass parameters to the server in this form

rpc.addParam(“is”, XMLRPCDataTypes.STRING);

rpc.addParam(“ok”, XMLRPCDataTypes.STRING);

// Need to register at the server side to achieve rpc_server

rpc.call(“rpc_server”);

}

public function __onComplete(e:Event):void{

var tr:Object = rpc.getResponse();

trace(tr);

}

public function __onError(e:Event):void{

var te:MethodFault = rpc.getFault();

trace(te);

}

}

}

PHP side: xmlrpc.php

<?php

/. / **
* Function: to provide the function to the RPC client calls
* Parameters:
* $ Method the function which the client needs to call
* $ Params the parameter array which client needs to call the function
* Return: Returns the result is called

*/

function rpc_server_func($method, $params) {

$return = ”method:”.$method.”\nparams[0]:”.$params[0].”\nparams[1]:”.$params[1];

return $return;

}

// Create a server-side XML-RPC

$xmlrpc_server = xmlrpc_server_create();

// Register a server-side method call rpc_server, the actual point is rpc_server_func function

xmlrpc_server_register_method($xmlrpc_server, ”rpc_server”, ”rpc_server_func”);

// accept the POST XML data from the client’s

$request = $HTTP_RAW_POST_DATA;

// Implementation of the calling client XML request, to obtain performance results

$xmlrpc_response = xmlrpc_server_call_method($xmlrpc_server, $request, null);

// output XML

header(‘Content-Type: text/xml’);

echo $xmlrpc_response;

// Destruction of XML-RPC server-side resources

xmlrpc_server_destroy($xmlrpc_server);

?>

View results returned. In the debugging process may encounter security sandbox issue. We can try add “-use-network = false” into the property “As Additional Compiler arguments”. Problems generally can be resolved.


Share this Post:
Digg Google Bookmarks reddit Mixx StumbleUpon Technorati Yahoo! Buzz DesignFloat Delicious BlinkList Furl
Tagged with: AS3, AS3 XmlRPC, PHP XmlRPC, XmlRPC

717 Responses to “AS3 XmlRPC communication with PHP XmlRPC”

Trackbacks are disabled.

Ecommerce
urse valley
airstream trailers
kids fleeces
Five Panel Drug Tests
Washing Wool Blanket
best car finance deals
Learn About Islam
how easy is it to get pregnant
benefits of bikram yoga
Land O Lakes Carpet Cleaners
woman fashion boots
Track Internet Usage
narrowboat insurance
kindle 3 wifi 3g
sony vaio pcg-7f1m
finance cars
forex trading robots
dumbbell set
general contractor Lakeville
Chicago Electric Power Tools
Lethal Commission Reviews
best car finance deals
866-826-4101
Panasonic Bread Machine
Britax Frontier
Eureka Steam Mop
9. garmin 305 forerunner
5. forerunner
one new man
Wicked Spice
Air Swimmers
Certified Diamonds Jewelry
flower engagement ring
credit card payment
garmin heart rate monitor
kindle fire
Airline Travel
Airline Travel
Outdoors
guts
transmission fluid flush
Watch Puss In Boots Online
proof set coin
classic coins
Watch The Rum Diary Online
gold mexican coin
Watch The Rum Diary Full Movie
Watch 11-11-11 Full Movie
Watch 11-11-11 Online
Seated Liberty Coin
large cent coin
uncirculated graded dollars
Social Media Marketing Colorado Springs
indian head coin
gold funds
Guanacaste
moncler jackets women black
Must Have
uncirculated graded dollars
gold funds
half cent coin
classic coins
Dealing with Stress
gold eagle bullion
czekoladowe fontanny
legal xanax
Wicked Spice
Boca Raton Real Estate
football
Retirement Book
A Very Harold and Kumar Christmas Full Movie
Watch 11-11-11 Full Movie
Watch The Rum Diary Online
car audio review
best steam mop for hardwood floors
smart oven
custom writing
seo google
Watch A Very Harold and Kumar Christmas
A Very Harold and Kumar Christmas Full Movie
download ebooks to android
best treadmills for home
invest liberty reserve
Runners metronome
small business insurance
dome climbers
reverse phone call lookup
Another Blog Title
street photography travel
magic submitter
Weight loss
Random chat
party rentals
batumi hotels
wayfarer rayban
edinburgh to london flights
Colorado Springs replacement Windows
reverse cell phone lookup
stresstest
auto traffic buddy
get him back
Business
Jocuri
Blackheads
Blackheads
Front Core Capital Gold Market
Mommy Blog
name
modern warfare 3 gameplay
click here
Buy Enfamil Premium Infant Formula For Babies 0-12 Months 234-Ounce
business card maker
Keys locked in car
gps tracker for car
Tour Agent
farmville cheat codes
Kids Eat Free
wii hacks
url
xbox cables
skin care products
click here
Volunteer Costa Rica Sea Turtles Conservation
T-Mobile
free ipad apps iphone download android games
interactive
tablet with usb port
best toaster oven
sports trophies
it logo
razer deathadder 3g
Accounting Basics
Ball Dresses
Jump start battery
jewelry bails wholesale
auto appraisal
kamerali sohbet
bar taburesi
Microfinance
american gold
YabasYabas
Pampers Babydry
brooksglycerin8
sikis
back links
tek parca izle
Statesville Ice Cream
sailing trips san blas
Statesville Ice Cream
Accounting Basics
chicken recipes for dinner
Accounting Basics
Statesville Ice Cream
Statesville Ice Cream
Statesville Ice Cream
Accounting Basics
Used Cars NJ
Twilight Breaking Dawn FULL MOVIE
Twilight Breaking Dawn FULL MOVIE
invest liberty reserve
Twilight Breaking Dawn Part 2
book template
Twilight Breaking Dawn FULL MOVIE
empower network review
lebanese-restaurants-brisbane
david wood empower network
Tiles Sydney
the empower network
Twilight Breaking Dawn Part 2
special education california
Twilight Breaking Dawn Part 2
Mirror 15
Twilight Breaking Dawn Part 2
Low residue diet food list
No white food diet
Twilight Breaking Dawn FULL MOVIE
grease monkey coupons
Tom And Jerry Trap-O-Matic
Twilight Breaking Dawn FULL MOVIE
Twilight Breaking Dawn Part 2
Derek Glass
cheap backlinks
Twilight Breaking Dawn Part 2
{pozycjonowanie|pozycjonowanie stron}
printable grocery coupons
Twilight Breaking Dawn FULL MOVIE
Twilight Breaking Dawn FULL MOVIE
Accounting Basics
Collision Insurance
water conservation gifts
water conservation card
water conservation gifts
water softener
home builders utah
film television comedy
Twilight Breaking Dawn Part 2
discount vouchers
overheid
dropship
best way to build credit
security it
Twilight Breaking Dawn FULL MOVIE
swisstgallery
mujeres
karma dla psów
puppy breeders
medals
Bartercard
digital voice recorder
OnkelSeosErbe sucht Nachfolger
pet photo to painting
football clothes
britax frontier 85
automatyka przemysłowa
Predictive Maintenance
wheels fiNANcing
jogos ben 10
nasza klasa
ovens
christmas story
Dobre katalogi
Darmowy katalog
Dodaj swoją stronę
Darmowe wpisy
Ubezpieczenia na życie
Unlock Motorola
Investing in Silver
Asian Tiger Mosquito
Asian Tiger Mosquito
Asian Tiger Mosquito
diabetes cure
Games
Asian Tiger Mosquito
Asian Tiger Mosquito
dog names
Asian Tiger Mosquito
brain wave frequencies
fontanny czekoladowe
Prince Lion
Accounting Basics
Accounting Basics
Motorola Droid Bionic
Chocolate Bars
Chauvet
adult toys
Victoria secret coupons
fontanny czekoladowe
facebook games facebook games
Asian Tiger Mosquito
Asian Tiger Mosquito
neil asher
carrera endurance
movie
folia
sbobet
brille tom ford
Accounting Basics
Firehouse Subs Menu
ecover creator
  • EYE care says:
    2011-11-30 at 9:30 am

    Your blog provides us a very great information. Its really very helpful to me to find result on search engine. Hope to hear more good information related to searching from your side.

  • EYE Care says:
    2011-11-3 at 5:55 am

    This is the good step u have taken. Thanks for writing this, its clear you have spent a good amount of time on your sites development.

  • Fast Cash Commission Guy says:
    2011-10-27 at 2:04 pm

    Absolutely insightful article, I was glad to uncover your web sites over the internet. I put a web page link on my own blog website thus my site visitors could possibly reach a site. Please consider a look.

  • golf cart battery repair refurbish says:
    2011-10-25 at 3:15 pm

    golf club set…

    After study a few with the weblog posts on your web site now, and I truly like your way of blogging. I bookmarked it to my bookmark web site list and will be checking back soon. Pls check out my web site also and allow me to understand what you believe…

  • pink tonka doll jeep says:
    2011-10-25 at 3:04 pm

    barbie doll sportster car…

    I found your blog site on google and verify a few of your early posts. Continue to maintain up the very good function. I just additional up your RSS feed to my MSN News Reader. Seeking ahead to reading much more from you later on!…

  • betainvites.com says:
    2011-10-25 at 2:41 pm

    Beta invites…

    [..] free beta invites for all of your favorite communities, programs, games etc. [..]…

  • how to make money says:
    2011-10-25 at 1:48 pm

    Links…

    [...]Sites of interest we have a link to[...]……

  • « Previous 1 ... 8 9 10

    Leave a Reply:

    Click here to cancel reply.

    Name (required):
    Mail (will not be published) (required):
    Website:
    Comment (required):
    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
    验证图片
    刷新验证码
    *

    Popular Articles

      • How to uninstall pc optimizer pro, pc optimizer pro removal 1139 comment(s)
      • what is Pbupdate.exe and how to fix Pbupdate.exe error? 1138 comment(s)

    latest comments

    • 正在加载...

    Tags

      Antivirus Suite Autorun ave.exe Backdoor Backdoor.Win32 Backdoor.Win32 removal browser home page was altered cc Clicker.dj Clunky Backdoor removal Default home page is modified DLL files error DOMDocument->load() downloader encountered Fix Kernel32 Dll Error MAC Microsoft Security Essentials PSW PSW.Kykymber.cc registry was modified remove MyWinLocker remove regedit32.exe remove safedrv.exe remove Trojan.Win32.Buzus.a Run command slow computer Speed Up Computer speed up pc Trojan Trojan-Downloader.Win32.Small.b removal Trojan-PSW.Win32 Trojan.Win32 Trojan.Win32 removal Trojan Downloader Trojan Dropper uninstall MyWinLocker variant dj Virus W32.Cervivec.A@mm Win32 Win32.Hack.GrayBird.al.761856 Win32.TrojDownloader.Guupk.ps Worm Worm.Win32

    Category

    • News
    • Others
    • Registry
    • Script
    • System Utility
    • Virus
    • Windows
    • XML

    Archives

    • December 2011
    • November 2011
    • October 2011
    • September 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011

    Links

    • Download Drivers

    Pages

    • Regtweaker
    • Spyware Cease
    
    Copyright © 2012 PC solutions. Powered by VersionHunter.com. registry repair |Threats Center
    Top