本文整理汇总了PHP中soapclient::loginService方法的典型用法代码示例。如果您正苦于以下问题:PHP soapclient::loginService方法的具体用法?PHP soapclient::loginService怎么用?PHP soapclient::loginService使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类soapclient
的用法示例。
在下文中一共展示了soapclient::loginService方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: soapclient
<form class="form-signin" form action="" method="post">
<center><h2 class="form-signin-heading"><span class="glyphicon glyphicon-th-large"></span> PerPusWeb </h2></center>
<div class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" id="username" name="username" class="form-control" placeholder="Username" autocomplete="off" autofocus="on" required>
</div>
<div class="input-group" style="margin-top: 5px;">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" id="password" name="password" class="form-control" placeholder="Password" autocomplete="off" required>
</div>
<br />
<button class="btn btn-lg btn-primary btn-block" name="submit" type="submit">Sign in</button>
</form>
</div>
<script src="js/ie10-viewport-bug-workaround.js"></script>
</body>
</html>
<?php
try {
require_once "nusoap-0.9.5/lib/nusoap.php";
$client = new soapclient("http://localhost/perpusweb/login_server.php?wsdl");
if (isset($_POST['submit'])) {
$response = $client->loginService($_POST['username'], $_POST['password']);
echo "{$response}";
}
} catch (SoapFault $e) {
echo $e->getMessage();
}