1--TEST--
2Serialize typed string (document/literal)
3--FILE--
4<?php
5
6require_once dirname(__FILE__) . '/../test.utility.php';
7require_once 'SOAP/Client.php';
8$soap_client = new SOAP_Client('');
9$soap_client->setStyle('document');
10$soap_client->setUse('literal');
11
12$p = array(new SOAP_Value('inputString', 'string', 'hello world'));
13echo $soap_client->_generate('echoString', $p);
14
15?>
16--EXPECT--
17<?xml version="1.0" encoding="UTF-8"?>
18<SOAP-ENV:Envelope
19 xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
20 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
23<SOAP-ENV:Body>
24<inputString>hello world</inputString>
25</SOAP-ENV:Body>
26</SOAP-ENV:Envelope>
27