Readme
Sunday April 20, 2003
Consuming a web service in three steps
With PHPObject, you can consume a web service in just three steps. While some knowledge of SOAP will be helpful, it is not necessary. If you know what operations are available, what parameters to pass, and the web service's wsdl location, you can consume the web service with PHPObject (together with the Web Services Connectivity Add-on).
mySvc = new PHPObject("http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl");
2. Invoke the web service
mySvc.getQuote("symbol","IBM");
3. Handle the result when it returns
mySvc.onResult = function(result) {
trace(result)
}
Please note that the above method currently only works for RPC-style web services.
* You may also like to look at the Google Web API tutorial.
Posted by sunny at April 20, 2003 01:05 AM
|
Comments
Can anyone confirm if this would work? I think it's possible to use Google's API as a spell checker. I'd like to incorporate this into some tools I'm building with PHPObject. Posted by: Andrew Blair at May 21, 2003 12:39 AMThis is John Doe. Bet you never thought I would be on your site, huh?!?!? And to your question, I don't have any idea. Sincerely, eerrrr.... who is John Doe? Are you a real John Doe? :) Andrew, I guess my confirmation doesn't count, but if it does, yes, this works and Google spell checker works as well! Posted by: sunny at May 26, 2003 11:31 PMcool. Posted by: Andrew Blair at June 10, 2003 09:43 PMgreat tool, but I have had some problems getting the services to work. The PHP test alone works fine (the one included in the download) but I cannot get wsdltest.swf (included with the services) to work at all. I have read thru most of the posts on this site and Im sure its something minor on my end. Followed the instructions (pointed to the Gateway.PHP) and waited... but nothing is returned. Please, any info would be a great help. TAI Posted by: KG at June 17, 2003 01:33 PMbrowse to your gateway in a browser, make sure you don't get any errors(like possibly not finding the webserviceproxy.php file) Posted by: seth at July 2, 2003 10:05 AMnote that my friend just tried this google app that worked for me on IE6.0/WINXP, but didn't on Safari/MAC, but it did on IE/MAC. Just thought that may be of interest. Posted by: seth at July 2, 2003 11:18 AMthanks seth, the safari issue is a known problem but it is not specific to PHPObject. apparently the flash player in safari doesn't work as expected. read also
|
