PHP Web Services by Lorna Jane Mitchell

PHP Web Services by Lorna Jane Mitchell

Author:Lorna Jane Mitchell
Language: eng
Format: epub, pdf
Tags: COMPUTERS / Programming Languages / PHP
ISBN: 9781449356514
Publisher: O’Reilly Media
Published: 2013-04-23T04:00:00+00:00


PHP Client and Server with WSDL

Now there is a WSDL file to use with the Library example class, and the client and server code can be altered to take advantage of this. First, here’s the server, with only the constructor needing to change:

<?php require('library.php'); $server = new SoapServer("wsdl"); // wsdl file name $server->setClass('Library'); $server->handle();

With the WSDL file in use, there’s no need to give any other information. Just give the filename (this can be remote if appropriate) and all the location and other settings are picked up from there. The client can do exactly the same:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.