📄 ref.sca.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>SCA Functions</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="book.sca.html">SCA</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.sca-localproxy-createdataobject.html">SCA_LocalProxy::createDataObject</a></div> <div class="up"><a href="book.sca.html">SCA</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1 class="title">SCA Functions</h1> <div class="partintro"> <div id="sca.classes" class="section"> <h2 class="title">Predefined Classes</h2> <p class="para"> Most of the interface to SCA is through the annotations within SCA components so there are few public classes and methods. The only SCA classes that scripts or components can call are the SCA class itself, and the proxy classes SCA_LocalProxy and SCA_SoapProxy. </p> <div id="sca.class" class="section"> <h2 class="title"><b class="classname">SCA</b></h2> <p class="para"> Much of the work of the SCA class is performed when the file SCA.php is included within an SCA component. However, a PHP script may include <var class="filename">SCA.php</var> and call the <b>getService()</b> method on the SCA class in order to obtain a proxy for a service. A component will not need to do this as proxies are obtained instead by defining an instance variable with the @reference annotation. </p> <p class="para"> Components that need to create an SDO to return to a caller will need a data factory to call. For this purpose the SCA class supports the <b>createDataObject()</b> method, which will create an SDO according to the model defined by the component's @types annotations. The arguments to <b>createDataObject()</b> are the same as those to SDO's XML Data Access Service. </p> <div id="sca.class.SCA.methods" class="section"> <h2 class="title">Methods</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.sca-getservice.html" class="link"> getService</a> - obtain a proxy for a service </p> </li> <li class="listitem"> <p class="para"> <a href="function.sca-createdataobject.html" class="link"> createDataObject</a> - create an SDO </p> </li> </ul> </div> </div> <div id="sca-local-proxy.class" class="section"> <h2 class="title"> <b class="classname">SCA_LocalProxy</b> </h2> <p class="para"> When <b>getService()</b> is called with the target of a local PHP component, a local proxy is returned. A local proxy is also injected into the instance variables of a component that are defined with an @reference and an @binding.php anotation. When the script or component makes calls on the local proxy, they are passed on to the target component itself. </p> <p class="para"> Components that need to create an SDO to pass to a component will need a data factory to call. For this purpose the SCA_LocalProxy class supports the createDataObject method, which will create an SDO according to the model defined by the components' @types annotations. The arguments to the createDataObject are the same as those to SDO's XML Data Access Service. </p> <div id="sca.class.SCA-LocalProxy.methods" class="section"> <h2 class="title">Methods</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.sca-localproxy-createdataobject.html" class="link"> createDataObject</a> - create an SDO </p> </li> </ul> </div> </div> <div id="sca-soap-proxy.class" class="section"> <h2 class="title"> <b class="classname">SCA_SoapProxy</b> </h2> <p class="para"> When <b>getService()</b> is called with the target of a WSDL file, a SOAP proxy is returned. A SOAP proxy is also injected into the instance variables of a component that are defined with an @reference and an @binding.soap anotations. When the script or component makes calls on the SOAP proxy, they are formed into Web service SOAP requests and passed on to the target component, with the help of the PHP Soap extension. </p> <p class="para"> Components that need to create an SDO to pass to a component will need a data factory to call. For this purpose the SCA_SoapProxy class supports the createDataObject method, which will create an SDO according to the model defined within the target WSDL. The arguments to the createDataObject are the same as those to SDO's XML Data Access Service. </p> <div id="sca.class.SCA-SoapProxy.methods" class="section"> <h2 class="title">Methods</h2> <ul class="itemizedlist"> <li class="listitem"> <p class="para"> <a href="function.sca-soapproxy-createdataobject.html" class="link"> createDataObject</a> - create an SDO </p> </li> </ul> </div> </div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.sca-localproxy-createdataobject.html">SCA_LocalProxy::createDataObject</a> 鈥
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -