/**
* 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 => 'http://ws.axastudiotest.axa.cz/ase/AxaStudioExtended.svc?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 => 'http://ws.axastudiotest.axa.cz/ase/AxaStudioExtended.svc?wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
* Samples for Simulate ServiceType
*/
$simulate = new Simulate($options);
/**
* Sample call for Simulate operation/method
*/
if ($simulate->Simulate(new Simulate()) !== false) {
print_r($simulate->getResult());
} else {
print_r($simulate->getLastError());
}
/**
* Samples for Create ServiceType
*/
$create = new Create($options);
/**
* Sample call for CreateContract operation/method
*/
if ($create->CreateContract(new CreateContract()) !== false) {
print_r($create->getResult());
} else {
print_r($create->getLastError());
}
/**
* Sample call for CreateOffer operation/method
*/
if ($create->CreateOffer(new CreateOffer()) !== false) {
print_r($create->getResult());
} else {
print_r($create->getLastError());
}
/**
* Samples for Change ServiceType
*/
$change = new Change($options);
/**
* Sample call for ChangeContract operation/method
*/
if ($change->ChangeContract(new ChangeContract()) !== false) {
print_r($change->getResult());
} else {
print_r($change->getLastError());
}
/**
* Samples for Register ServiceType
*/
$register = new Register($options);
/**
* Sample call for RegisterContract operation/method
*/
if ($register->RegisterContract(new RegisterContract()) !== false) {
print_r($register->getResult());
} else {
print_r($register->getLastError());
}
/**
* Samples for Confirm ServiceType
*/
$confirm = new Confirm($options);
/**
* Sample call for ConfirmContract operation/method
*/
if ($confirm->ConfirmContract(new ConfirmContract()) !== false) {
print_r($confirm->getResult());
} else {
print_r($confirm->getLastError());
}
/**
* Samples for Revoke ServiceType
*/
$revoke = new Revoke($options);
/**
* Sample call for RevokeContract operation/method
*/
if ($revoke->RevokeContract(new RevokeContract()) !== false) {
print_r($revoke->getResult());
} else {
print_r($revoke->getLastError());
}
/**
* Samples for Get ServiceType
*/
$get = new Get($options);
/**
* Sample call for GetContractDocuments operation/method
*/
if ($get->GetContractDocuments(new GetContractDocuments()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetProductList operation/method
*/
if ($get->GetProductList(new GetProductList()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCodeLists operation/method
*/
if ($get->GetCodeLists(new GetCodeLists()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetCodeListItems operation/method
*/
if ($get->GetCodeListItems(new GetCodeListItems()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetItemsDefinition operation/method
*/
if ($get->GetItemsDefinition(new GetItemsDefinition()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetContractsInfo operation/method
*/
if ($get->GetContractsInfo(new GetContractsInfo()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Sample call for GetContractInfo operation/method
*/
if ($get->GetContractInfo(new GetContractInfo()) !== false) {
print_r($get->getResult());
} else {
print_r($get->getLastError());
}
/**
* Samples for Upload ServiceType
*/
$upload = new Upload($options);
/**
* Sample call for UploadSignedContract operation/method
*/
if ($upload->UploadSignedContract(new UploadSignedContract()) !== false) {
print_r($upload->getResult());
} else {
print_r($upload->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