xref: /PHP-5.6/ext/soap/tests/soap12/T68.phpt (revision 840526f1)
1--TEST--
2SOAP 1.2: T68 echoOk
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7$HTTP_RAW_POST_DATA = <<<EOF
8<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
9
10
11 <env:Header           >
12
13                          <test:echoOk xmlns:test="http://example.org/ts-tests"
14        env:role="http://www.w3.org/2003/05/soap-envelope/role/next"  >foo</test:echoOk>
15
16
17 </env:Header>
18 <env:Body>
19
20
21 </env:Body>
22
23
24
25</env:Envelope>
26EOF;
27include "soap12-test.inc";
28?>
29--EXPECT--
30<?xml version="1.0" encoding="UTF-8"?>
31<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://example.org/ts-tests"><env:Header><ns1:responseOk>foo</ns1:responseOk></env:Header><env:Body/></env:Envelope>
32ok
33