<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">&lt;?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the fist needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientbase class each generated ServiceType class extends this class
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'http://api.netim.com/2.0/api.wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE =&gt; true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN =&gt; 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD =&gt; 'you_secret_password',
 * );
 * etc....
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL =&gt; 'http://api.netim.com/2.0/api.wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP =&gt; \netim\ClassMap::get(),
);
/**
 * Samples for Session ServiceType
 */
$session = new \netim\ServiceType\Session($options);
/**
 * Sample call for sessionOpen operation/method
 */
if ($session-&gt;sessionOpen($idReseller, $password, $language) !== false) {
    print_r($session-&gt;getResult());
} else {
    print_r($session-&gt;getLastError());
}
/**
 * Sample call for sessionClose operation/method
 */
if ($session-&gt;sessionClose($IDSession) !== false) {
    print_r($session-&gt;getResult());
} else {
    print_r($session-&gt;getLastError());
}
/**
 * Sample call for sessionSetPreference operation/method
 */
if ($session-&gt;sessionSetPreference($IDSession, $type, $value) !== false) {
    print_r($session-&gt;getResult());
} else {
    print_r($session-&gt;getLastError());
}
/**
 * Sample call for sessionInfo operation/method
 */
if ($session-&gt;sessionInfo($IDSession) !== false) {
    print_r($session-&gt;getResult());
} else {
    print_r($session-&gt;getLastError());
}
/**
 * Samples for Query ServiceType
 */
$query = new \netim\ServiceType\Query($options);
/**
 * Sample call for queryAllSessions operation/method
 */
