Reputation: 1103
I am reading the documentation for php class SoapServer but found nothing about description of options which will be passed in SoapServer constructor:
There is also a features option which can be set to
SOAP_WAIT_ONE_WAY_CALLS,
SOAP_SINGLE_ELEMENT_ARRAYS,
SOAP_USE_XSI_ARRAY_TYPE.
What is the difference between this option values?
Upvotes: 19
Views: 9709
Reputation: 540
Without this, SOAP will not wait for a response on one way calls. It will just continue on and assume that all is well in the world. A one way call is anything that does not have a response in the WSDL.
Your SOAP call may return a single value, or it may return an array of values. However, if you enable this flag, then it will force that single value to be an array with just the single value. You'll know what your data looks like without having to check it.
This sets the deserialization type. If an error like this comes up "No deserializer defined for array type {http://www.w3.org/2001/XMLSchema}", then look to enable this feature.
Upvotes: 32