summaryrefslogtreecommitdiff
path: root/ext/soap/tests/soap12/T80.phpt
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2004-02-02 16:19:39 +0000
committerDmitry Stogov <dmitry@php.net>2004-02-02 16:19:39 +0000
commit840526f1d3709a62427b4ce46dd8ebaca25e8886 (patch)
tree24c41f3bb639328d796af2a2cafbc3d76a3c78d9 /ext/soap/tests/soap12/T80.phpt
parentc9941f9d20fc539567c6891bfbabd5851c5aab7b (diff)
downloadphp-git-840526f1d3709a62427b4ce46dd8ebaca25e8886.tar.gz
Server-part support for SOAP Headers was implemented (incomplete)
Diffstat (limited to 'ext/soap/tests/soap12/T80.phpt')
-rw-r--r--ext/soap/tests/soap12/T80.phpt19
1 files changed, 19 insertions, 0 deletions
diff --git a/ext/soap/tests/soap12/T80.phpt b/ext/soap/tests/soap12/T80.phpt
new file mode 100644
index 0000000000..e7598e5a81
--- /dev/null
+++ b/ext/soap/tests/soap12/T80.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SOAP 1.2: T80 echoOk
+--SKIPIF--
+<?php require_once('skipif.inc'); ?>
+--FILE--
+<?php
+$HTTP_RAW_POST_DATA = <<<EOF
+<?xml version="1.0"?>
+<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
+ <env:Body>
+ <test:echoOk xmlns:test="http://example.org/ts-tests" env:encodingStyle="http://example.org/PoisonEncoding">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:DataEncodingUnknown</env:Value></env:Code><env:Reason><env:Text>Unknown Data Encoding Style</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>