diff options
author | Dmitry Stogov <dmitry@php.net> | 2005-11-18 11:00:15 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2005-11-18 11:00:15 +0000 |
commit | 8b4e1abdb04cc79b55520567a5585caa05084d11 (patch) | |
tree | ca59c47575416e71456dcf90d8b49bee884b5dae /ext/soap/tests/bugs/bug35273.phpt | |
parent | 25558ffdbbcb312a10411eccbd666d3595ce5aae (diff) | |
download | php-git-8b4e1abdb04cc79b55520567a5585caa05084d11.tar.gz |
Fixed bug #35273 (Error in mapping soap - java types)
Diffstat (limited to 'ext/soap/tests/bugs/bug35273.phpt')
-rwxr-xr-x | ext/soap/tests/bugs/bug35273.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/soap/tests/bugs/bug35273.phpt b/ext/soap/tests/bugs/bug35273.phpt new file mode 100755 index 0000000000..12a555c5c3 --- /dev/null +++ b/ext/soap/tests/bugs/bug35273.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #35273 Error in mapping soap - java types +--SKIPIF-- +<?php require_once('skipif.inc'); ?> +--FILE-- +<?php +class TestSoapClient extends SoapClient { + function __doRequest($request, $location, $action, $version) { + echo $request; + exit; + } +} + +ini_set("soap.wsdl_cache_enabled", 0); +$client = new TestSoapClient(dirname(__FILE__).'/bug32941.wsdl', array("trace" => 1, 'exceptions' => 0)); +$ahoj = $client->echoPerson(array("name"=>"Name","surname"=>"Surname")); +echo "ok\n"; +?> +--EXPECT-- +<?xml version="1.0" encoding="UTF-8"?> +<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://service" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:service.EchoService" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><ns1:echoPerson><p xsi:type="ns2:Person"><name xsi:type="SOAP-ENC:string">Name</name><surname xsi:type="SOAP-ENC:string">Surname</surname></p></ns1:echoPerson></SOAP-ENV:Body></SOAP-ENV:Envelope> |