Esempio n. 1
0
 function init(&$server)
 {
     parent::init($server);
     $server->register('GetFileSize', array('baseType' => 'xsd:int', 'filename' => 'xsd:string'), array('return' => 'xsd:int'), 'urn:shopexapi', 'urn:shopexapi#GetFileSize', 'rpc', 'encoded', '');
     $server->register('DownloadFile', array('baseType' => 'xsd:int', 'filename' => 'xsd:string'), array(), 'urn:shopexapi', 'urn:shopexapi#DownloadFile', 'rpc', 'encoded', '');
     $server->register('UploadFile', array('baseType' => 'xsd:int', 'filename' => 'xsd:string', 'append' => 'xsd:boolean'), array(), 'urn:shopexapi', 'urn:shopexapi#UploadFile', 'rpc', 'encoded', '');
     $server->register('UploadGoodsImage', array('goods_id' => 'xsd:int', 'gimage_ids' => 'tns:IntegerArray'), array(), 'urn:shopexapi', 'urn:shopexapi#UploadGoodsImage', 'rpc', 'encoded', '');
 }
Esempio n. 2
0
 function init(&$server)
 {
     parent::init($server);
     $server->wsdl->addComplexType('Version', 'complexType', 'struct', 'all', '', array('shopver' => array('name' => 'shopver', 'type' => 'xsd:string'), 'assisver' => array('name' => 'assisver', 'type' => 'xsd:string')));
     $server->register('GetVersion', array(), array('return' => 'tns:Version'), 'urn:shopexapi', 'urn:shopexapi#GetVersion', 'rpc', 'encoded', '');
     $server->register('Login', array('user' => 'xsd:string', 'pass' => 'xsd:string', 'loginas' => 'xsd:int'), array('return' => 'xsd:boolean'), 'urn:shopexapi', 'urn:shopexapi#Login', 'rpc', 'encoded', '');
     $server->register('GetRedirectToken', array('user' => 'xsd:string', 'pass' => 'xsd:string', 'loginas' => 'xsd:int'), array('return' => 'xsd:string'), 'urn:shopexapi', 'urn:shopexapi#GetRedirectToken', 'rpc', 'encoded', '');
 }
Esempio n. 3
0
 function init(&$server)
 {
     parent::init($server);
     $server->wsdl->addComplexType('ConditionItem', 'complexType', 'struct', 'all', '', array('fieldname' => array('name' => 'fieldname', 'type' => 'xsd:string'), 'comparesign' => array('name' => 'comparesign', 'type' => 'xsd:string'), 'fieldvalue' => array('name' => 'fieldvalue', 'type' => 'xsd:string'), 'joinflag' => array('name' => 'join', 'type' => 'xsd:string'), 'groupfalg' => array('name' => 'group', 'type' => 'xsd:string')));
     $server->wsdl->addComplexType('ConditionItemArray', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:ConditionItem[]')), 'tns:ConditionItem');
     $server->wsdl->addComplexType('OrderByItem', 'complexType', 'struct', 'all', '', array('fieldname' => array('name' => 'fieldname', 'type' => 'xsd:string'), 'orderby' => array('name' => 'orderby', 'type' => 'xsd:string')));
     $server->wsdl->addComplexType('OrderByItemArray', 'complexType', 'array', '', 'SOAP-ENC:Array', array(), array(array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => 'tns:OrderByItem[]')), 'tns:OrderByItem');
     $server->register('GetRecordCount', array('table' => 'xsd:string', 'cndarr' => 'tns:ConditionItemArray'), array('return' => 'xsd:int'), 'urn:shopexapi', 'urn:shopexapi#GetRecordCount', 'rpc', 'encoded', '');
     $server->register('DownloadRecord', array('table' => 'xsd:string', 'fields' => 'tns:StringArray', 'cndarr' => 'tns:ConditionItemArray', 'orders' => 'tns:OrderByItemArray', 'limit' => 'xsd:boolean', 'offset' => 'xsd:int', 'rowcount' => 'xsd:int', 'delimiter' => 'xsd:string', 'enclosure' => 'xsd:string'), array('return' => 'xsd:int'), 'urn:shopexapi', 'urn:shopexapi#DownloadRecord', 'rpc', 'encoded', '');
     $server->register('UploadRecord', array('table' => 'xsd:string', 'fields' => 'tns:StringArray', 'guidfield' => 'xsd:string', 'idfield' => 'xsd:string', 'syncfield' => 'xsd:string', 'delimiter' => 'xsd:string', 'enclosure' => 'xsd:string'), array('return' => 'tns:SyncPack'), 'urn:shopexapi', 'urn:shopexapi#UploadRecord', 'rpc', 'encoded', '');
 }
Esempio n. 4
0
 function init(&$server)
 {
     parent::init($server);
     $server->register('GetPartView', array('ctl' => 'xsd:string', 'act' => 'xsd:string', 'arg' => 'xsd:string'), array('return' => 'xsd:string'), 'urn:shopexapi', 'urn:shopexapi#GetPartView', 'rpc', 'encoded', '');
     $server->register('EvalModel', array('modelName' => 'xsd:string', 'methodName' => 'xsd:string', 'args' => 'tns:StringArray', 'args_desc' => 'tns:StringArray'), array('return' => 'xsd:string'), 'urn:shopexapi', 'urn:shopexapi#EvalModel', 'rpc', 'encoded', '');
 }
Esempio n. 5
0
 function init(&$server)
 {
     parent::init($server);
     $server->wsdl->addComplexType('ShopInfo', 'complexType', 'struct', 'all', '', array('timezone' => array('name' => 'timezone', 'type' => 'xsd:int')));
     $server->register('GetShopInfo', array(), array('return' => 'tns:ShopInfo'), 'urn:shopexapi', 'urn:shopexapi#GetShopInfo', 'rpc', 'encoded', '');
 }