当前位置: 首页>>代码示例>>PHP>>正文


PHP SoapServer类代码示例

本文整理汇总了PHP中SoapServer的典型用法代码示例。如果您正苦于以下问题:PHP SoapServer类的具体用法?PHP SoapServer怎么用?PHP SoapServer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了SoapServer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: soapServer

 public function soapServer($request, $response)
 {/*{{{*/
     $postdata = file_get_contents("php://input");
     $function = 'soapServer';
     $this->ioLogRecorder->addLog(XDateTime::now()->toString()." service [{$function}] ".$this->ioLogRecorder->format2SimpleLog($postdata));
     $configs = ProviderConfigFactory::getProviderAppConfigs(PhoneConference::SPTYPE_HUAWEI, TeleConfProvider::APPTYPE_CONF);
     $callbackUrl = $configs['callbackUrl'];
     $server = new SoapServer(null, array('uri' => 'HuaweiConfCallback','location'=>$callbackUrl));
     $server->setClass('HuaweiTeleConfApi');
     try
     {
         $lockName = $this->getLockerName($postdata);
         $cacher= DAL::get()->getCache(Cacher::CACHETYPE_LOCKER);
         $locker  = LockUtil::factory(LockUtil::LOCK_TYPE_MEMCACHE, array('memcache' => $cacher));
         $locker->getLock($lockName);
         $server->handle();
         $locker->releaseLock($lockName);
     }
     catch(Exception $ex)
     {
         $locker->releaseLock($lockName);
     }
     header("HTTP/1.1 202 Accepted");
     header("Content-Type: text/xml;charset=UTF-8");
     return parent::DIRECT_OUTPUT;
 }/*}}}*/
开发者ID:sdgdsffdsfff,项目名称:hdf-client,代码行数:26,代码来源:huaweiconfcallbackcontroller.php

示例2: callback

 public function callback()
 {
     $s = new SoapServer(DIR_CONFIG . 'ishopclientws.wsdl');
     $s->setClass('qiwiSoap');
     $s->handle();
     exit;
 }
开发者ID:ralfeus,项目名称:moomi-daeri.com,代码行数:7,代码来源:qiwi.php

示例3: processDefault

 /**
  * Traitement par défaut
  */
 public function processDefault()
 {
     // On charge la classe exportée
     Copix::RequireOnce($this->_exportClassFilename);
     // Définition du serveur Soap
     if (isset($this->_wsname)) {
         $server = new SoapServer(_url('wsserver|default|wsdl', array('wsname' => $this->_wsname)));
     } else {
         $server = new SoapServer(_url('wsserver|default|wsdl'));
     }
     // Assignation de la classe exportée au serveur
     $server->setclass($this->_exportClass);
     // Traitement des appels
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         $server->handle();
         return _arNone();
     } else {
         $res = '<strong>' . _i18n('wsserver.handle.title') . '</strong>';
         $res .= '<ul>';
         foreach ($server->getFunctions() as $func) {
             $res .= '<li>' . $func . '</li>';
         }
         $res .= '</ul>';
         $res;
     }
     $tpl = new CopixTpl();
     $tpl->assign('MAIN', $res);
     return new CopixActionReturn(CopixActionReturn::DISPLAY, $tpl);
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:32,代码来源:default.actiongroup.php

示例4: processSoap

 /**
  * Intercept the soapServer method call in order to handle the call thrue the process method
  * Return php variables, the soap server will transform it in a soap response
  */
 public function processSoap()
 {
     $this->wsdl = new jWSDL($this->request->params['module'], $this->request->params['action']);
     $this->soapServer = $this->getSoapServer($this->wsdl);
     $this->soapServer->setclass('jSoapHandler', $this);
     $this->soapServer->handle($this->request->soapMsg);
 }
开发者ID:CREASIG,项目名称:lizmap-web-client,代码行数:11,代码来源:jSoapCoordinator.class.php

示例5: processRequest

 public function processRequest(callable $callback)
 {
     $server = new \SoapServer($this->wsdl, array('classmap' => $this->classmap));
     $server->setObject($this);
     $this->callback = $callback;
     $server->handle();
     $this->callback = null;
 }
开发者ID:werkint,项目名称:qiwi,代码行数:8,代码来源:Server.php

示例6: request

 /**
  * Building query
  *
  * @param array $params Query params
  * @return array/boolean
  */
 public function request()
 {
     $properties = array('classmap' => array('tns:updateBill' => 'qiwiParam', 'tns:updateBillResponse' => 'qiwiResponse'));
     $wsdl = MODX_CORE_PATH . 'components/minishop2/custom/payment/lib/qiwi/IShopClientWS.wsdl';
     $Soap = new SoapServer($wsdl, $properties);
     $Soap->setClass('qiwiServer', $this->config['shopId'], $this->config['shopKey'], $this->config['statusPaid']);
     $Soap->handle();
     return true;
 }
开发者ID:legkomedia,项目名称:mspQiwi,代码行数:15,代码来源:qiwi.class.php

