21,893
社区成员




<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="LoginServiceService" targetNamespace="http://impl.service.login.module.project.hzl/" xmlns:ns1="http://service.login.module.project.hzl/" xmlns:ns2="http://cxf.apache.org/bindings/xformat" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://impl.service.login.module.project.hzl/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:import location="http://192.168.0.27:8888/Project/services/loginWebService?wsdl=ILoginService.wsdl" namespace="http://service.login.module.project.hzl/" />
- <wsdl:binding name="LoginServiceServiceSoapBinding" type="ns1:ILoginService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="login">
<soap:operation soapAction="" style="document" />
- <wsdl:input name="login">
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output name="loginResponse">
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="LoginServiceService">
- <wsdl:port binding="tns:LoginServiceServiceSoapBinding" name="LoginServicePort">
<soap:address location="http://192.168.0.27:8888/Project/services/loginWebService" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
<?php
try{
$wsdl = "http://localhost:8888/Project/services/loginWebService?wsdl";
$name = "张文华";
$password = "123456";
$cliente = new SoapClient($wsdl);
print "<p>The result :";
$vem = $cliente->__call('login',array($name, $password));
print $vem;
print "</p>";
print "<br/>";
}catch(Exception $e){
print $e;
}
?>