<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://api-wiki.apps.rackspace.com/api-wiki/index.php?action=history&amp;feed=atom&amp;title=PHPCommandLineSoap</id>
		<title>PHPCommandLineSoap - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://api-wiki.apps.rackspace.com/api-wiki/index.php?action=history&amp;feed=atom&amp;title=PHPCommandLineSoap"/>
		<link rel="alternate" type="text/html" href="http://api-wiki.apps.rackspace.com/api-wiki/index.php?title=PHPCommandLineSoap&amp;action=history"/>
		<updated>2026-05-02T18:37:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.1</generator>

	<entry>
		<id>http://api-wiki.apps.rackspace.com/api-wiki/index.php?title=PHPCommandLineSoap&amp;diff=202&amp;oldid=prev</id>
		<title>APIAdmin: New page: This will work with pre-compiled SOAP and has been tested with PHP 5.2.1.  Setting the $debug variable to true and running the commandline tool will display the request headers and message...</title>
		<link rel="alternate" type="text/html" href="http://api-wiki.apps.rackspace.com/api-wiki/index.php?title=PHPCommandLineSoap&amp;diff=202&amp;oldid=prev"/>
				<updated>2008-08-25T23:58:22Z</updated>
		
		<summary type="html">&lt;p&gt;New page: This will work with pre-compiled SOAP and has been tested with PHP 5.2.1.  Setting the $debug variable to true and running the commandline tool will display the request headers and message...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This will work with pre-compiled SOAP and has been tested with PHP 5.2.1.  Setting the $debug variable to true and running the commandline tool will display the request headers and message body.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
&lt;br /&gt;
$debug = false;&lt;br /&gt;
&lt;br /&gt;
if ((count($argv)==1)||($argv[1]==&amp;quot;-h&amp;quot;)||($arg[1]==&amp;quot;--help&amp;quot;)) {&lt;br /&gt;
  echo &amp;quot;Written by Kirk Averett for Webmail.us in 2007\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Usage: php soapinterface.php wsdl function param1 param2 param3 ...\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;For example:\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;  php soapinterface.php https://secure.webmail.us/mail4/soap/soap_server.php?wsdl ping Hello\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Produces:\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Hello\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Another example:\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;  php soapinterface.php https://admin.webmail.us/excedentsoap/excedentsoap.wsdl GetUserMailForward /\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;                      admin password somedomain someuser '' 0\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Produces:\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;Array\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;(\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;    [Result] =&amp;gt; 1\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;    [ForwardEmailString] =&amp;gt; someforward\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;    [SaveCopy] =&amp;gt; 0\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;)\n&amp;quot;;&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  exit;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
array_shift($argv);&lt;br /&gt;
$wsdl = array_shift($argv);&lt;br /&gt;
$client = new SoapClient($wsdl, array('trace' =&amp;gt; true, 'exceptions' =&amp;gt; true))&lt;br /&gt;
    or die('Counldn\'t initilize SOAP client\n');&lt;br /&gt;
$func = array_shift($argv);&lt;br /&gt;
$res = $client-&amp;gt;__soapCall($func,$argv);&lt;br /&gt;
print_r($res);&lt;br /&gt;
echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
if ($debug) {&lt;br /&gt;
  $headers = $client-&amp;gt;__getLastRequestHeaders();&lt;br /&gt;
  echo &amp;quot;---------- Headers from the request:\n&amp;quot;;&lt;br /&gt;
  print_r($headers);&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
  $request = $client-&amp;gt;__getLastRequest();&lt;br /&gt;
  echo &amp;quot;---------- Body of the request:\n&amp;quot;;&lt;br /&gt;
  print_r($request);&lt;br /&gt;
  echo &amp;quot;\n&amp;quot;;&lt;br /&gt;
}&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>APIAdmin</name></author>	</entry>

	</feed>