I have the following generic question:
Assume I have a web service that returns as a response for one of each methods a complex type e.g. Person.
For simplicity lets assume Person has firstName (string), lastName (string), job(string), age (int) etc.
Now the xsd for Person in the associated with the web service WSDL defines all of the elements of the complex type as optional (i.e. minOccurs=0). Please do not ask why, it could happen, although for a Person, it does not make sense, it is only for a trivial example to ask my question.
Now this means that an xml in the form of <Person></Person> is valid per xsd and WSDL.
So the web service could return a response to a client that is of the form
My question is, once the web service's client framework receives this response, how would it be handled?
Taking into account that the programming model for web services is like making function calls, will the client's code get a null pointer by the framework as a response of the remote method call? It seems to me that it should return null.
Does anyone know this?