开发者

What is the default Soap Version for SoapServer in PHP?

I have a question from a client, asking if our Soap server is expecting Soap v1.1 or v1.2.

The only configuration in the SoapServer constructor is the WSDL

$server = new SoapServer(__CONFIG_PATH_WSDL_DISK);

If no option for 'soap_version' is specified i开发者_如何学Gon the the SoapServer constructor , what is the default version, or will it handle both?

Drew J. Sonne.


A simple way is to check for Content-Type header during the transaction.

SOAP 1.1 uses text/xml SOAP 1.2 uses application/soap

from this link


To answer the second half of your question, yes, it supports both:

http://au2.php.net/manual/en/intro.soap.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