<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>create an SDO</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sca-localproxy.createdataobject.html">SCA_LocalProxy::createDataObject</a></div> <div class="next" style="text-align: right; float: right;"><a href="book.soap.html">SOAP</a></div> <div class="up"><a href="ref.sca.html">SCA Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="sca-soapproxy.createdataobject" class="refentry"> <div class="refnamediv"> <h1 class="refname">SCA_SoapProxy::createDataObject</h1> <p class="verinfo">(PECL SDO >= 0.5.0)</p><p class="refpurpose"><span class="refname">SCA_SoapProxy::createDataObject</span> — <span class="dc-title"> create an SDO </span></p> </div> <div class="refsect1 description" id="refsect1-sca-soapproxy.createdataobject-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="ref.sdo.html" class="type SDO_DataObject">SDO_DataObject</a></span> <span class="methodname"><strong>SCA_SoapProxy::createDataObject</strong></span> ( <span class="methodparam"> <span class="type">string</span> <code class="parameter">$type_namespace_uri</code> </span> , <span class="methodparam"> <span class="type">string</span> <code class="parameter">$type_name</code> </span> )</div> <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function is <em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, and surrounding documentation may change without notice in a future release of PHP. This function should be used at your own risk. </p></div> <p class="para"> This method is used inside either an ordinary PHP script or an SCA component that needs to create an SDO to pass to a web service. The parameters are the desired SDO's namespace URI and type name. The namespace and type must be defined in the interface of the component that is to be called, so the namespace and type must be defined within the WSDL for the web service. If the web service is also an SCA component then the types will have been defined within one of the schema files which are specified on the @types annotation within the component for which the SCA_SoapProxy object is a proxy. </p> </div> <div class="refsect1 parameters" id="refsect1-sca-soapproxy.createdataobject-parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"> <em><code class="parameter">type_namespace_uri</code></em> </span> <dd> <p class="para"> The namespace of the type. </p> </dd> </dt> <dt> <span class="term"> <em><code class="parameter">type_name</code></em> </span> <dd> <p class="para"> The name of the type. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues" id="refsect1-sca-soapproxy.createdataobject-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the newly created SDO_DataObject. </p> </div> <div class="refsect1 errors" id="refsect1-sca-soapproxy.createdataobject-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> <dl> <dt> <span class="term"> <em><code class="parameter">SDO_TypeNotFoundException</code></em> </span> <dd> <p class="para"> Thrown if the namespaceURI and typeName do not correspond to a type found in the WSDL that was used to initialise this SCA_SoapProxy. </p> </dd> </dt> </dl> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="sca-localproxy.createdataobject.html">SCA_LocalProxy::createDataObject</a></div> <div class="next" style="text-align: right; float: right;"><a href="book.soap.html">SOAP</a></div> <div class="up"><a href="ref.sca.html">SCA Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>