26 #require_once 'Zend/Soap/Server.php'; 31 #require_once 'Zend/Soap/Client/Local.php'; 36 #require_once 'Zend/Soap/Client/Common.php'; 151 if (!extension_loaded(
'soap')) {
152 #require_once 'Zend/Soap/Client/Exception.php'; 156 if ($wsdl !==
null) {
172 $this->_wsdl = $wsdl;
173 $this->_soapClient =
null;
246 case 'proxy_password':
258 case 'stream_context':
282 #require_once 'Zend/Soap/Client/Exception.php'; 329 if (in_array($key, array(
'user_agent',
'cache_wsdl',
'compression',
'exceptions'))) {
352 if (!in_array(
$version, array(SOAP_1_1, SOAP_1_2))) {
353 #require_once 'Zend/Soap/Client/Exception.php'; 358 $this->_soapClient =
null;
384 #require_once 'Zend/Soap/Client/Exception.php'; 389 $this->_classmap = $classmap;
391 $this->_soapClient =
null;
415 if (!is_string($encoding)) {
416 #require_once 'Zend/Soap/Client/Exception.php'; 420 $this->_encoding = $encoding;
422 $this->_soapClient =
null;
446 $scheme = parse_url($urn, PHP_URL_SCHEME);
447 if ($scheme ===
false || $scheme ===
null) {
448 #require_once 'Zend/Soap/Client/Exception.php'; 470 $this->_soapClient =
null;
497 $this->_location = $location;
499 $this->_soapClient =
null;
523 if (!in_array($style, array(SOAP_RPC, SOAP_DOCUMENT))) {
524 #require_once 'Zend/Soap/Client/Exception.php'; 528 $this->_style = $style;
530 $this->_soapClient =
null;
554 if (!in_array($use, array(SOAP_ENCODED, SOAP_LITERAL))) {
555 #require_once 'Zend/Soap/Client/Exception.php'; 561 $this->_soapClient =
null;
584 $this->_login = $login;
586 $this->_soapClient =
null;
609 $this->_password = $password;
611 $this->_soapClient =
null;
634 $this->_proxy_host = $proxyHost;
636 $this->_soapClient =
null;
659 $this->_proxy_port = (int)$proxyPort;
661 $this->_soapClient =
null;
684 $this->_proxy_login = $proxyLogin;
686 $this->_soapClient =
null;
709 $this->_proxy_password = $proxyPassword;
711 $this->_soapClient =
null;
726 #require_once 'Zend/Soap/Client/Exception.php'; 730 $this->_local_cert = $localCert;
732 $this->_soapClient =
null;
755 $this->_passphrase = $passphrase;
757 $this->_soapClient =
null;
780 if ($compressionOptions ===
null) {
781 $this->_compression =
null;
783 $this->_compression = (int)$compressionOptions;
785 $this->_soapClient =
null;
820 #require_once "Zend/Soap/Client/Exception.php"; 822 "Invalid stream context resource given." 826 $this->_stream_context = $context;
848 $this->_features = $feature;
850 $this->_soapClient =
null;
872 if ($caching ===
null) {
873 $this->_cache_wsdl =
null;
875 $this->_cache_wsdl = (int)$caching;
898 if ($userAgent ===
null) {
899 $this->_user_agent =
null;
901 $this->_user_agent = (string)$userAgent;
929 $this->_exceptions = (bool) $exceptions;
956 if ($this->_soapClient !==
null) {
957 return $this->_soapClient->__getLastRequest();
970 if ($this->_soapClient !==
null) {
971 return $this->_soapClient->__getLastResponse();
984 if ($this->_soapClient !==
null) {
985 return $this->_soapClient->__getLastRequestHeaders();
998 if ($this->_soapClient !==
null) {
999 return $this->_soapClient->__getLastResponseHeaders();
1032 if ($one_way ==
null) {
1049 if ($wsdl ==
null) {
1050 if (!isset(
$options[
'location'])) {
1051 #require_once 'Zend/Soap/Client/Exception.php'; 1055 #require_once 'Zend/Soap/Client/Exception.php'; 1060 #require_once 'Zend/Soap/Client/Exception.php'; 1064 #require_once 'Zend/Soap/Client/Exception.php'; 1070 $this->_soapClient =
new Zend_Soap_Client_Common(array($this,
'_doRequest'), $wsdl,
$options);
1110 $this->_permanentSoapInputHeaders[] = $header;
1112 $this->_soapInputHeaders[] = $header;
1125 $this->_permanentSoapInputHeaders = array();
1126 $this->_soapInputHeaders = array();
1152 $this->_lastMethod =
$name;
1154 $soapHeaders = array_merge($this->_permanentSoapInputHeaders, $this->_soapInputHeaders);
1158 (count($soapHeaders) > 0)? $soapHeaders :
null,
1159 $this->_soapOutputHeaders);
1162 $this->_soapInputHeaders = array();
1176 if ($this->
getWsdl() ==
null) {
1177 #require_once 'Zend/Soap/Client/Exception.php'; 1182 return $soapClient->__getFunctions();
1200 if ($this->
getWsdl() ==
null) {
1201 #require_once 'Zend/Soap/Client/Exception.php'; 1207 return $soapClient->__getTypes();
1216 $this->_soapClient = $soapClient;
1225 if ($this->_soapClient ==
null) {
1239 $soapClient->__setCookie($cookieName, $cookieValue);
setCookie($cookieName, $cookieValue=null)
setProxyLogin($proxyLogin)
setHttpsCertificate($localCert)
setStreamContext($context)
__call($name, $arguments)
call_user_func($callable, $param)
setClassmap(array $classmap)
setHttpsCertPassphrase($passphrase)
setProxyPassword($proxyPassword)
$_option $_optionId $class
setExceptions($exceptions)
_doRequest(Zend_Soap_Client_Common $client, $request, $location, $action, $version, $one_way=null)
setCompressionOptions($compressionOptions)
setSoapClient(SoapClient $soapClient)
setSoapFeatures($feature)
setHttpPassword($password)
__construct($wsdl=null, $options=null)
_preProcessResult($result)
addSoapInputHeader(SoapHeader $header, $permanent=false)
$_permanentSoapInputHeaders
getLastSoapOutputHeaderObjects()
_preProcessArguments($arguments)
if(!isset($_GET['name'])) $name