示例7: openinvoiceAction

 public function openinvoiceAction()
 {
     $_mode = $this->_getConfigData('demoMode');
     $wsdl = $_mode == 'Y' ? 'https://ca-test.adyen.com/ca/services/OpenInvoiceDetail?wsdl' : 'https://ca-live.adyen.com/ca/services/OpenInvoiceDetail?wsdl';
     $server = new SoapServer($wsdl);
     $server->setClass(self::OPENINVOICE_SOAP_SERVER);
     $server->addFunction(SOAP_FUNCTIONS_ALL);
     $server->handle();
     exit;
 }
开发者ID:AmineCherrai,项目名称:rostanvo,代码行数:10,代码来源:ProcessController.php

示例8: ws

 public function ws()
 {
     Load::library('WebService');
     $server = new SoapServer(null, array('uri' => 'http://localhost/freekore/test/ws'));
     // Asignamos la Clase
     $server->setClass('WebService');
     // Atendemos las peticiones
     $server->handle();
     $server->getFunctions();
 }
开发者ID:mmendoza000,项目名称:freekore,代码行数:10,代码来源:test.controller.php

示例9: indexAction

 /**
  * Add your definition route and the name route[optional]
  *
  * @Route /service
  * 
  * 
  * @param \Slim\Http\Request $request
  * @param \Slim\Http\Response $response
  * @param \Slim\Route $route
  */
 public function indexAction($request, $response, $route)
 {
     $dirClass = __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Soap' . DIRECTORY_SEPARATOR . 'wsdl' . DIRECTORY_SEPARATOR . 'service.wsdl';
     if (file_exists($dirClass)) {
         $server = new \SoapServer($dirClass, array('soap_version' => SOAP_1_2));
         $server->setClass('Raptor2\\ServiceBundle\\Soap\\Service');
         $this->app->contentType(\Raptor\Raptor::APPXML);
         $server->handle();
     }
 }
开发者ID:williamamed,项目名称:Raptor2,代码行数:20,代码来源:ServerController.php

示例10: PanamericanaServer

 public function PanamericanaServer()
 {
     $server = new SoapServer("Oris.wsdl");
     $server->setClass("Metodos");
     try {
         $server->handle();
     } catch (Exception $e) {
         $server->fault('Sender', $e->getMessage());
     }
 }
开发者ID:tsyacom,项目名称:panamericanaWS_H2H,代码行数:10,代码来源:indexController.php

示例11: serverAction

 /**
  * @Route("/server", name="server")
  */
 public function serverAction()
 {
     $server = new \SoapServer('web/public/hello.wsdl');
     $server->setObject($this->get('hello_service'));
     $response = new Response();
     $response->headers->set('Content-Type', 'text/xml; charset=ISO-8859-1');
     ob_start();
     $server->handle();
     $response->setContent(ob_get_clean());
     return $response;
 }
开发者ID:jamarboledas,项目名称:Symfony_soapServer,代码行数:14,代码来源:DefaultController.php

示例12: index

 function index()
 {
     $wsdl = $this->getViewer('wsdl')->process($this);
     $wsdlFile = TEMP_FOLDER . '/sapphire-wsdl-' . $this->class;
     $fh = fopen($wsdlFile, 'w');
     fwrite($fh, $wsdl);
     fclose($fh);
     $s = new SoapServer($wsdlFile, array('cache_wsdl' => WSDL_CACHE_NONE));
     $s->setClass($this->class);
     $s->handle();
 }
开发者ID:hamishcampbell,项目名称:silverstripe-sapphire,代码行数:11,代码来源:SapphireSoapServer.php

示例13: soap_serve

function soap_serve($wsdl, $functions)
{
    // create server object
    $s = new SoapServer($wsdl);
    // export functions
    foreach ($functions as $func) {
        $s->addFunction($func);
    }
    // handle the request
    $s->handle();
}
开发者ID:JackCanada,项目名称:moodle-hacks,代码行数:11,代码来源:phpsoap.php

示例14: handleSoapServer

 /**
  * handle 一个 SoapServer
  *
  * Uses:
  * <code>
  * Watt_Service_Servicer::handleSoapServer( "Your_Class_Servicer", "demo.wsdl" );
  * </code>
  * 
  * @param string $className
  * @param mixed $wsdl
  * @param array $options
  */
 public static function handleSoapServer($className, $wsdl, array $options = array())
 {
     if (!class_exists($className)) {
         Watt::loadClass($className);
     }
     //$server = new SoapServer( null, array('uri' => "http://test-uri/") );
     $server = new SoapServer(Watt_Config::getConfigPath() . "wsdl/" . $wsdl);
     $server->setClass($className);
     $server->handle();
     exit;
 }
开发者ID:uwitec,项目名称:outbuying,代码行数:23,代码来源:Servicer.php

示例15: serverAction

 public function serverAction(Request $request)
 {
     $baseurl = $request->getScheme() . '://' . $request->getHttpHost() . $request->getBasePath();
     $server = new \SoapServer($baseurl . '/APIxml.wsdl');
     $server->setObject($this->get('moocsy.api_xml'));
     $response = new Response();
     $response->headers->set('Content-Type', 'text/xml; charset=ISO-8859-1');
     ob_start();
     $server->handle();
     $response->setContent(ob_get_clean());
     return $response;
 }
开发者ID:ArtesanIO,项目名称:MoocsyBundle,代码行数:12,代码来源:APIXMLController.php


注:本文中的SoapServer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。