Webservice看起来像这样:
<s:element name="VerifySession">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="request" type="tns:VerificationRequest"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="VerificationRequest">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SessionKey" type="s:string"/>
<s:element minOccurs="1" maxOccurs="1" name="ApplicationID" type="s1:guid"/>
</s:sequence>
</s:complexType>
我尝试用不同的方法解决问题,目前我的代码看起来像这样
try {
$info = $soapClient->__call("SignIn", array($ap_param));
$search_query = new StdClass();
$search_query->oVerificationRequest = new StdClass();
$search_query->oVerificationRequest->SessionKey = $token;
$search_query->oVerificationRequest->ApplicationID = "00000000-0000-0000-0000-000000000000";
$info = $soapClient -> VerifySession($search_query);
} catch (SoapFault $fault) {
echo "ERROR" .$fault;
}
$token
值已知,因此没有问题。