send_getVipAddress( $province, $city, $county, $street); return $this->recv_getVipAddress(); } public function send_getVipAddress( $province, $city, $county, $street){ $this->initInvocation("getVipAddress"); $args = new \vipapis\cup\address\AddressService_getVipAddress_args(); $args->province = $province; $args->city = $city; $args->county = $county; $args->street = $street; $this->send_base($args); } public function recv_getVipAddress(){ $result = new \vipapis\cup\address\AddressService_getVipAddress_result(); $this->receive_base($result); if ($result->success !== null){ return $result->success; } } public function healthCheck(){ $this->send_healthCheck(); return $this->recv_healthCheck(); } public function send_healthCheck(){ $this->initInvocation("healthCheck"); $args = new \vipapis\cup\address\AddressService_healthCheck_args(); $this->send_base($args); } public function recv_healthCheck(){ $result = new \vipapis\cup\address\AddressService_healthCheck_result(); $this->receive_base($result); if ($result->success !== null){ return $result->success; } } } class AddressService_getVipAddress_args { static $_TSPEC; public $province = null; public $city = null; public $county = null; public $street = null; public function __construct($vals=null){ if (!isset(self::$_TSPEC)){ self::$_TSPEC = array( 1 => array( 'var' => 'province' ), 2 => array( 'var' => 'city' ), 3 => array( 'var' => 'county' ), 4 => array( 'var' => 'street' ), ); } if (is_array($vals)){ if (isset($vals['province'])){ $this->province = $vals['province']; } if (isset($vals['city'])){ $this->city = $vals['city']; } if (isset($vals['county'])){ $this->county = $vals['county']; } if (isset($vals['street'])){ $this->street = $vals['street']; } } } public function read($input){ if(true) { $input->readString($this->province); } if(true) { $input->readString($this->city); } if(true) { $input->readString($this->county); } if(true) { $input->readString($this->street); } } public function write($output){ $xfer = 0; $xfer += $output->writeStructBegin(); $xfer += $output->writeFieldBegin('province'); $xfer += $output->writeString($this->province); $xfer += $output->writeFieldEnd(); $xfer += $output->writeFieldBegin('city'); $xfer += $output->writeString($this->city); $xfer += $output->writeFieldEnd(); $xfer += $output->writeFieldBegin('county'); $xfer += $output->writeString($this->county); $xfer += $output->writeFieldEnd(); if($this->street !== null) { $xfer += $output->writeFieldBegin('street'); $xfer += $output->writeString($this->street); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class AddressService_healthCheck_args { static $_TSPEC; public function __construct($vals=null){ if (!isset(self::$_TSPEC)){ self::$_TSPEC = array( ); } if (is_array($vals)){ } } public function read($input){ } public function write($output){ $xfer = 0; $xfer += $output->writeStructBegin(); $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class AddressService_getVipAddress_result { static $_TSPEC; public $success = null; public function __construct($vals=null){ if (!isset(self::$_TSPEC)){ self::$_TSPEC = array( 0 => array( 'var' => 'success' ), ); } if (is_array($vals)){ if (isset($vals['success'])){ $this->success = $vals['success']; } } } public function read($input){ if(true) { $this->success = new \com\vip\vop\cup\api\address\VipAddressInfo(); $this->success->read($input); } } public function write($output){ $xfer = 0; $xfer += $output->writeStructBegin(); if($this->success !== null) { $xfer += $output->writeFieldBegin('success'); if (!is_object($this->success)) { throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA); } $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } class AddressService_healthCheck_result { static $_TSPEC; public $success = null; public function __construct($vals=null){ if (!isset(self::$_TSPEC)){ self::$_TSPEC = array( 0 => array( 'var' => 'success' ), ); } if (is_array($vals)){ if (isset($vals['success'])){ $this->success = $vals['success']; } } } public function read($input){ if(true) { $this->success = new \com\vip\hermes\core\health\CheckResult(); $this->success->read($input); } } public function write($output){ $xfer = 0; $xfer += $output->writeStructBegin(); if($this->success !== null) { $xfer += $output->writeFieldBegin('success'); if (!is_object($this->success)) { throw new \Osp\Exception\OspException('Bad type in structure.', \Osp\Exception\OspException::INVALID_DATA); } $xfer += $this->success->write($output); $xfer += $output->writeFieldEnd(); } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; } } ?>