• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

10. Calling Web Services from Flash Remoting > 10.6. Web Services from PHP

Web Services from PHP

Setting up AMFPHP for web services is covered in Chapter 9. There are two web service options for AMFPHP: nuSOAP and PEAR::SOAP. The examples should work with either. The AMFPHP gateway requires that web services be called with the arguments attached to an ActionScript object. The Whois web service described earlier requires these three named arguments:

SRLFile

The name of the Service Request Language File (”WHOIS.SRI" for domain checking).

RequestName

This should always be "whois“.

Key

The domain name.

Other than that, the code can be used as-is from the ColdFusion MX example, substituting your own Flash Remoting gateway URL. The getWhois( ) function looks like this in the PHP example:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint