<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://secure.freeside.biz/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Freeside%3A1.9%3ADocumentation%3ADeveloper%2FFS%2FSelfService%2Fphp%2Ffreeside.class.php</id>
		<title>Freeside:1.9:Documentation:Developer/FS/SelfService/php/freeside.class.php - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://secure.freeside.biz/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Freeside%3A1.9%3ADocumentation%3ADeveloper%2FFS%2FSelfService%2Fphp%2Ffreeside.class.php"/>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.9:Documentation:Developer/FS/SelfService/php/freeside.class.php&amp;action=history"/>
		<updated>2026-04-06T05:37:04Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.27.7</generator>

	<entry>
		<id>https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.9:Documentation:Developer/FS/SelfService/php/freeside.class.php&amp;diff=5638&amp;oldid=prev</id>
		<title>Huntsberg: New page: &lt;pre&gt; &lt;?php class FreesideSelfService  {      //Change this to match the location of your selfservice xmlrpc.cgi or daemon     #var $URL = 'https://localhost/selfservice/xmlrpc.cgi';     v...</title>
		<link rel="alternate" type="text/html" href="https://secure.freeside.biz/mediawiki/index.php?title=Freeside:1.9:Documentation:Developer/FS/SelfService/php/freeside.class.php&amp;diff=5638&amp;oldid=prev"/>
				<updated>2010-04-07T02:22:31Z</updated>
		
		<summary type="html">&lt;p&gt;New page: &amp;lt;pre&amp;gt; &amp;lt;?php class FreesideSelfService  {      //Change this to match the location of your selfservice xmlrpc.cgi or daemon     #var $URL = &amp;#039;https://localhost/selfservice/xmlrpc.cgi&amp;#039;;     v...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
class FreesideSelfService  {&lt;br /&gt;
&lt;br /&gt;
    //Change this to match the location of your selfservice xmlrpc.cgi or daemon&lt;br /&gt;
    #var $URL = 'https://localhost/selfservice/xmlrpc.cgi';&lt;br /&gt;
    var $URL = 'http://localhost/selfservice/xmlrpc.cgi';&lt;br /&gt;
&lt;br /&gt;
    function FreesideSelfService() {&lt;br /&gt;
      $this;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public function __call($name, $arguments) {&lt;br /&gt;
&lt;br /&gt;
        error_log(&amp;quot;[FreesideSelfService] $name called, sending to &amp;quot;. $this-&amp;gt;URL);&lt;br /&gt;
&lt;br /&gt;
        $request = xmlrpc_encode_request(&amp;quot;FS.SelfService.XMLRPC.$name&amp;quot;, $arguments);&lt;br /&gt;
        $context = stream_context_create( array( 'http' =&amp;gt; array(&lt;br /&gt;
            'method' =&amp;gt; &amp;quot;POST&amp;quot;,&lt;br /&gt;
            'header' =&amp;gt; &amp;quot;Content-Type: text/xml&amp;quot;,&lt;br /&gt;
            'content' =&amp;gt; $request&lt;br /&gt;
        )));&lt;br /&gt;
        $file = file_get_contents($this-&amp;gt;URL, false, $context);&lt;br /&gt;
        $response = xmlrpc_decode($file);&lt;br /&gt;
        if (xmlrpc_is_fault($response)) {&lt;br /&gt;
            trigger_error(&amp;quot;[FreesideSelfService] XML-RPC communication error: $response[faultString] ($response[faultCode])&amp;quot;);&lt;br /&gt;
        } else {&lt;br /&gt;
            //error_log(&amp;quot;[FreesideSelfService] $response&amp;quot;);&lt;br /&gt;
            return $response;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Huntsberg</name></author>	</entry>

	</feed>