Changeset 884 for pro-violet-viettel/sourcecode/application/modules/services/controllers/sendmessage.php
- Timestamp:
- Apr 7, 2015 2:17:28 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/services/controllers/sendmessage.php
r714 r884 212 212 } 213 213 214 public function getCollaborators () { 215 $client = new SoapClient($this->config->item('bccs_service_url'), array( 'trace' => true, 216 'exceptions' => true, 217 )); 218 $username = $this->config->item('bccs_username'); 219 $password = $this->config->item('bccs_password'); 220 $wscode = 'getListShopAndStaftInfo'; 221 222 $input = new Input($username, $password, $wscode/* , 2, 1,5000 */); 223 $param = new Param(); 224 225 $params = array( 226 "Input" => $input, 227 "rawData" => "rawData", 228 "Param" => $param, 229 ); 230 231 var_dump($params); 232 233 $response = $client->__soapCall("gwOperation", array($params)); 234 var_dump($response); 235 } 236 214 237 215 238 } 216 239 240 241 class Input { 242 function Input ($user, $pass, $wscode/*, $type, $page, $displaypage */) { 243 $this->user = $user; 244 $this->pass = $pass; 245 $this->wscode = $wscode; 246 $this->param = null; 247 $this->rawData = ''; 248 /* $this->type = $type; 249 $this->page = $page; 250 $this->displaypage = $displaypage; */ 251 } 252 } 253 254 class Param { 255 function Param () { 256 $this->name = ''; 257 $this->value = ''; 258 } 259 } 217 260 function fix_latin1_mangled_with_utf8_maybe_hopefully_most_of_the_time($str) 218 261 {
Note: See TracChangeset
for help on using the changeset viewer.