~chroot64bit/zivios/gentoo-experimental

« back to all changes in this revision

Viewing changes to application/library/Zend/Soap/Client/DotNet.php

  • Committer: Mustafa A. Hashmi
  • Date: 2008-12-04 13:32:21 UTC
  • Revision ID: mhashmi@zivios.org-20081204133221-0nd1trunwevijj38
Inclusion of new installation framework with ties to zend layout and dojo layout

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/**
 
3
 * Zend Framework
 
4
 *
 
5
 * LICENSE
 
6
 *
 
7
 * This source file is subject to the new BSD license that is bundled
 
8
 * with this package in the file LICENSE.txt.
 
9
 * It is also available through the world-wide-web at this URL:
 
10
 * http://framework.zend.com/license/new-bsd
 
11
 * If you did not receive a copy of the license and are unable to
 
12
 * obtain it through the world-wide-web, please send an email
 
13
 * to license@zend.com so we can send you a copy immediately.
 
14
 *
 
15
 * @category   Zend
 
16
 * @package    Zend_Soap
 
17
 * @copyright  Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
 
18
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 
19
 */
 
20
 
 
21
/** Zend_Soap_Client_Exception */
 
22
require_once 'Zend/Soap/Client/Exception.php';
 
23
 
 
24
/** Zend_Soap_Client */
 
25
require_once 'Zend/Soap/Client.php';
 
26
 
 
27
 
 
28
if (extension_loaded('soap')) {
 
29
 
 
30
/**
 
31
 * Zend_Soap_Client_Local
 
32
 * 
 
33
 * Class is intended to be used with .Net Web Services.
 
34
 * 
 
35
 * Important! Class is at experimental stage now.
 
36
 * Please leave your notes, compatiblity issues reports or
 
37
 * suggestions in fw-webservices@lists.zend.com or fw-general@lists.com
 
38
 *
 
39
 * @category   Zend
 
40
 * @package    Zend_Soap
 
41
 */
 
42
class Zend_Soap_Client_DotNet extends Zend_Soap_Client
 
43
{
 
44
    /**
 
45
     * Constructor
 
46
     *
 
47
     * @param string $wsdl
 
48
     * @param array $options
 
49
     */
 
50
    public function __construct($wsdl = null, $options = null)
 
51
    {
 
52
        // Use SOAP 1.1 as default
 
53
        $this->setSoapVersion(SOAP_1_1);
 
54
 
 
55
        parent::__construct($wsdl, $options);
 
56
    }
 
57
 
 
58
 
 
59
    /**
 
60
     * Perform arguments pre-processing
 
61
     *
 
62
     * My be overridden in descendant classes
 
63
     *
 
64
     * @param array $arguments
 
65
     */
 
66
    protected function _preProcessArguments($arguments)
 
67
    {
 
68
        // Do nothing
 
69
        return array($arguments);
 
70
    }
 
71
 
 
72
    /**
 
73
     * Perform result pre-processing
 
74
     *
 
75
     * My be overridden in descendant classes
 
76
     *
 
77
     * @param array $arguments
 
78
     */
 
79
    protected function _preProcessResult($result)
 
80
    {
 
81
        $resultProperty = $this->getLastMethod() . 'Result';
 
82
 
 
83
        return $result->$resultProperty;
 
84
    }
 
85
 
 
86
}
 
87
 
 
88
} // end if (extension_loaded('soap')