. Updated Daily. Editions SDA India   SDA Indonesia
JAX Asia 2008 - Conference for Enterprise Java, SOA, Spring, Web Services, Ajax, Agile and more
BUSINESS ENTERPRISE SOLUTIONS ARCHITECTURE INFORMATION SECURITY WIRELESS & MOBILITY DATA & STORAGE DEVELOPMENT HARDWARE













News

Tuesday, 27 February 2007

Know How to Share Complex Objects Between PHP and Flash-Part 2

 

 

Manfred Weber has posted the second part of the SOAP series on his blog. In the first part, he started with a basic example of creating a simple PHP Soap Server with the PEAR package Services_Webservice. In the second part he shares objects between PHP and Flash.

Manfred created three PHP classes:

  • Bookstore/Author which defines a single author
  • Bookstore/Book which defines a book plus a Bookstore_Author[] Array
  • Bookstore and finally the Bookstore service

Now calling the web service in the browser you’ll see that everything works like expected. The web service should serve one function—getAllBooks(), which returns a list of Book classes which hold an array of Bookservice_Author[] classes within its properties, he explains.

The next step is to connect Flash against it and see if it can handle these complex types. Below is a little Actionscript client, which makes use of the mx.services package. Not only we use the web service class, we also add the Log class which helps you analyse web services, he says.



 
 
print save email comment

print

save

email

comment

 
 

Search SDA Asia

Free eNewsletter

SDA Asia Magazine Free Download
 
 
 
Copyright @ 2008 SDA Asia Magazine - All Right Reserved Privacy Policy | Terms of Use