Closed CreateWithCoding closed 4 years ago
https://github.com/WsdlToPhp/PackageGenerator
perfectly works: and i don't make myself dependent on a company or a single person again
@michabbb I can't see any examples of making a simple call with it. This just gives an error "The web service eBayAPI is not properly configured or not found and is disabled."
$options = array(
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => '/path/to/1131.wsdl',
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
\WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CACHE_WSDL => WSDL_CACHE_BOTH,
);
$gete = new \EbaySdk\ServiceType\Gete($options);
$requestCredentials = new CustomSecurityHeaderType();
$requestCredentials->setEBayAuthToken($token);
$gete->setSoapHeaderRequesterCredentials($requestCredentials);
$r = new GeteBayOfficialTimeRequestType();
if ($gete->GeteBayOfficialTime($r) !== false) {
print_r($gete->getResult());
} else {
print_r($gete->getLastError());
}
Use this to download whatever eBay API you desire: https://sdk.intradesys.com/ebay_api_sdk_online_generator You are welcome!