Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class userLogin {
- public $username; // string
- public $password; // string
- }
- class userLoginResponse {
- public $token; // string
- }
- /**
- * ecmasService class
- *
- *
- *
- * @author {author}
- * @copyright {copyright}
- * @package {package}
- */
- class ecmasService extends SoapClient {
- private static $classmap = array(
- 'userLogin' => 'userLogin',
- 'userLoginResponse' => 'userLoginResponse',
- );
- public function ecmasService($wsdl = "a.wsdl", $options = array()) {
- foreach(self::$classmap as $key => $value) {
- if(!isset($options['classmap'][$key])) {
- $options['classmap'][$key] = $value;
- }
- }
- parent::__construct($wsdl, $options);
- }
- /**
- *
- *
- * @param userLogin $parameters
- * @return userLoginResponse
- */
- public function userLogin(userLogin $parameters) {
- return $this->__soapCall('userLogin', array($parameters), array(
- 'uri' => 'urn:ecmasService',
- 'soapaction' => ''
- )
- );
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement