mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
SoapServer constructor was extended by default SOAP version.
This commit is contained in:
parent
e4db2fb890
commit
f3a114a97f
@ -18,4 +18,4 @@ include "soap12-test.inc";
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:VersionMismatch</faultcode><faultstring>Wrong Version</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><env:Fault><env:Code><env:Value>env:VersionMismatch</env:Value></env:Code><env:Reason><env:Text>Wrong Version</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>
|
||||
|
@ -19,4 +19,4 @@ include "soap12-test.inc";
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>DTD are not supported by SOAP</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
|
||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value></env:Code><env:Reason><env:Text>DTD are not supported by SOAP</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>
|
||||
|
24
ext/soap/tests/soap12/T64.phpt
Normal file
24
ext/soap/tests/soap12/T64.phpt
Normal file
@ -0,0 +1,24 @@
|
||||
--TEST--
|
||||
SOAP 1.2: T64 echoOk
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$HTTP_RAW_POST_DATA = <<<EOF
|
||||
<?xml version='1.0' ?>
|
||||
<!DOCTYPE DOC [
|
||||
<!NOTATION application_xml SYSTEM 'http://www.isi.edu/in-notes/iana/assignments/media-types/application/xml'>
|
||||
]>
|
||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
|
||||
<env:Body>
|
||||
<test:echoOk xmlns:test="http://example.org/ts-tests">
|
||||
foo
|
||||
</test:echoOk>
|
||||
</env:Body>
|
||||
</env:Envelope>
|
||||
EOF;
|
||||
include "soap12-test.inc";
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value></env:Code><env:Reason><env:Text>DTD are not supported by SOAP</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>
|
26
ext/soap/tests/soap12/T65.phpt
Normal file
26
ext/soap/tests/soap12/T65.phpt
Normal file
@ -0,0 +1,26 @@
|
||||
--TEST--
|
||||
SOAP 1.2: T65 echoOk
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
$HTTP_RAW_POST_DATA = <<<EOF
|
||||
<?xml version='1.0' ?>
|
||||
<!DOCTYPE DOC [
|
||||
<!ELEMENT Envelope (Body) >
|
||||
<!ELEMENT Body (echoOk) >
|
||||
<!ELEMENT echoOk (#PCDATA) >
|
||||
]>
|
||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
|
||||
<env:Body>
|
||||
<test:echoOk xmlns:test="http://example.org/ts-tests">
|
||||
foo
|
||||
</test:echoOk>
|
||||
</env:Body>
|
||||
</env:Envelope>
|
||||
EOF;
|
||||
include "soap12-test.inc";
|
||||
?>
|
||||
--EXPECT--
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://www.w3.org/2003/05/soap-encoding"><env:Body><env:Fault><env:Code><env:Value>env:Receiver</env:Value></env:Code><env:Reason><env:Text>DTD are not supported by SOAP</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>
|
@ -113,7 +113,7 @@ class Soap12test {
|
||||
}
|
||||
}
|
||||
|
||||
$server = new soapserver("http://http://example.org/ts-tests","http://example.org/ts-tests/C");
|
||||
$server = new soapserver("http://http://example.org/ts-tests", SOAP_1_2, "http://example.org/ts-tests/C");
|
||||
$server->bind(dirname(__FILE__)."/soap12-test.wsdl");
|
||||
$server->setClass("Soap12test");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user