2014-09-05 07:44:07 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 08:48:51 +00:00
|
|
|
<!-- $Revision$ -->
|
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 -->
|
2011-09-30 14:21:51 +00:00
|
|
|
<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
|
2009-04-22 21:27:21 +00:00
|
|
|
SCA classes that scripts or components can call are the <classname>SCA</classname>
|
|
|
|
class itself, and the proxy classes <classname>SCA_LocalProxy</classname>
|
|
|
|
and <classname>SCA_SoapProxy</classname>.
|
2007-01-16 13:45:53 +00:00
|
|
|
</para>
|
|
|
|
|
2012-01-08 07:19:12 +00:00
|
|
|
<section xml:id="class.sca"><!-- {{{ -->
|
2007-12-26 14:50:54 +00:00
|
|
|
<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
|
2009-04-22 21:27:21 +00:00
|
|
|
<filename>SCA.php</filename> is included within an SCA component.
|
|
|
|
However, a PHP script may include
|
2007-01-16 13:45:53 +00:00
|
|
|
<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>
|
|
|
|
|
2012-01-08 07:19:12 +00:00
|
|
|
<section><!-- {{{ -->
|
2007-12-26 14:50:54 +00:00
|
|
|
&reftitle.methods;
|
2007-01-16 13:45:53 +00:00
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-12 16:47:02 +00:00
|
|
|
<link linkend="sca.getservice">
|
2007-01-16 13:45:53 +00:00
|
|
|
getService</link> - obtain a proxy for a service
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2012-01-12 16:47:02 +00:00
|
|
|
<link linkend="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
|
|
|
|
2012-01-08 07:19:12 +00:00
|
|
|
<section xml:id="class.sca-localproxy"><!-- {{{ -->
|
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
|
2009-04-22 21:27:21 +00:00
|
|
|
SCA_LocalProxy class supports the <function>createDataObject</function> method,
|
2007-01-16 13:45:53 +00:00
|
|
|
which will create an SDO according to the model defined by the
|
|
|
|
components' @types annotations. The arguments to the
|
2009-04-22 21:27:21 +00:00
|
|
|
<function>createDataObject</function> are the same as those to SDO's XML Data Access
|
2007-01-16 13:45:53 +00:00
|
|
|
Service.
|
|
|
|
</para>
|
|
|
|
|
2012-01-08 07:19:12 +00:00
|
|
|
<section><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
&reftitle.methods;
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<link
|
2012-01-13 11:29:09 +00:00
|
|
|
linkend="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
|
|
|
|
2012-01-08 07:19:12 +00:00
|
|
|
<section xml:id="class.sca-soapproxy"><!-- {{{ -->
|
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
|
2009-04-22 21:27:21 +00:00
|
|
|
will need a data factory to call. For this purpose the
|
|
|
|
<classname>SCA_SoapProxy</classname> class supports the
|
|
|
|
<function>createDataObject</function> method, which will create an
|
2007-01-16 13:45:53 +00:00
|
|
|
SDO according to the model defined within the target WSDL. The
|
2009-04-22 21:27:21 +00:00
|
|
|
arguments to the <function>createDataObject</function> are the same
|
|
|
|
as those to SDO's XML Data Access Service.
|
2007-01-16 13:45:53 +00:00
|
|
|
</para>
|
|
|
|
|
2012-01-08 07:19:12 +00:00
|
|
|
<section><!-- {{{ -->
|
2007-01-16 13:45:53 +00:00
|
|
|
&reftitle.methods;
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
<link
|
2012-01-13 11:29:09 +00:00
|
|
|
linkend="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>
|
|
|
|
|
2012-01-12 16:05:16 +00:00
|
|
|
&reference.sca.entities.SCA;
|
|
|
|
&reference.sca.entities.SCA-LocalProxy;
|
|
|
|
&reference.sca.entities.SCA-SoapProxy;
|
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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2007-01-16 13:45:53 +00:00
|
|
|
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
|
|
|
-->
|