xref: /PHP-8.3/ext/soap/tests/soap12/T65.phpt (revision 7f2f0c00)
1--TEST--
2SOAP 1.2: T65 echoOk
3--EXTENSIONS--
4soap
5--FILE--
6<?php
7$HTTP_RAW_POST_DATA = <<<EOF
8<?xml version='1.0' ?>
9<!DOCTYPE DOC [
10<!ELEMENT Envelope (Body) >
11<!ELEMENT Body (echoOk) >
12<!ELEMENT echoOk (#PCDATA) >
13]>
14<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
15  <env:Body>
16    <test:echoOk xmlns:test="http://example.org/ts-tests">
17      foo
18    </test:echoOk>
19  </env:Body>
20</env:Envelope>
21EOF;
22include "soap12-test.inc";
23?>
24--EXPECT--
25<?xml version="1.0" encoding="UTF-8"?>
26<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"><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>
27