Finishing up the NuSOAP server
In the last post, the NuSOAP server introduced a new level of complexity, and had a multidimensional array, along with creating a more robust status message for the client to help determine the success or failure of the request. This post will examine the remaining functions in the NuSOAP server, and making the rest of the functions work, and more complex types including third and fourth level complexities along with a non-named (integer) array for the result.
We will be building on the code we used last time, so as a refresher, the code from the last post can be located at:
http://www.hirdweb.com/webservice/20100710_server.txt
http://www.hirdweb.com/webservice/20100710.txt
First off, here are the remaining functions to be exposed in the service:
- showGroupItems – Shows what is needed based on a set event, all items are made up of course
- showMadLib – Returns a mad lib based on passing in a number of different items
- showNumbers – Returns a non associative array of numbers, requires an ID, and returns the numbers associated with that ID
Each of these webservices will require a little different structure.
showGroupItems will have a third level of complexity
showMadLib will require a long list of strings as the input
showNumbers will return an array of string elements, integer value for the element, instead of a named element
(more…)