Annotation of embedaddon/php/ext/soap/tests/soap12/T56.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: SOAP 1.2: T56 echoString
                      3: --SKIPIF--
                      4: <?php require_once('skipif.inc'); ?>
                      5: --FILE--
                      6: <?php
                      7: $HTTP_RAW_POST_DATA = <<<EOF
                      8: <?xml version='1.0' ?>
                      9: <env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
                     10:               xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                     11:               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     12:               xmlns:enc="http://www.w3.org/2003/05/soap-encoding">
                     13:   <env:Header>
                     14:     <test:DataHolder xmlns:test="http://example.org/ts-tests"
                     15:           env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
                     16:       <test:Data enc:id="data-1" xsi:type="xsd:string">
                     17:         hello world
                     18:       </test:Data>
                     19:     </test:DataHolder>
                     20:   </env:Header>
                     21:   <env:Body>
                     22:     <test:echoString xmlns:test="http://example.org/ts-tests"
                     23:           env:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
                     24:       <inputString enc:ref="#data-2" xsi:type="xsd:string" />
                     25:     </test:echoString>
                     26:   </env:Body>
                     27: </env:Envelope>
                     28: EOF;
                     29: include "soap12-test.inc";
                     30: ?>
                     31: --EXPECT--
                     32: <?xml version="1.0" encoding="UTF-8"?>
                     33: <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>SOAP-ERROR: Encoding: Unresolved reference '#data-2'</env:Text></env:Reason></env:Fault></env:Body></env:Envelope>
                     34: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>