<slide title="Document/Literal Example">
<blurb>Document/Literal without WSDL possible also:</blurb>
<example type="php" result="1" fontsize='1.0em'>
<![CDATA[<?php
include("SOAP/Client.php");

$endpoint = 'http://mssoapinterop.org/stkv3/wsdl/interopTestDocLit.wsdl';
$client =& new SOAP_Client($endpoint);

$echoStringParam =& new SOAP_Value(
        '{http://soapinterop.org/xsd}echoStringParam',
        'string','Hello World');
        
$return = $client->call("echoString", 
                $v = array("echoStringParam"=>$echoStringParam), 
                array('namespace'=>'http://soapinterop.org/WSDLInteropTestDocLit',
                    'soapaction'=>'http://soapinterop.org/',
                    'style'=>'document',
                    'use'=>'literal' ));

print $return;
?>]]>
</example>

</slide>
