xref: /PHP-5.5/ext/soap/tests/bugs/bug50997.phpt (revision 7e816c09)
1--TEST--
2Bug #50997 (SOAP Error when trying to submit 2nd Element of a choice)
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--INI--
6soap.wsdl_cache_enabled=0
7--FILE--
8<?php
9$soapClient = new SoapClient(__DIR__ . '/bug50997.wsdl', array('trace' => 1, 'exceptions'=>0));
10$params = array('code'=>'foo');
11$soapClient->newOperation($params);
12echo $soapClient->__getLastRequest();
13?>
14--EXPECT--
15<?xml version="1.0" encoding="UTF-8"?>
16<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.example.org/service2/"><SOAP-ENV:Body><ns1:NewOperation><code>foo</code></ns1:NewOperation></SOAP-ENV:Body></SOAP-ENV:Envelope>
17