/** * Send a SOAP request to the server * * @param string $method The method name * @param array $param The parameters * @return mixed The server response */ public static function _Call($method, $param) { if (is_null(self::$_Server)) { self::$_Server = new SoapClient(self::$_WsdlUri); } return self::$_Server->__soapCall($method, $param); }
<?php require_once 'CustomerSoapClient.php'; $customerSoapClient = new CustomerSoapClient(); var_dump($customerSoapClient->set_session_id('01234567890123456789012345678901')); var_dump($customerSoapClient->get_customer_list());