2007-01-16 13:45:53 +00:00
|
|
|
<?xml version='1.0' encoding='iso-8859-1'?>
|
2008-06-05 05:03:04 +00:00
|
|
|
<!-- $Revision: 1.11 $ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<reference xml:id="ref.sca" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<title>SCA &Functions;</title>
|
2007-01-16 13:45:53 +00:00
|
|
|
|
|
|
|
<partintro>
|
2007-12-26 14:50:54 +00:00
|
|
|
<!-- FIXME: This needs to be upgraded to the new oo-markup -->
|
|
|
|
<!-- Class definition section -->
|
|
|
|
<section xml:id='sca.classes'><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
&reftitle.classes;
|
|
|
|
<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.
|
|
|
|
</para>
|
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<section xml:id='sca.class'><!-- {{{ -->
|
|
|
|
<title><classname>SCA</classname></title>
|
2007-01-16 13:45:53 +00:00
|
|
|
<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
|
|
|
|
<filename>SCA.php</filename> and call the
|
|
|
|
<function>getService</function> 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.
|
|
|
|
</para>
|
|
|
|
<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
|
|
|
|
<function>createDataObject</function> method, which will
|
|
|
|
create an SDO according to the model defined by the component's
|
|
|
|
@types annotations. The arguments to
|
|
|
|
<function>createDataObject</function> are the same as those to
|
|
|
|
SDO's XML Data Access Service.
|
|
|
|
</para>
|
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<section xml:id='sca.class.SCA.methods'><!-- {{{ -->
|
|
|
|
&reftitle.methods;
|
2007-01-16 13:45:53 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-06-05 05:03:04 +00:00
|
|
|
<link linkend='function.sca-getservice'>
|
2007-01-16 13:45:53 +00:00
|
|
|
getService</link> - obtain a proxy for a service
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-06-05 05:03:04 +00:00
|
|
|
<link linkend='function.sca-createdataobject'>
|
2007-01-16 13:45:53 +00:00
|
|
|
createDataObject</link> - create an SDO
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2007-12-26 14:50:54 +00:00
|
|
|
</section> <!-- }}} -->
|
|
|
|
</section><!-- }}} -->
|
2007-01-16 13:45:53 +00:00
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<section xml:id='sca-local-proxy.class'><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
<title>
|
|
|
|
<classname>SCA_LocalProxy</classname>
|
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
When
|
|
|
|
<function>getService</function> 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.
|
|
|
|
</para>
|
|
|
|
<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.
|
|
|
|
</para>
|
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<section xml:id='sca.class.SCA-LocalProxy.methods'><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
&reftitle.methods;
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<link
|
2008-06-05 05:03:04 +00:00
|
|
|
linkend='function.sca-localproxy-createdataobject'>
|
2007-01-16 13:45:53 +00:00
|
|
|
createDataObject</link> - create an SDO
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2007-12-26 14:50:54 +00:00
|
|
|
</section><!-- }}} -->
|
|
|
|
</section><!-- }}} -->
|
2007-01-16 13:45:53 +00:00
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<section xml:id='sca-soap-proxy.class'><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
<title>
|
|
|
|
<classname>SCA_SoapProxy</classname>
|
|
|
|
</title>
|
|
|
|
<para>
|
|
|
|
When
|
|
|
|
<function>getService</function> 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
|
2007-06-15 08:04:43 +00:00
|
|
|
@reference and an @binding.soap anotations. When the script or
|
2007-01-16 13:45:53 +00:00
|
|
|
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.
|
|
|
|
</para>
|
|
|
|
<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.
|
|
|
|
</para>
|
|
|
|
|
2007-12-26 14:50:54 +00:00
|
|
|
<section xml:id='sca.class.SCA-SoapProxy.methods'><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
&reftitle.methods;
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<link
|
2008-06-05 05:03:04 +00:00
|
|
|
linkend='function.sca-soapproxy-createdataobject'>
|
2007-01-16 13:45:53 +00:00
|
|
|
createDataObject</link> - create an SDO
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
2007-12-26 14:50:54 +00:00
|
|
|
</section><!-- }}} -->
|
|
|
|
</section><!-- }}} -->
|
2007-01-16 13:45:53 +00:00
|
|
|
</section>
|
2007-12-26 14:50:54 +00:00
|
|
|
<!-- }}} -->
|
|
|
|
|
2007-01-16 13:45:53 +00:00
|
|
|
</partintro>
|
|
|
|
|
2007-12-10 17:06:11 +00:00
|
|
|
&reference.sca.entities.functions;
|
2007-01-16 13:45:53 +00:00
|
|
|
|
|
|
|
</reference>
|
2007-12-26 14:50:54 +00:00
|
|
|
|
2007-01-16 13:45:53 +00:00
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
2007-06-20 22:25:43 +00:00
|
|
|
-->
|