1--TEST-- 2SOAP Interop Round3 GroupD Compound2 001 (php/wsdl): echoEmployee 3--EXTENSIONS-- 4soap 5--INI-- 6precision=14 7soap.wsdl_cache_enabled=0 8--FILE-- 9<?php 10class Person { 11 function __construct(public $Age, public $ID, public $Name, public $Male) {} 12} 13class Employee { 14 function __construct(public $person, public $ID, public $salary) {} 15} 16$person = new Person(32,12345,'Shane',TRUE); 17$employee = new Employee($person,12345,1000000.00); 18 19$client = new SoapClient(__DIR__."/round3_groupD_compound2.wsdl",array("trace"=>1,"exceptions"=>0)); 20$client->echoEmployee($employee); 21echo $client->__getlastrequest(); 22$HTTP_RAW_POST_DATA = $client->__getlastrequest(); 23include("round3_groupD_compound2.inc"); 24echo "ok\n"; 25?> 26--EXPECT-- 27<?xml version="1.0" encoding="UTF-8"?> 28<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> 29<?xml version="1.0" encoding="UTF-8"?> 30<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> 31ok 32