Annotation of embedaddon/php/ext/soap/tests/interop/Round3/GroupD/r3_groupD_compound2_001w.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: SOAP Interop Round3 GroupD Compound2 001 (php/wsdl): echoEmployee
3: --SKIPIF--
4: <?php require_once('skipif.inc'); ?>
5: --INI--
6: precision=14
7: soap.wsdl_cache_enabled=0
8: --FILE--
9: <?php
10: class Person {
11: function Person($a=NULL, $i=NULL, $n=NULL, $m=NULL) {
12: $this->Age = $a;
13: $this->ID = $i;
14: $this->Name = $n;
15: $this->Male = $m;
16: }
17: }
18: class Employee {
19: function Employee($person=NULL,$id=NULL,$salary=NULL) {
20: $this->person = $person;
21: $this->ID = $id;
22: $this->salary = $salary;
23: }
24: }
25: $person = new Person(32,12345,'Shane',TRUE);
26: $employee = new Employee($person,12345,1000000.00);
27:
28: $client = new SoapClient(dirname(__FILE__)."/round3_groupD_compound2.wsdl",array("trace"=>1,"exceptions"=>0));
29: $client->echoEmployee($employee);
30: echo $client->__getlastrequest();
31: $HTTP_RAW_POST_DATA = $client->__getlastrequest();
32: include("round3_groupD_compound2.inc");
33: echo "ok\n";
34: ?>
35: --EXPECT--
36: <?xml version="1.0" encoding="UTF-8"?>
37: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/person" xmlns:ns2="http://soapinterop.org/employee"><SOAP-ENV:Body><ns2:x_Employee><ns2:person><ns1:Name>Shane</ns1:Name><ns1:Male>true</ns1:Male></ns2:person><ns2:salary>1000000</ns2:salary><ns2:ID>12345</ns2:ID></ns2:x_Employee></SOAP-ENV:Body></SOAP-ENV:Envelope>
38: <?xml version="1.0" encoding="UTF-8"?>
39: <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://soapinterop.org/person" xmlns:ns2="http://soapinterop.org/employee"><SOAP-ENV:Body><ns2:result_Employee><ns2:person><ns1:Name>Shane</ns1:Name><ns1:Male>true</ns1:Male></ns2:person><ns2:salary>1000000</ns2:salary><ns2:ID>12345</ns2:ID></ns2:result_Employee></SOAP-ENV:Body></SOAP-ENV:Envelope>
40: ok
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>