Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('memory_limit','512M');
- ini_set('display_errors', true);
- error_reporting(E_ALL);
- /**
- * Load autoload
- */
- require_once dirname(__FILE__) . '/my_soap_server_Autoload.php';
- define('MY_SOAP_WSDL_URL','../DiscountManager.xml');
- define('MY_SOAP_USER_LOGIN','');
- define('MY_SOAP_USER_PASSWORD','');
- /**
- * Wsdl instanciation infos
- */
- $wsdl = array();
- $wsdl[MySoapWsdlClass::WSDL_URL] = MY_SOAP_WSDL_URL;
- $wsdl[MySoapWsdlClass::WSDL_CACHE_WSDL] = WSDL_CACHE_NONE;
- $wsdl[MySoapWsdlClass::WSDL_TRACE] = true;
- if(MY_SOAP_USER_LOGIN !== '')
- $wsdl[MySoapWsdlClass::WSDL_LOGIN] = MY_SOAP_USER_LOGIN;
- if(MY_SOAP_USER_PASSWORD !== '')
- $wsdl[MySoapWsdlClass::WSDL_PASSWD] = MY_SOAP_USER_PASSWORD;
- // etc....
- /**
- * Examples
- */
- /*********************************
- * Example for MySoapServicePing
- */
- $mySoapServicePing = new MySoapServicePing($wsdl);
- // sample call for MySoapServicePing::Ping()
- $request = new MySoapStructPingRequest();
- if($mySoapServicePing->Ping(new MySoapStructPing(
- $request
- ))) {
- print_r($mySoapServicePing->getResult());
- print_r($mySoapServicePing->getLastRequest());
- }else
- print_r($mySoapServicePing->getLastError());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement