Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 3040

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>SoapVar::SoapVar</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="SOAP Functions"
HREF="ref.soap.html"><LINK
REL="PREVIOUS"
TITLE="SoapServer::setPersistence"
HREF="function.soapserver-setpersistence.html"><LINK
REL="NEXT"
TITLE="is_soap_fault"
HREF="function.is-soap-fault.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.soapserver-setpersistence.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.is-soap-fault.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.SoapVar-SoapVar"
></A
>SoapVar::SoapVar</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN104881"
></A
><P
>    (no version information, might be only in CVS)</P
>SoapVar::SoapVar&nbsp;--&nbsp;
     SoapVar constructor
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN104884"
></A
><H2
>Description</H2
>object <B
CLASS="methodname"
>SoapVar::SoapVar</B
> ( mixed data, int encoding [, string type_name [, string type_namespace [, string node_name [, string node_namespace]]]])<BR
></BR
><P
>&#13;      SoapVar is a special low-level class for encoding parameters and returning
      values in non-WSDL mode. It is just a data holder and does not have any 
      special methods except the constructor. It is useful when you would like to set
      the type property in SOAP request or response. The constructor takes
      <VAR
CLASS="parameter"
>data</VAR
> to pass or return, <VAR
CLASS="parameter"
>encoding</VAR
>
      ID to encode it  (see <VAR
CLASS="literal"
>XSD_...</VAR
> constants) and as option type
      name and namespace and XML node name and namespace.
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN104912"
></A
><P
><B
>Exemplu 1. Some examples</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br /></font><font color="#007700">class </font><font color="#0000BB">SOAPStruct </font><font color="#007700">{<br />&nbsp;&nbsp;&nbsp;&nbsp;function </font><font color="#0000BB">SOAPStruct</font><font color="#007700">(</font><font color="#0000BB">$s</font><font color="#007700">, </font><font color="#0000BB">$i</font><font color="#007700">, </font><font color="#0000BB">$f</font><font color="#007700">) <br />&nbsp;&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$this</font><font color="#007700">-&gt;</font><font color="#0000BB">varString </font><font color="#007700">= </font><font color="#0000BB">$s</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$this</font><font color="#007700">-&gt;</font><font color="#0000BB">varInt </font><font color="#007700">= </font><font color="#0000BB">$i</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#0000BB">$this</font><font color="#007700">-&gt;</font><font color="#0000BB">varFloat </font><font color="#007700">= </font><font color="#0000BB">$f</font><font color="#007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;}<br />}<br /></font><font color="#0000BB">$client </font><font color="#007700">= new </font><font color="#0000BB">SoapClient</font><font color="#007700">(</font><font color="#0000BB">null</font><font color="#007700">, array(</font><font color="#DD0000">'location' </font><font color="#007700">=&gt; </font><font color="#DD0000">"http://localhost/soap.php"</font><font color="#007700">,<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#DD0000">'uri'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font><font color="#007700">=&gt; </font><font color="#DD0000">"http://test-uri/"</font><font color="#007700">));<br /></font><font color="#0000BB">$struct </font><font color="#007700">= new </font><font color="#0000BB">SOAPStruct</font><font color="#007700">(</font><font color="#DD0000">'arg'</font><font color="#007700">, </font><font color="#0000BB">34</font><font color="#007700">, </font><font color="#0000BB">325.325</font><font color="#007700">);<br /></font><font color="#0000BB">$soapstruct </font><font color="#007700">= new </font><font color="#0000BB">SoapVar</font><font color="#007700">(</font><font color="#0000BB">$struct</font><font color="#007700">, </font><font color="#0000BB">SOAP_ENC_OBJECT</font><font color="#007700">, </font><font color="#DD0000">"SOAPStruct"</font><font color="#007700">, </font><font color="#DD0000">"http://soapinterop.org/xsd"</font><font color="#007700">);<br /></font><font color="#0000BB">$client</font><font color="#007700">-&gt;</font><font color="#0000BB">echoStruct</font><font color="#007700">(new </font><font color="#0000BB">SoapParam</font><font color="#007700">(</font><font color="#0000BB">$soapstruct</font><font color="#007700">, </font><font color="#DD0000">"inputStruct"</font><font color="#007700">));<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
    </P
><P
>&#13;     See also
     <B
CLASS="function"
>SoapClient::__call()</B
> and
     <B
CLASS="function"
>SoapParam::SoapParam()</B
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.soapserver-setpersistence.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.is-soap-fault.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>SoapServer::setPersistence</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.soap.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>is_soap_fault</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>