if ($query-&gt;queryAllSessions($IDSession) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryOpeList operation/method
 */
if ($query-&gt;queryOpeList($IDSession, $ext) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryDomainList operation/method
 */
if ($query-&gt;queryDomainList($IDSession, $filter) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryDomainPrice operation/method
 */
if ($query-&gt;queryDomainPrice($IDSession, $domain, $authID) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryDomainClaim operation/method
 */
if ($query-&gt;queryDomainClaim($IDSession, $domain) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryOpe operation/method
 */
if ($query-&gt;queryOpe($IDSession, $numOperation) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryContactList operation/method
 */
if ($query-&gt;queryContactList($IDSession, $filter, $field) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryZoneList operation/method
 */
if ($query-&gt;queryZoneList($IDSession, $domain) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryMailFwdList operation/method
 */
if ($query-&gt;queryMailFwdList($IDSession, $domain) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryWebFwdList operation/method
 */
if ($query-&gt;queryWebFwdList($IDSession, $domain) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryHostList operation/method
 */
if ($query-&gt;queryHostList($IDSession, $filter) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryResellerAccount operation/method
 */
if ($query-&gt;queryResellerAccount($IDSession) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Sample call for queryOpePending operation/method
 */
if ($query-&gt;queryOpePending($IDSession) !== false) {
    print_r($query-&gt;getResult());
} else {
    print_r($query-&gt;getLastError());
}
/**
 * Samples for Login ServiceType
 */
$login = new \netim\ServiceType\Login($options);
/**
 * Sample call for login operation/method
 */
if ($login-&gt;login($idReseller, $password, $language, $source) !== false) {
    print_r($login-&gt;getResult());
} else {
    print_r($login-&gt;getLastError());
}
/**
 * Samples for Logout ServiceType
 */
$logout = new \netim\ServiceType\Logout($options);
/**
 * Sample call for logout operation/method
 */
if ($logout-&gt;logout($IDSession) !== false) {
    print_r($logout-&gt;getResult());
} else {
    print_r($logout-&gt;getLastError());
}
/**
 * Samples for Hello ServiceType
 */
$hello = new \netim\ServiceType\Hello($options);
/**
 * Sample call for hello operation/method
 */
if ($hello-&gt;hello($IDSession) !== false) {
    print_r($hello-&gt;getResult());
} else {
    print_r($hello-&gt;getLastError());
}
/**
 * Samples for Domain ServiceType
 */
$domain = new \netim\ServiceType\Domain($options);
/**
 * Sample call for domainWhois operation/method
 */
if ($domain-&gt;domainWhois($IDSession, $domain) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainCheck operation/method
 */
if ($domain-&gt;domainCheck($IDSession, $domain) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainCreate operation/method
 */
if ($domain-&gt;domainCreate($IDSession, $domain, $idOwner, $idAdmin, $idTech, $idBilling, $ns1, $ns2, $ns3, $ns4, $ns5, $duration, $templateDNS) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainCreateLP operation/method
 */
if ($domain-&gt;domainCreateLP($IDSession, $domain, $idOwner, $idAdmin, $idTech, $idBilling, $ns1, $ns2, $ns3, $ns4, $ns5, $duration, $launchPhase) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainInfo operation/method
 */
if ($domain-&gt;domainInfo($IDSession, $domain) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainTldInfo operation/method
 */
if ($domain-&gt;domainTldInfo($IDSession, $tld) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainPriceList operation/method
 */
if ($domain-&gt;domainPriceList($IDSession) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainAuthID operation/method
 */
if ($domain-&gt;domainAuthID($IDSession, $domain, $sendtoregistrant) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainSetMembership operation/method
 */
if ($domain-&gt;domainSetMembership($IDSession, $domain, $token) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainChangeContact operation/method
 */
if ($domain-&gt;domainChangeContact($IDSession, $domain, $idAdmin, $idTech, $idBilling) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainChangeDNS operation/method
 */
if ($domain-&gt;domainChangeDNS($IDSession, $domain, $ns1, $ns2, $ns3, $ns4, $ns5) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainSetDNSSec operation/method
 */
if ($domain-&gt;domainSetDNSSec($IDSession, $domain, $enable) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainSetDNSSecExt operation/method
 */
if ($domain-&gt;domainSetDNSSecExt($IDSession, $domain, $DSRecords, $flags, $protocol, $algo, $pubKey) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainRenew operation/method
 */
if ($domain-&gt;domainRenew($IDSession, $domain, $duration) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainRelease operation/method
 */
if ($domain-&gt;domainRelease($IDSession, $domain) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainRestore operation/method
 */
if ($domain-&gt;domainRestore($IDSession, $domain) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainInternalTransfer operation/method
 */
if ($domain-&gt;domainInternalTransfer($IDSession, $domain, $authID, $idAdmin, $idTech, $idBilling, $ns1, $ns2, $ns3, $ns4, $ns5) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainTransferIn operation/method
 */
if ($domain-&gt;domainTransferIn($IDSession, $domain, $authID, $idOwner, $idAdmin, $idTech, $idBilling, $ns1, $ns2, $ns3, $ns4, $ns5) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainTransferTrade operation/method
 */
if ($domain-&gt;domainTransferTrade($IDSession, $domain, $authID, $idOwner, $idAdmin, $idTech, $idBilling, $ns1, $ns2, $ns3, $ns4, $ns5) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainTransferOwner operation/method
 */
if ($domain-&gt;domainTransferOwner($IDSession, $domain, $idOwner) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainSetPreference operation/method
 */
if ($domain-&gt;domainSetPreference($IDSession, $domain, $codePref, $enable) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainDelete operation/method
 */
if ($domain-&gt;domainDelete($IDSession, $domain, $typeDelete) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainMailFwdCreate operation/method
 */
if ($domain-&gt;domainMailFwdCreate($IDSession, $mailBox, $recipients) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainMailFwdDelete operation/method
 */
if ($domain-&gt;domainMailFwdDelete($IDSession, $mailBox) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainWebFwdCreate operation/method
 */
if ($domain-&gt;domainWebFwdCreate($IDSession, $FQDN, $target, $type, new \netim\StructType\StructOptionsFwd()) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainWebFwdDelete operation/method
 */
if ($domain-&gt;domainWebFwdDelete($IDSession, $FQDN) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainZoneCreate operation/method
 */
if ($domain-&gt;domainZoneCreate($IDSession, $domain, $subdomain, $type, $value, new \netim\StructType\StructOptionsZone()) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainZoneDelete operation/method
 */
if ($domain-&gt;domainZoneDelete($IDSession, $domain, $subdomain, $type, $value) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainZoneInit operation/method
 */
if ($domain-&gt;domainZoneInit($IDSession, $domain, $numTemplate) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Sample call for domainZoneInitSoa operation/method
 */
if ($domain-&gt;domainZoneInitSoa($IDSession, $domain, $ttl, $ttlUnity, $refresh, $refreshUnity, $retry, $retryUnity, $expire, $expireUnity, $minimum, $minimumUnity) !== false) {
    print_r($domain-&gt;getResult());
} else {
    print_r($domain-&gt;getLastError());
}
/**
 * Samples for Cancel ServiceType
 */
$cancel = new \netim\ServiceType\Cancel($options);
/**
 * Sample call for cancelOpe operation/method
 */
if ($cancel-&gt;cancelOpe($IDSession, $numOperation) !== false) {
    print_r($cancel-&gt;getResult());
} else {
    print_r($cancel-&gt;getLastError());
}
/**
 * Samples for Contact ServiceType
 */
$contact = new \netim\ServiceType\Contact($options);
/**
 * Sample call for contactCreate operation/method
 */
if ($contact-&gt;contactCreate($IDSession, new \netim\StructType\StructContact()) !== false) {
    print_r($contact-&gt;getResult());
} else {
    print_r($contact-&gt;getLastError());
}
/**
 * Sample call for contactDelete operation/method
 */
if ($contact-&gt;contactDelete($IDSession, $idContact) !== false) {
    print_r($contact-&gt;getResult());
} else {
    print_r($contact-&gt;getLastError());
}
/**
 * Sample call for contactInfo operation/method
 */
if ($contact-&gt;contactInfo($IDSession, $IDIdentifiant) !== false) {
    print_r($contact-&gt;getResult());
} else {
    print_r($contact-&gt;getLastError());
}
/**
 * Sample call for contactUpdate operation/method
 */
if ($contact-&gt;contactUpdate($IDSession, $idContact, new \netim\StructType\StructContact()) !== false) {
    print_r($contact-&gt;getResult());
} else {
    print_r($contact-&gt;getLastError());
}
/**
 * Sample call for contactOwnerUpdate operation/method
 */
if ($contact-&gt;contactOwnerUpdate($IDSession, $idContact, new \netim\StructType\StructOwnerContact()) !== false) {
    print_r($contact-&gt;getResult());
} else {
    print_r($contact-&gt;getLastError());
}
/**
 * Samples for Host ServiceType
 */
$host = new \netim\ServiceType\Host($options);
/**
 * Sample call for hostCreate operation/method
 */
if ($host-&gt;hostCreate($IDSession, $host, $ipv4, $ipv6) !== false) {
    print_r($host-&gt;getResult());
} else {
    print_r($host-&gt;getLastError());
}
/**
 * Sample call for hostDelete operation/method
 */
if ($host-&gt;hostDelete($IDSession, $host) !== false) {
    print_r($host-&gt;getResult());
} else {
    print_r($host-&gt;getLastError());
}
/**
 * Sample call for hostUpdate operation/method
 */
if ($host-&gt;hostUpdate($IDSession, $host, $ipv4, $ipv6) !== false) {
    print_r($host-&gt;getResult());
} else {
    print_r($host-&gt;getLastError());
}
/**
 * Samples for Ssl ServiceType
 */
$ssl = new \netim\ServiceType\Ssl($options);
/**
 * Sample call for sslCreate operation/method
 */
if ($ssl-&gt;sslCreate($IDSession, $prod, $duration, new \netim\StructType\StructCSR(), $validation, $IDClient) !== false) {
    print_r($ssl-&gt;getResult());
} else {
    print_r($ssl-&gt;getLastError());
}
/**
 * Sample call for sslRenew operation/method
 */
if ($ssl-&gt;sslRenew($IDSession, $IDSSL, $duration) !== false) {
    print_r($ssl-&gt;getResult());
} else {
    print_r($ssl-&gt;getLastError());
}
/**
 * Sample call for sslInfo operation/method
 */
if ($ssl-&gt;sslInfo($IDSession, $IDSSL) !== false) {
    print_r($ssl-&gt;getResult());
} else {
    print_r($ssl-&gt;getLastError());
}
/**
 * Sample call for sslReIssue operation/method
 */
if ($ssl-&gt;sslReIssue($IDSession, $IDSSL, new \netim\StructType\StructCSR(), $validation) !== false) {
    print_r($ssl-&gt;getResult());
} else {
    print_r($ssl-&gt;getLastError());
}
/**
 * Sample call for sslRevoke operation/method
 */
if ($ssl-&gt;sslRevoke($IDSession, $IDSSL) !== false) {
    print_r($ssl-&gt;getResult());
} else {
    print_r($ssl-&gt;getLastError());
}
/**
 * Sample call for sslSetPreference operation/method
 */
if ($ssl-&gt;sslSetPreference($IDSession, $IDSSL, $codePref, $enable) !== false) {
    print_r($ssl-&gt;getResult());
} else {
    print_r($ssl-&gt;getLastError());
}
</pre></body></html>