Skip to content

Document SoapServer::__getLastResponse #3877

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions reference/soap/soapserver/getlastresponse.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="soapserver.getlastresponse" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SoapServer::__getLastResponse</refname>
<refpurpose>Returns last SOAP response</refpurpose>
</refnamediv>

<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="SoapServer">
<modifier>public</modifier> <type class="union"><type>string</type><type>null</type></type><methodname>SoapServer::__getLastResponse</methodname>
<void/>
</methodsynopsis>
<simpara>
Returns the XML sent in the last SOAP response.
</simpara>
<note>
<simpara>
This method works only if the <classname>SoapServer</classname> object
was created with the <literal>trace</literal> option set to &true;.
</simpara>
</note>
</refsect1>

<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>

<refsect1 role="returnvalues">
&reftitle.returnvalues;
<simpara>
The last SOAP response, as an XML string.
</simpara>
</refsect1>

<refsect1 role="examples">
&reftitle.examples;
<example>
<title>SoapServer::__getLastResponse() example</title>
<programlisting role="php">
<![CDATA[
<?php
$server = SoapServer("some.wsdl", ["trace" => 1]);
$server->handle();
echo "Response:\n" . $server->__getLastResponse() . "\n";
?>
]]>
</programlisting>
</example>
</refsect1>

</refentry>
<!-- 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:"~/.phpdoc/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
-->
1 change: 1 addition & 0 deletions reference/soap/versions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

<function name="soapserver" from="PHP 5, PHP 7, PHP 8"/>
<function name="soapserver::__construct" from="PHP 5, PHP 7, PHP 8"/>
<function name="soapserver::__getlastresponse" from="PHP 8 &gt;= 8.4"/>
<function name="soapserver::soapserver" from="PHP 5, PHP 7"/>
<function name="soapserver::setpersistence" from="PHP 5, PHP 7, PHP 8"/>
<function name="soapserver::setclass" from="PHP 5, PHP 7, PHP 8"/>
Expand Down