function CDAB() { $this->url = DAB_WEBSERVICE_URL; $soapClient = new SOAP_Client($this->url, true, false, array(), "/tmp/pear/cache"); $soapClient->setOpt("timeout", 100); //$soapClient->setOpt('curl', CURLOPT_VERBOSE, 0); $soapClient->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); $soapClient->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); $soapClient->setOpt('curl', CURLOPT_CAPATH, '/usr/local/ssl/certs'); $this->soapOptions = array('namespace' => 'http://controller.com.eab', 'trace' => 1); $secretkey = "5wMr N5lFU?|!b)R^jZN,lebw~xVPz9+XG\"NHB?N"; $this->hasher =& new Crypt_HMAC($secretkey, "sha1"); $this->soapClient = $soapClient; $this->accessKey = "JnShns06ip2cQ6S2vxKZ"; }
</tr> <tr> <td colspan="2" align="center"> <input type="submit" value="Send" /> <input type="button" value="Back" onclick="javascript: window.location='index.php'"/> </td> </tr> </table> </form> <?php session_unregister('Error'); } else { $dab =& new CDAB(); $soapclient = new SOAP_Client('http://172.25.2.99:8250/ws/exchange.php?wsdl'); $soapclient->setOpt("timeout", 100); $options = array('namespace' => 'urn:CExchange', 'trace' => 1); $params = array('OrderDate' => date("Y-m-d"), 'BankID' => 2, 'AuthenUser' => 'ba.nd', 'AuthenPass' => md5('hsc080hsc')); if ($_REQUEST['Type'] > 0) { switch ($_REQUEST['Type']) { case '1': $re = $dab->releaseBidFile("/home/vhosts/bos/htdocs/", "getBid.xml"); break; case '2': $re = $soapclient->call('getAuctionForXML', $params, $options); break; case '3': $re = $soapclient->call('getAllCancelBidForXML', $params, $options); break; case '4': $re = $soapclient->call('getAllSellForXML', $params, $options);
$simultaccess = 1; $currency = 'EUR'; $typepaid = 1; $sip_buddy = $iax_buddy = 1; $language = 'en'; $voicemail_enabled = 1; $country = 'USA'; // #Account $units = 10000; // Create SOAP Client $callback = new SOAP_Client($endpoint); $callback -> setOpt("timeout", 0); echo "<hr>############# Create Account ############# <br/><hr>"; $method = 'Create_Customer'; $time_start = microtime(true); $params = array('security_key' => md5($security_key), 'instance' => $instance, 'id_callplan' => $id_callplan, 'id_didgroup' => $id_didgroup, 'units' => $units, 'accountnumber_len' => $accountnumber_len, 'balance' => $balance, 'activated' => $activated, 'status' => $status, 'simultaccess' => $simultaccess, 'currency' => $currency,
<?php require 'SOAP/Client.php'; /** * This client runs against the example server in SOAP/example/server.php. It * does not use WSDL to run these requests, but that can be changed easily by * simply adding '?wsdl' to the end of the url. */ $soapclient = new SOAP_Client('http://www3.hs-esslingen.de/qislsf/services/dbinterface'); $rpcMethod = 'getDataXML'; $getDataRequest = '<SOAPDataService> <general> <object>modulList</object> </general> <condition> <abschluss>84</abschluss> <studiengang>BSA</studiengang> <version>2</version> </condition> </SOAPDataService>'; $soapclient->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); $params = array('arg0' => $getDataRequest); $returnValue = $soapclient->call($rpcMethod, $params); print_r($returnValue);
function soapRequest($getDataRequest) { $returnValue = ''; $url = $this->hostname . $this->requestPath; $soapclient = new SOAP_Client($url); $soapclient->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); $soapclient->setOpt('timeout', $this->soapTimeout); $params = array('arg0' => $getDataRequest); $returnValue = $soapclient->call($this->rpcMethod, $params); $xmlArr = $this->XML_unserialize($returnValue); $debug = FALSE; if ($this->lsfDebug) { $debug = TRUE; } else { $get = t3lib_div::_GET(); if (isset($get['debug'])) { $debug = TRUE; } } if ($debug) { t3lib_utility_Debug::debugInPopUpWindow($params, 'Soap-Anfrage'); t3lib_utility_Debug::debugInPopUpWindow($xmlArr, 'Soap-Response'); } return $xmlArr; }
/*var_dump($client);*/ $options = array('namespace' => 'http://controller.com.eab', 'trace' => 1); $ret = $client->__call("getString", $params = array('str' => 'Diep Le Chi'), $options); echo "<pre>"; print_r($ret); echo "</pre>"; $ret = $client->__call('bid', $params = array('partnercode' => 'EPS', 'password' => 'e10adc3949ba59abbe56e057f20f883e', 'custaccount' => '0101000035', 'scraccount' => '056C001234', 'refno' => '1', 'amount' => '10000000', 'fee' => '100000', 'scrdate' => '20070706142450'), $options); echo "---------------bid-------------"; echo "<pre>"; print_r($ret); echo "</pre>"; exit; //https://webservice.dongabank.com.vn/security/WSBean?wsdl $soapclient = new SOAP_Client('https://webservice.dongabank.com.vn/security/WSBean?wsdl'); //p($soapclient); $soapclient->setOpt("timeout", 100); $soapclient->setOpt("curl", CURLOPT_SSL_VERIFYPEER, 0); // This namespace is the same as declared in server.php. $options = array('namespace' => 'http://203.113.145.197:8181/axis/test/acbTCBS.jws', 'trace' => 1); /* partnercode - the code of partner password - the partner's password custaccount - the account number of customer at DAB scraccount - the account number of customer at Partner refno - the reference number from partner amount - the bid's money fee - the fee of this bid scrdate - bid date */ $re = $soapclient->call('bid', $params = array('partnercode' => 'EPS', 'password' => 'e10adc3949ba59abbe56e057f20f883e', 'custaccount' => '0101000035', 'scraccount' => '056C001234', 'refno' => '1', 'amount' => '10000000', 'fee' => '100000', 'scrdate' => '20070706142450'), $options); echo "---------------bid-------------";