/**
* 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 => 'main.wsdl',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
* \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
* );
* etc....
*/
require_once __DIR__ . '/vendor/autoload.php';
/**
* Minimal options
*/
$options = array(
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'main.wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
* Samples for Get ServiceType
*/
$get = new \ServiceType\Get($options);
/**
* Sample call for GetScenario operation/method
*/
if ($get->GetScenario(new \StructType\GetScenario()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Samples for Login ServiceType
*/
$login = new \ServiceType\Login($options);
/**
* Sample call for Login operation/method
*/
if ($login->Login(new \StructType\Login()) !== false) {
print_r($login->getResult());
} else {
print_r($login->getLastError());
}
/**
* Samples for Logout ServiceType
*/
$logout = new \ServiceType\Logout($options);
/**
* Sample call for Logout operation/method
*/
if ($logout->Logout(new \StructType\Logout()) !== false) {
print_r($logout->getResult());
} else {
print_r($logout->getLastError());
}
/**
* Samples for Set ServiceType
*/
$set = new \ServiceType\Set($options);
/**
* Sample call for SetBusinessDate operation/method
*/
if ($set->SetBusinessDate(new \StructType\SetBusinessDate()) !== false) {
print_r($set->getResult());
} else {
print_r($set->getLastError());
}
/**
* Sample call for SetLocaleName operation/method
*/
if ($set->SetLocaleName(new \StructType\SetLocaleName()) !== false) {
print_r($set->getResult());
} else {
print_r($set->getLastError());
}
/**
* Sample call for SetSchemaMode operation/method
*/
if ($set->SetSchemaMode(new \StructType\SetSchemaMode()) !== false) {
print_r($set->getResult());
} else {
print_r($set->getLastError());
}
/**
* Samples for ARC ServiceType
*/
$aRC = new \ServiceType\ARC($options);
/**
* Sample call for AR302000Clear operation/method
*/
if ($aRC->AR302000Clear(new \StructType\AR302000Clear()) !== false) {
print_r($aRC->getResult());
} else {
print_r($aRC->getLastError());
}
/**
* Sample call for AR303000Clear operation/method
*/
if ($aRC->AR303000Clear(new \StructType\AR303000Clear()) !== false) {
print_r($aRC->getResult());
} else {
print_r($aRC->getLastError());
}
/**
* Samples for ARG ServiceType
*/
$aRG = new \ServiceType\ARG($options);
/**
* Sample call for AR302000GetProcessStatus operation/method
*/
if ($aRG->AR302000GetProcessStatus(new \StructType\AR302000GetProcessStatus()) !== false) {
print_r($aRG->getResult());
} else {
print_r($aRG->getLastError());
}
/**
* Sample call for AR302000GetSchema operation/method
*/
if ($aRG->AR302000GetSchema(new \StructType\AR302000GetSchema()) !== false) {
print_r($aRG->getResult());
} else {
print_r($aRG->getLastError());
}
/**
* Sample call for AR303000GetProcessStatus operation/method
*/
if ($aRG->AR303000GetProcessStatus(new \StructType\AR303000GetProcessStatus()) !== false) {
print_r($aRG->getResult());
} else {
print_r($aRG->getLastError());
}
/**
* Sample call for AR303000GetSchema operation/method
*/
if ($aRG->AR303000GetSchema(new \StructType\AR303000GetSchema()) !== false) {
print_r($aRG->getResult());
} else {
print_r($aRG->getLastError());
}
/**
* Samples for ARS ServiceType
*/
$aRS = new \ServiceType\ARS($options);
/**
* Sample call for AR302000SetSchema operation/method
*/
if ($aRS->AR302000SetSchema(new \StructType\AR302000SetSchema()) !== false) {
print_r($aRS->getResult());
} else {
print_r($aRS->getLastError());
}
/**
* Sample call for AR302000Submit operation/method
*/
if ($aRS->AR302000Submit(new \StructType\AR302000Submit()) !== false) {
print_r($aRS->getResult());
} else {
print_r($aRS->getLastError());
}
/**
* Sample call for AR303000SetSchema operation/method
*/
if ($aRS->AR303000SetSchema(new \StructType\AR303000SetSchema()) !== false) {
print_r($aRS->getResult());
} else {
print_r($aRS->getLastError());
}
/**
* Sample call for AR303000Submit operation/method
*/
if ($aRS->AR303000Submit(new \StructType\AR303000Submit()) !== false) {
print_r($aRS->getResult());
} else {
print_r($aRS->getLastError());
}
/**
* Samples for ARE ServiceType
*/
$aRE = new \ServiceType\ARE($options);
/**
* Sample call for AR302000Export operation/method
*/
if ($aRE->AR302000Export(new \StructType\AR302000Export()) !== false) {
print_r($aRE->getResult());
} else {
print_r($aRE->getLastError());
}
/**
* Sample call for AR303000Export operation/method
*/
if ($aRE->AR303000Export(new \StructType\AR303000Export()) !== false) {
print_r($aRE->getResult());
} else {
print_r($aRE->getLastError());
}
/**
* Samples for ARI ServiceType
*/
$aRI = new \ServiceType\ARI($options);
/**
* Sample call for AR302000Import operation/method
*/
if ($aRI->AR302000Import(new \StructType\AR302000Import()) !== false) {
print_r($aRI->getResult());
} else {
print_r($aRI->getLastError());
}
/**
* Sample call for AR303000Import operation/method
*/
if ($aRI->AR303000Import(new \StructType\AR303000Import()) !== false) {
print_r($aRI->getResult());
} else {
print_r($aRI->getLastError());
}
/**
* Samples for CAC ServiceType
*/
$cAC = new \ServiceType\CAC($options);
/**
* Sample call for CA304000Clear operation/method
*/
if ($cAC->CA304000Clear(new \StructType\CA304000Clear()) !== false) {
print_r($cAC->getResult());
} else {
print_r($cAC->getLastError());
}
/**
* Samples for CAG ServiceType
*/
$cAG = new \ServiceType\CAG($options);
/**
* Sample call for CA304000GetProcessStatus operation/method
*/
if ($cAG->CA304000GetProcessStatus(new \StructType\CA304000GetProcessStatus()) !== false) {
print_r($cAG->getResult());
} else {
print_r($cAG->getLastError());
}
/**
* Sample call for CA304000GetSchema operation/method
*/
if ($cAG->CA304000GetSchema(new \StructType\CA304000GetSchema()) !== false) {
print_r($cAG->getResult());
} else {
print_r($cAG->getLastError());
}
/**
* Samples for CAS ServiceType
*/
$cAS = new \ServiceType\CAS($options);
/**
* Sample call for CA304000SetSchema operation/method
*/
if ($cAS->CA304000SetSchema(new \StructType\CA304000SetSchema()) !== false) {
print_r($cAS->getResult());
} else {
print_r($cAS->getLastError());
}
/**
* Sample call for CA304000Submit operation/method
*/
if ($cAS->CA304000Submit(new \StructType\CA304000Submit()) !== false) {
print_r($cAS->getResult());
} else {
print_r($cAS->getLastError());
}
/**
* Samples for CAE ServiceType
*/
$cAE = new \ServiceType\CAE($options);
/**
* Sample call for CA304000Export operation/method
*/
if ($cAE->CA304000Export(new \StructType\CA304000Export()) !== false) {
print_r($cAE->getResult());
} else {
print_r($cAE->getLastError());
}
/**
* Samples for CAI ServiceType
*/
$cAI = new \ServiceType\CAI($options);
/**
* Sample call for CA304000Import operation/method
*/
if ($cAI->CA304000Import(new \StructType\CA304000Import()) !== false) {
print_r($cAI->getResult());
} else {
print_r($cAI->getLastError());
}
/**
* Samples for GLC ServiceType
*/
$gLC = new \ServiceType\GLC($options);
/**
* Sample call for GL301000Clear operation/method
*/
if ($gLC->GL301000Clear(new \StructType\GL301000Clear()) !== false) {
print_r($gLC->getResult());
} else {
print_r($gLC->getLastError());
}
/**
* Samples for GLG ServiceType
*/
$gLG = new \ServiceType\GLG($options);
/**
* Sample call for GL301000GetProcessStatus operation/method
*/
if ($gLG->GL301000GetProcessStatus(new \StructType\GL301000GetProcessStatus()) !== false) {
print_r($gLG->getResult());
} else {
print_r($gLG->getLastError());
}
/**
* Sample call for GL301000GetSchema operation/method
*/
if ($gLG->GL301000GetSchema(new \StructType\GL301000GetSchema()) !== false) {
print_r($gLG->getResult());
} else {
print_r($gLG->getLastError());
}
/**
* Samples for GLS ServiceType
*/
$gLS = new \ServiceType\GLS($options);
/**
* Sample call for GL301000SetSchema operation/method
*/
if ($gLS->GL301000SetSchema(new \StructType\GL301000SetSchema()) !== false) {
print_r($gLS->getResult());
} else {
print_r($gLS->getLastError());
}
/**
* Sample call for GL301000Submit operation/method
*/
if ($gLS->GL301000Submit(new \StructType\GL301000Submit()) !== false) {
print_r($gLS->getResult());
} else {
print_r($gLS->getLastError());
}
/**
* Samples for GLE ServiceType
*/
$gLE = new \ServiceType\GLE($options);
/**
* Sample call for GL301000Export operation/method
*/
if ($gLE->GL301000Export(new \StructType\GL301000Export()) !== false) {
print_r($gLE->getResult());
} else {
print_r($gLE->getLastError());
}
/**
* Samples for GLI ServiceType
*/
$gLI = new \ServiceType\GLI($options);
/**
* Sample call for GL301000Import operation/method
*/
if ($gLI->GL301000Import(new \StructType\GL301000Import()) !== false) {
print_r($gLI->getResult());
} else {
print_r($gLI->getLastError());
}
/**
* Samples for INC ServiceType
*/
$iNC = new \ServiceType\INC($options);
/**
* Sample call for IN202500Clear operation/method
*/
if ($iNC->IN202500Clear(new \StructType\IN202500Clear()) !== false) {
print_r($iNC->getResult());
} else {
print_r($iNC->getLastError());
}
/**
* Sample call for IN304000Clear operation/method
*/
if ($iNC->IN304000Clear(new \StructType\IN304000Clear()) !== false) {
print_r($iNC->getResult());
} else {
print_r($iNC->getLastError());
}
/**
* Samples for ING ServiceType
*/
$iNG = new \ServiceType\ING($options);
/**
* Sample call for IN202500GetProcessStatus operation/method
*/
if ($iNG->IN202500GetProcessStatus(new \StructType\IN202500GetProcessStatus()) !== false) {
print_r($iNG->getResult());
} else {
print_r($iNG->getLastError());
}
/**
* Sample call for IN202500GetSchema operation/method
*/
if ($iNG->IN202500GetSchema(new \StructType\IN202500GetSchema()) !== false) {
print_r($iNG->getResult());
} else {
print_r($iNG->getLastError());
}
/**
* Sample call for IN304000GetProcessStatus operation/method
*/
if ($iNG->IN304000GetProcessStatus(new \StructType\IN304000GetProcessStatus()) !== false) {
print_r($iNG->getResult());
} else {
print_r($iNG->getLastError());
}
/**
* Sample call for IN304000GetSchema operation/method
*/
if ($iNG->IN304000GetSchema(new \StructType\IN304000GetSchema()) !== false) {
print_r($iNG->getResult());
} else {
print_r($iNG->getLastError());
}
/**
* Samples for INS ServiceType
*/
$iNS = new \ServiceType\INS($options);
/**
* Sample call for IN202500SetSchema operation/method
*/
if ($iNS->IN202500SetSchema(new \StructType\IN202500SetSchema()) !== false) {
print_r($iNS->getResult());
} else {
print_r($iNS->getLastError());
}
/**
* Sample call for IN202500Submit operation/method
*/
if ($iNS->IN202500Submit(new \StructType\IN202500Submit()) !== false) {
print_r($iNS->getResult());
} else {
print_r($iNS->getLastError());
}
/**
* Sample call for IN304000SetSchema operation/method
*/
if ($iNS->IN304000SetSchema(new \StructType\IN304000SetSchema()) !== false) {
print_r($iNS->getResult());
} else {
print_r($iNS->getLastError());
}
/**
* Sample call for IN304000Submit operation/method
*/
if ($iNS->IN304000Submit(new \StructType\IN304000Submit()) !== false) {
print_r($iNS->getResult());
} else {
print_r($iNS->getLastError());
}
/**
* Samples for INE ServiceType
*/
$iNE = new \ServiceType\INE($options);
/**
* Sample call for IN202500Export operation/method
*/
if ($iNE->IN202500Export(new \StructType\IN202500Export()) !== false) {
print_r($iNE->getResult());
} else {
print_r($iNE->getLastError());
}
/**
* Sample call for IN304000Export operation/method
*/
if ($iNE->IN304000Export(new \StructType\IN304000Export()) !== false) {
print_r($iNE->getResult());
} else {
print_r($iNE->getLastError());
}
/**
* Samples for INI ServiceType
*/
$iNI = new \ServiceType\INI($options);
/**
* Sample call for IN202500Import operation/method
*/
if ($iNI->IN202500Import(new \StructType\IN202500Import()) !== false) {
print_r($iNI->getResult());
} else {
print_r($iNI->getLastError());
}
/**
* Sample call for IN304000Import operation/method
*/
if ($iNI->IN304000Import(new \StructType\IN304000Import()) !== false) {
print_r($iNI->getResult());
} else {
print_r($iNI->getLastError());
}
/**
* Samples for POC ServiceType
*/
$pOC = new \ServiceType\POC($options);
/**
* Sample call for PO301000Clear operation/method
*/
if ($pOC->PO301000Clear(new \StructType\PO301000Clear()) !== false) {
print_r($pOC->getResult());
} else {
print_r($pOC->getLastError());
}
/**
* Sample call for PO302000Clear operation/method
*/
if ($pOC->PO302000Clear(new \StructType\PO302000Clear()) !== false) {
print_r($pOC->getResult());
} else {
print_r($pOC->getLastError());
}
/**
* Samples for POG ServiceType
*/
$pOG = new \ServiceType\POG($options);
/**
* Sample call for PO301000GetProcessStatus operation/method
*/
if ($pOG->PO301000GetProcessStatus(new \StructType\PO301000GetProcessStatus()) !== false) {
print_r($pOG->getResult());
} else {
print_r($pOG->getLastError());
}
/**
* Sample call for PO301000GetSchema operation/method
*/
if ($pOG->PO301000GetSchema(new \StructType\PO301000GetSchema()) !== false) {
print_r($pOG->getResult());
} else {
print_r($pOG->getLastError());
}
/**
* Sample call for PO302000GetProcessStatus operation/method
*/
if ($pOG->PO302000GetProcessStatus(new \StructType\PO302000GetProcessStatus()) !== false) {
print_r($pOG->getResult());
} else {
print_r($pOG->getLastError());
}
/**
* Sample call for PO302000GetSchema operation/method
*/
if ($pOG->PO302000GetSchema(new \StructType\PO302000GetSchema()) !== false) {
print_r($pOG->getResult());
} else {
print_r($pOG->getLastError());
}
/**
* Samples for POS ServiceType
*/
$pOS = new \ServiceType\POS($options);
/**
* Sample call for PO301000SetSchema operation/method
*/
if ($pOS->PO301000SetSchema(new \StructType\PO301000SetSchema()) !== false) {
print_r($pOS->getResult());
} else {
print_r($pOS->getLastError());
}
/**
* Sample call for PO301000Submit operation/method
*/
if ($pOS->PO301000Submit(new \StructType\PO301000Submit()) !== false) {
print_r($pOS->getResult());
} else {
print_r($pOS->getLastError());
}
/**
* Sample call for PO302000SetSchema operation/method
*/
if ($pOS->PO302000SetSchema(new \StructType\PO302000SetSchema()) !== false) {
print_r($pOS->getResult());
} else {
print_r($pOS->getLastError());
}
/**
* Sample call for PO302000Submit operation/method
*/
if ($pOS->PO302000Submit(new \StructType\PO302000Submit()) !== false) {
print_r($pOS->getResult());
} else {
print_r($pOS->getLastError());
}
/**
* Samples for POE ServiceType
*/
$pOE = new \ServiceType\POE($options);
/**
* Sample call for PO301000Export operation/method
*/
if ($pOE->PO301000Export(new \StructType\PO301000Export()) !== false) {
print_r($pOE->getResult());
} else {
print_r($pOE->getLastError());
}
/**
* Sample call for PO302000Export operation/method
*/
if ($pOE->PO302000Export(new \StructType\PO302000Export()) !== false) {
print_r($pOE->getResult());
} else {
print_r($pOE->getLastError());
}
/**
* Samples for POI ServiceType
*/
$pOI = new \ServiceType\POI($options);
/**
* Sample call for PO301000Import operation/method
*/
if ($pOI->PO301000Import(new \StructType\PO301000Import()) !== false) {
print_r($pOI->getResult());
} else {
print_r($pOI->getLastError());
}
/**
* Sample call for PO302000Import operation/method
*/
if ($pOI->PO302000Import(new \StructType\PO302000Import()) !== false) {
print_r($pOI->getResult());
} else {
print_r($pOI->getLastError());
}
/**
* Samples for SOC ServiceType
*/
$sOC = new \ServiceType\SOC($options);
/**
* Sample call for SO301000Clear operation/method
*/
if ($sOC->SO301000Clear(new \StructType\SO301000Clear()) !== false) {
print_r($sOC->getResult());
} else {
print_r($sOC->getLastError());
}
/**
* Sample call for SO302000Clear operation/method
*/
if ($sOC->SO302000Clear(new \StructType\SO302000Clear()) !== false) {
print_r($sOC->getResult());
} else {
print_r($sOC->getLastError());
}
/**
* Samples for SOG ServiceType
*/
$sOG = new \ServiceType\SOG($options);
/**
* Sample call for SO301000GetProcessStatus operation/method
*/
if ($sOG->SO301000GetProcessStatus(new \StructType\SO301000GetProcessStatus()) !== false) {
print_r($sOG->getResult());
} else {
print_r($sOG->getLastError());
}
/**
* Sample call for SO301000GetSchema operation/method
*/
if ($sOG->SO301000GetSchema(new \StructType\SO301000GetSchema()) !== false) {
print_r($sOG->getResult());
} else {
print_r($sOG->getLastError());
}
/**
* Sample call for SO302000GetProcessStatus operation/method
*/
if ($sOG->SO302000GetProcessStatus(new \StructType\SO302000GetProcessStatus()) !== false) {
print_r($sOG->getResult());
} else {
print_r($sOG->getLastError());
}
/**
* Sample call for SO302000GetSchema operation/method
*/
if ($sOG->SO302000GetSchema(new \StructType\SO302000GetSchema()) !== false) {
print_r($sOG->getResult());
} else {
print_r($sOG->getLastError());
}
/**
* Samples for SOS ServiceType
*/
$sOS = new \ServiceType\SOS($options);
/**
* Sample call for SO301000SetSchema operation/method
*/
if ($sOS->SO301000SetSchema(new \StructType\SO301000SetSchema()) !== false) {
print_r($sOS->getResult());
} else {
print_r($sOS->getLastError());
}
/**
* Sample call for SO301000Submit operation/method
*/
if ($sOS->SO301000Submit(new \StructType\SO301000Submit()) !== false) {
print_r($sOS->getResult());
} else {
print_r($sOS->getLastError());
}
/**
* Sample call for SO302000SetSchema operation/method
*/
if ($sOS->SO302000SetSchema(new \StructType\SO302000SetSchema()) !== false) {
print_r($sOS->getResult());
} else {
print_r($sOS->getLastError());
}
/**
* Sample call for SO302000Submit operation/method
*/
if ($sOS->SO302000Submit(new \StructType\SO302000Submit()) !== false) {
print_r($sOS->getResult());
} else {
print_r($sOS->getLastError());
}
/**
* Samples for SOE ServiceType
*/
$sOE = new \ServiceType\SOE($options);
/**
* Sample call for SO301000Export operation/method
*/
if ($sOE->SO301000Export(new \StructType\SO301000Export()) !== false) {
print_r($sOE->getResult());
} else {
print_r($sOE->getLastError());
}
/**
* Sample call for SO302000Export operation/method
*/
if ($sOE->SO302000Export(new \StructType\SO302000Export()) !== false) {
print_r($sOE->getResult());
} else {
print_r($sOE->getLastError());
}
/**
* Samples for SOI ServiceType
*/
$sOI = new \ServiceType\SOI($options);
/**
* Sample call for SO301000Import operation/method
*/
if ($sOI->SO301000Import(new \StructType\SO301000Import()) !== false) {
print_r($sOI->getResult());
} else {
print_r($sOI->getLastError());
}
/**
* Sample call for SO302000Import operation/method
*/
if ($sOI->SO302000Import(new \StructType\SO302000Import()) !== false) {
print_r($sOI->getResult());
} else {
print_r($sOI->getLastError());
}
Don't be shy, don't hesitate to contact us for any subject, we'll be glad to help.
This platform is provided to give developpers and non developpers a way to easily consume SOAP Web Services or share their own SOAP Web Services with extra features powered by the platform.
© 2025 Providr.IO