import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage Client
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Client.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Client.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/** Zend_Soap_Server */
|
||||
@ -82,6 +82,7 @@ class Zend_Soap_Client
|
||||
protected $_stream_context = null;
|
||||
protected $_features = null;
|
||||
protected $_cache_wsdl = null;
|
||||
protected $_user_agent = null;
|
||||
|
||||
/**
|
||||
* WSDL used to access server
|
||||
@ -256,6 +257,11 @@ class Zend_Soap_Client
|
||||
case 'cache_wsdl':
|
||||
$this->setWsdlCache($value);
|
||||
break;
|
||||
case 'useragent':
|
||||
case 'userAgent':
|
||||
case 'user_agent':
|
||||
$this->setUserAgent($value);
|
||||
break;
|
||||
|
||||
// Not used now
|
||||
// case 'connection_timeout':
|
||||
@ -302,6 +308,7 @@ class Zend_Soap_Client
|
||||
$options['stream_context'] = $this->getStreamContext();
|
||||
$options['cache_wsdl'] = $this->getWsdlCache();
|
||||
$options['features'] = $this->getSoapFeatures();
|
||||
$options['user_agent'] = $this->getUserAgent();
|
||||
|
||||
foreach ($options as $key => $value) {
|
||||
if ($value == null) {
|
||||
@ -850,6 +857,26 @@ class Zend_Soap_Client
|
||||
return $this->_cache_wsdl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the string to use in User-Agent header
|
||||
*
|
||||
* @param string $userAgent
|
||||
* @return Zend_Soap_Client
|
||||
*/
|
||||
public function setUserAgent($userAgent)
|
||||
{
|
||||
$this->_user_agent = (string)$userAgent;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get current string to use in User-Agent header
|
||||
*/
|
||||
public function getUserAgent()
|
||||
{
|
||||
return $this->_user_agent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieve request XML
|
||||
*
|
||||
@ -1010,13 +1037,13 @@ class Zend_Soap_Client
|
||||
*/
|
||||
public function addSoapInputHeader(SoapHeader $header, $permanent = false)
|
||||
{
|
||||
if ($permanent) {
|
||||
$this->_permanentSoapInputHeaders[] = $header;
|
||||
} else {
|
||||
$this->_soapInputHeaders[] = $header;
|
||||
}
|
||||
if ($permanent) {
|
||||
$this->_permanentSoapInputHeaders[] = $header;
|
||||
} else {
|
||||
$this->_soapInputHeaders[] = $header;
|
||||
}
|
||||
|
||||
return $this;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1039,7 +1066,7 @@ class Zend_Soap_Client
|
||||
*/
|
||||
public function getLastSoapOutputHeaderObjects()
|
||||
{
|
||||
return $this->_soapOutputHeaders;
|
||||
return $this->_soapOutputHeaders;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Client
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: DotNet.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: DotNet.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/** Zend_Soap_Client */
|
||||
@ -65,15 +65,15 @@ class Zend_Soap_Client_DotNet extends Zend_Soap_Client
|
||||
*/
|
||||
protected function _preProcessArguments($arguments)
|
||||
{
|
||||
if (count($arguments) > 1 ||
|
||||
(count($arguments) == 1 && !is_array(reset($arguments)))
|
||||
) {
|
||||
require_once 'Zend/Soap/Client/Exception.php';
|
||||
throw new Zend_Soap_Client_Exception('.Net webservice arguments have to be grouped into array: array(\'a\' => $a, \'b\' => $b, ...).');
|
||||
}
|
||||
if (count($arguments) > 1 ||
|
||||
(count($arguments) == 1 && !is_array(reset($arguments)))
|
||||
) {
|
||||
require_once 'Zend/Soap/Client/Exception.php';
|
||||
throw new Zend_Soap_Client_Exception('.Net webservice arguments have to be grouped into array: array(\'a\' => $a, \'b\' => $b, ...).');
|
||||
}
|
||||
|
||||
// Do nothing
|
||||
return array($arguments);
|
||||
return $arguments;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -33,7 +33,7 @@ require_once 'Zend/Server/Interface.php';
|
||||
* @uses Zend_Server_Interface
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Server.php 16210 2009-06-21 19:22:17Z thomas $
|
||||
* @version $Id: Server.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
class Zend_Soap_Server implements Zend_Server_Interface
|
||||
{
|
||||
@ -463,7 +463,7 @@ class Zend_Soap_Server implements Zend_Server_Interface
|
||||
|
||||
/**
|
||||
* Return current SOAP Features options
|
||||
*
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function getSoapFeatures()
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
*/
|
||||
|
||||
|
||||
/** Zend_Exception */
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Exception.php';
|
||||
* @subpackage Server
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Exception.php 16210 2009-06-21 19:22:17Z thomas $
|
||||
* @version $Id: Exception.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
class Zend_Soap_Server_Exception extends Zend_Exception
|
||||
{}
|
||||
|
@ -16,7 +16,7 @@
|
||||
* @package Zend_Soap
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Wsdl.php 16210 2009-06-21 19:22:17Z thomas $
|
||||
* @version $Id: Wsdl.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
require_once "Zend/Soap/Wsdl/Strategy/Interface.php";
|
||||
@ -595,10 +595,10 @@ class Zend_Soap_Wsdl
|
||||
// delegates the detection of a complex type to the current strategy
|
||||
return $strategy->addComplexType($type);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Parse an xsd:element represented as an array into a DOMElement.
|
||||
*
|
||||
*
|
||||
* @param array $element an xsd:element represented as an array
|
||||
* @return DOMElement parsed element
|
||||
*/
|
||||
@ -608,7 +608,7 @@ class Zend_Soap_Wsdl
|
||||
require_once "Zend/Soap/Wsdl/Exception.php";
|
||||
throw new Zend_Soap_Wsdl_Exception("The 'element' parameter needs to be an associative array.");
|
||||
}
|
||||
|
||||
|
||||
$elementXml = $this->_dom->createElement('xsd:element');
|
||||
foreach ($element as $key => $value) {
|
||||
if (in_array($key, array('sequence', 'all', 'choice'))) {
|
||||
@ -630,10 +630,10 @@ class Zend_Soap_Wsdl
|
||||
}
|
||||
return $elementXml;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add an xsd:element represented as an array to the schema.
|
||||
*
|
||||
*
|
||||
* Array keys represent attribute names and values their respective value.
|
||||
* The 'sequence', 'all' and 'choice' keys must have an array of elements as their value,
|
||||
* to add them to a nested complexType.
|
||||
@ -645,7 +645,7 @@ class Zend_Soap_Wsdl
|
||||
* <xsd:element name="myString" type="string"/>
|
||||
* <xsd:element name="myInteger" type="int"/>
|
||||
* </xsd:sequence></xsd:complexType></xsd:element>
|
||||
*
|
||||
*
|
||||
* @param array $element an xsd:element represented as an array
|
||||
* @return string xsd:element for the given element array
|
||||
*/
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Wsdl
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: AnyType.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: AnyType.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
require_once "Zend/Soap/Wsdl/Strategy/Interface.php";
|
||||
@ -31,7 +31,7 @@ class Zend_Soap_Wsdl_Strategy_AnyType implements Zend_Soap_Wsdl_Strategy_Interfa
|
||||
*/
|
||||
public function setContext(Zend_Soap_Wsdl $context)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Wsdl
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Interface.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Interface.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
|
||||
@ -25,7 +25,7 @@ interface Zend_Soap_Wsdl_Strategy_Interface
|
||||
{
|
||||
/**
|
||||
* Method accepts the current WSDL context file.
|
||||
*
|
||||
*
|
||||
* @param <type> $context
|
||||
*/
|
||||
public function setContext(Zend_Soap_Wsdl $context);
|
||||
|
Reference in New Issue
Block a user