SOAP / XML-RPC

Access to the RRPproxy™ system is also possible with SOAP (Simple Object Access Protocol) and XML-RPC (Extensible Markup Language Remote Procedure Call).

The modules are delivered in PERL and PHP languages. Please set the parameter "s_opmode" to "OTE" to connect to our OT&E - environment.

Accessing the SOAP-API

For access using our SOAP-API, use the following connection parameters:

Without SSL proxy => http://api.rrpproxy.net:8080/soap
With SSL proxy => https://api.rrpproxy.net:8082/soap

Perl

For access with perl, we recommend using "SOAP::Lite", please have a look at the example below.

#!/usr/bin/perl -w

use SOAP::Lite; #+trace => debug;
use Data::Dumper;

my $soap = SOAP::Lite
-> uri('urn:Api')
-> proxy('https://api.rrpproxy.net:8082/soap')
;

my @commands = (
{
's_login' => 'demo',
's_pw' => 'demoote',
's_opmode' => 'OTE',
'command' => 'CheckDomain',
'domain' => 'example.com',
},
);

my $res = $soap->xcall(@commands);

print Dumper($res->result) . "\n";

PHP

We recommend to use the PHP-internal SOAP functions for accessing our SOAP-API with PHP. Please have a look at the example below.

<?php
$client = new SoapClient(NULL,
array(
"location" => "https://api.rrpproxy.net:8082/soap",
// "location" => "http://api.rrpproxy.net:8080/soap",
"uri" => "urn:Api",
"style" => SOAP_RPC,
"use" => SOAP_ENCODED,
)
);

$params = array(
array(
-"s_login" => "demo",
-"s_pw" => "demoote",
-"s_opmode" => "OTE",
-"command" => "CheckDomain",
-"domain" => "example.com"
-)
);

$result = $client->__call("xcall",
$params,
array(
"uri" => "urn:Api",
"soapaction" => "urn:Api#xcall")
);

print_r($result); ?>