我正在调用一个服务进行身份验证,我正在调用的服务只是“Authenticate”从__getFunctions显示:
[0]=> string(59) "AuthenticateResponse Authenticate(Authenticate $parameters)
我试着这样称呼它:
$resp = $client->Authenticate(array('user'=>"user", 'password'=>"password"));
但是当我检查lastrequest时,好像我没有发送用户名或密码。所以我得到的结果是“用户名或密码错误”:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.fsi.co.uk/services/evolution/04/09"><SOAP-ENV:Body><ns1:Authenticate/></SOAP-ENV:Body></SOAP-ENV:Envelope>
我也尝试过以不同方式格式化此请求:
$resp = $client->Authenticate($params = array("Authenticate" => $autharr));
(其中Auth数组是一个带有用户和密码的关联数组)
甚至作为一个班级:
class Authenticate{
public $user = 'Rawr';
public $password = 'Mew';
}
$info = new Authenticate();
$resp = $client->Authenticate($info);
但是所有这些都导致相同的空请求,因此导致相同的“错误密码”结果。我相信这个错误与我格式化数据的方式有关,但我有点卡住了,我从谷歌尝试过的所有内容都失败了。所以我很感激这里有一两个暗示!谢谢!
(WDSL)
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:tns="http://www.fsi.co.uk/services/evolution/04/09" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" name="SecurityService" targetNamespace="http://www.fsi.co.uk/services/evolution/04/09">
<wsdl:types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.fsi.co.uk/services/evolution/04/09">
<xsd:element name="Authenticate">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element xmlns:q1="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" minOccurs="0" name="AuthenticateResult" nillable="true" type="q1:AuthenticationDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateDatabase">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="databaseName" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateDatabaseResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element xmlns:q2="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" minOccurs="0" name="AuthenticateDatabaseResult" nillable="true" type="q2:AuthenticationDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="LogOut">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="sessionId" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="LogOutResponse">
<xsd:complexType>
<xsd:sequence/>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateOutlook">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateOutlookResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element xmlns:q3="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" minOccurs="0" name="AuthenticateOutlookResult" nillable="true" type="q3:AuthenticationDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateDatabaseOutlook">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="databaseName" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateDatabaseOutlookResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element xmlns:q4="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" minOccurs="0" name="AuthenticateDatabaseOutlookResult" nillable="true" type="q4:AuthenticationDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateDatabaseByAccountUserType">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="databaseName" nillable="true" type="xsd:string"/>
<xsd:element xmlns:q5="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Entities" minOccurs="0" name="accountUserType" type="q5:AccountUserTypeDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateDatabaseByAccountUserTypeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element xmlns:q6="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" minOccurs="0" name="AuthenticateDatabaseByAccountUserTypeResult" nillable="true" type="q6:AuthenticationDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateByAccountUserType">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
<xsd:element xmlns:q7="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Entities" minOccurs="0" name="accountUserType" type="q7:AccountUserTypeDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AuthenticateByAccountUserTypeResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element xmlns:q8="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" minOccurs="0" name="AuthenticateByAccountUserTypeResult" nillable="true" type="q8:AuthenticationDto"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<xsd:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.Entities.ServiceModel">
<xsd:complexType name="AuthenticationDto">
<xsd:complexContent mixed="false">
<xsd:extension xmlns:q9="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.ServiceModel" base="q9:BaseDto">
<xsd:sequence>
<xsd:element xmlns:q10="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Services" minOccurs="0" name="OperationResult" type="q10:AuthenticationResultCode"/>
<xsd:element minOccurs="0" name="SessionId" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="AuthenticationDto" nillable="true" type="tns:AuthenticationDto"/>
</xsd:schema>
<xsd:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Services" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Services">
<xsd:simpleType name="AuthenticationResultCode">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Unknown"/>
<xsd:enumeration value="Succeeded"/>
<xsd:enumeration value="NotAuthenticated">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="WrongUserNameOrPassword">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">8</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="GeneralFailure">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">16</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="LicensedAreaAccessDenied">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">32</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ProductNotLicensed">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">64</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="BreachedLicenceEntities">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">128</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="DatabaseInvalidVersion">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">256</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="DatabaseNotAvailable">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">512</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="DatabaseAccessDenied">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1024</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="FailedMaximumNumberUsersLoggedIn">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2048</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="UserAlreadyLoggedIn">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">4096</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="SessionExpired">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">8192</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="AccountLockedOut">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">12288</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="PasswordExpired">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">16384</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="AuthenticationResultCode" nillable="true" type="tns:AuthenticationResultCode"/>
</xsd:schema>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://schemas.microsoft.com/2003/10/Serialization/" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://schemas.microsoft.com/2003/10/Serialization/">
<xs:element name="anyType" nillable="true" type="xs:anyType"/>
<xs:element name="anyURI" nillable="true" type="xs:anyURI"/>
<xs:element name="base64Binary" nillable="true" type="xs:base64Binary"/>
<xs:element name="boolean" nillable="true" type="xs:boolean"/>
<xs:element name="byte" nillable="true" type="xs:byte"/>
<xs:element name="dateTime" nillable="true" type="xs:dateTime"/>
<xs:element name="decimal" nillable="true" type="xs:decimal"/>
<xs:element name="double" nillable="true" type="xs:double"/>
<xs:element name="float" nillable="true" type="xs:float"/>
<xs:element name="int" nillable="true" type="xs:int"/>
<xs:element name="long" nillable="true" type="xs:long"/>
<xs:element name="QName" nillable="true" type="xs:QName"/>
<xs:element name="short" nillable="true" type="xs:short"/>
<xs:element name="string" nillable="true" type="xs:string"/>
<xs:element name="unsignedByte" nillable="true" type="xs:unsignedByte"/>
<xs:element name="unsignedInt" nillable="true" type="xs:unsignedInt"/>
<xs:element name="unsignedLong" nillable="true" type="xs:unsignedLong"/>
<xs:element name="unsignedShort" nillable="true" type="xs:unsignedShort"/>
<xs:element name="char" nillable="true" type="tns:char"/>
<xs:simpleType name="char">
<xs:restriction base="xs:int"/>
</xs:simpleType>
<xs:element name="duration" nillable="true" type="tns:duration"/>
<xs:simpleType name="duration">
<xs:restriction base="xs:duration">
<xs:pattern value="\-?P(\d*D)?(T(\d*H)?(\d*M)?(\d*(\.\d*)?S)?)?"/>
<xs:minInclusive value="-P10675199DT2H48M5.4775808S"/>
<xs:maxInclusive value="P10675199DT2H48M5.4775807S"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="guid" nillable="true" type="tns:guid"/>
<xs:simpleType name="guid">
<xs:restriction base="xs:string">
<xs:pattern value="[\da-fA-F]{8}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{4}-[\da-fA-F]{12}"/>
</xs:restriction>
</xs:simpleType>
<xs:attribute name="FactoryType" type="xs:QName"/>
<xs:attribute name="Id" type="xs:ID"/>
<xs:attribute name="Ref" type="xs:IDREF"/>
</xs:schema>
<xsd:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.ServiceModel" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Fsi.Platform.Contracts.ServiceModel">
<xsd:complexType name="BaseDto">
<xsd:sequence>
<xsd:element minOccurs="0" name="PrimaryKeyId" type="xsd:long"/>
<xsd:element minOccurs="0" name="PrimaryTableCatalogId" type="xsd:long"/>
<xsd:element minOccurs="0" name="ValidateOnly" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="BaseDto" nillable="true" type="tns:BaseDto"/>
</xsd:schema>
<xsd:schema xmlns:tns="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Entities" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/Fsi.Platform.Security.Contracts.Entities">
<xsd:simpleType name="AccountUserTypeDto">
<xsd:annotation>
<xsd:appinfo>
<ActualType xmlns="http://schemas.microsoft.com/2003/10/Serialization/" Name="long" Namespace="http://www.w3.org/2001/XMLSchema"/>
</xsd:appinfo>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Service">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">2</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="Import">
<xsd:annotation>
<xsd:appinfo>
<EnumerationValue xmlns="http://schemas.microsoft.com/2003/10/Serialization/">8</EnumerationValue>
</xsd:appinfo>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="AccountUserTypeDto" nillable="true" type="tns:AccountUserTypeDto"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="SecurityService_Authenticate_InputMessage">
<wsdl:part name="parameters" element="tns:Authenticate"/>
</wsdl:message>
<wsdl:message name="SecurityService_Authenticate_OutputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateResponse"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateDatabase_InputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateDatabase"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateDatabase_OutputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateDatabaseResponse"/>
</wsdl:message>
<wsdl:message name="SecurityService_LogOut_InputMessage">
<wsdl:part name="parameters" element="tns:LogOut"/>
</wsdl:message>
<wsdl:message name="SecurityService_LogOut_OutputMessage">
<wsdl:part name="parameters" element="tns:LogOutResponse"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateOutlook_InputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateOutlook"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateOutlook_OutputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateOutlookResponse"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateDatabaseOutlook_InputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateDatabaseOutlook"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateDatabaseOutlook_OutputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateDatabaseOutlookResponse"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateDatabaseByAccountUserType_InputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateDatabaseByAccountUserType"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateDatabaseByAccountUserType_OutputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateDatabaseByAccountUserTypeResponse"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateByAccountUserType_InputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateByAccountUserType"/>
</wsdl:message>
<wsdl:message name="SecurityService_AuthenticateByAccountUserType_OutputMessage">
<wsdl:part name="parameters" element="tns:AuthenticateByAccountUserTypeResponse"/>
</wsdl:message>
<wsdl:portType name="SecurityService">
<wsdl:operation name="Authenticate">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/Authenticate" message="tns:SecurityService_Authenticate_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateResponse" message="tns:SecurityService_Authenticate_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="AuthenticateDatabase">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabase" message="tns:SecurityService_AuthenticateDatabase_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseResponse" message="tns:SecurityService_AuthenticateDatabase_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="LogOut">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/LogOut" message="tns:SecurityService_LogOut_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/LogOutResponse" message="tns:SecurityService_LogOut_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="AuthenticateOutlook">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateOutlook" message="tns:SecurityService_AuthenticateOutlook_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateOutlookResponse" message="tns:SecurityService_AuthenticateOutlook_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="AuthenticateDatabaseOutlook">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseOutlook" message="tns:SecurityService_AuthenticateDatabaseOutlook_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseOutlookResponse" message="tns:SecurityService_AuthenticateDatabaseOutlook_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="AuthenticateDatabaseByAccountUserType">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseByAccountUserType" message="tns:SecurityService_AuthenticateDatabaseByAccountUserType_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseByAccountUserTypeResponse" message="tns:SecurityService_AuthenticateDatabaseByAccountUserType_OutputMessage"/>
</wsdl:operation>
<wsdl:operation name="AuthenticateByAccountUserType">
<wsdl:input wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateByAccountUserType" message="tns:SecurityService_AuthenticateByAccountUserType_InputMessage"/>
<wsdl:output wsaw:Action="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateByAccountUserTypeResponse" message="tns:SecurityService_AuthenticateByAccountUserType_OutputMessage"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SecurityService" type="tns:SecurityService">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="Authenticate">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/Authenticate" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="AuthenticateDatabase">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabase" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="LogOut">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/LogOut" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="AuthenticateOutlook">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateOutlook" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="AuthenticateDatabaseOutlook">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseOutlook" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="AuthenticateDatabaseByAccountUserType">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateDatabaseByAccountUserType" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="AuthenticateByAccountUserType">
<soap:operation soapAction="http://www.fsi.co.uk/services/evolution/04/09/SecurityService/AuthenticateByAccountUserType" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SecurityService">
<wsdl:port name="SecurityService" binding="tns:SecurityService">
<soap:address location="http://app7-ipg.independent.local/Evolution_FIXD/Services/Basic/SecurityService.svc"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
答案 0 :(得分:1)
从评论中,既然您已经获得了WSDL,我会在其中看到:
<xsd:element name="Authenticate">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" name="loginName" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="password" nillable="true" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
所以你可以为你的身份验证尝试这个:
$resp = $client->Authenticate(array("loginName"=> $username, "password" => $password));
当然,您需要为该服务提供有效的$username
和$password
。