Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between SoapServer features option

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?

like image 377
itnelo Avatar asked Jul 29 '14 07:07

itnelo


People also ask

What is Uri in SOAP?

A web service is specified using a Universal Resource Identifier (URI). The syntax diagram specifies the URI that is supported in the IBM MQ transport for SOAP. The URI controls over IBM MQ -specific SOAP parameters and options used to access target services. The URI is compatible with Web services hosted by .

What is SOAP API PHP?

The Xolphin SOAP API can be used to order and process certificates through your own system. In the text below, you will find the PHP example code to be used for this purpose. Note: We recommend using our REST API instead of our SOAP API, especially for new developments.

What does PHP SOAP do?

Introduction. A PHP SOAP Extension can be used to provide and consume Web services. In other words, this PHP extension can be used by PHP developers to write their own Web Services, as well as to write clients to make use of the existing Web services.


1 Answers

SOAP_WAIT_ONE_WAY_CALLS

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.

SOAP_SINGLE_ELEMENT_ARRAYS

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.

SOAP_USE_XSI_ARRAY_TYPE

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.

like image 71
darkhorizon Avatar answered Oct 19 '22 06:10

darkhorizon