2
Bug #39832 (SOAP Server: parameter not matching the WSDL specified type are set to 0)
4
<?php require_once('skipif.inc'); ?>
6
soap.wsdl_cache_enabled=0
9
$HTTP_RAW_POST_DATA = <<<EOF
10
<?xml version="1.0" encoding="UTF-8"?>
11
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://test.pl"><SOAP-ENV:Body>
13
<parameters priority="high">
14
<ns1:NetworkErrorCode>1</ns1:NetworkErrorCode>
16
</SOAP-ENV:Test></SOAP-ENV:Body></SOAP-ENV:Envelope>
23
$x = new SoapServer(dirname(__FILE__)."/bug39832.wsdl");
24
$x->addFunction("Test");
25
$x->handle($HTTP_RAW_POST_DATA);
28
<?xml version="1.0" encoding="UTF-8"?>
29
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>SOAP-ERROR: Encoding: Violation of encoding rules</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>