After a few requests I’ve uploaded an example file containing an example web service. This follows most of the guidelines set out in my previous article
Basically the file splits into 4 parts.
part I – setup
includes the nusoap.php file, sets up the namespace and wsdl object
part II – registering types
registers the types – the singular ones first, then the array types (all using wsdl->addComplexType function)
part III – register the methods
register the various methods to be called using the wsdl->register function.
part IV – define the functions.
finally, define the functions – this can be done in a seperate include file to simplify some of the layout of the file. (why oh why did I want to specify part IV first? damn that Star Wars DVD).
As usual, any questions let me know.