PHP函数SOAP 1.2

我需要一些帮助来使用PHP执行SOAP请求。

例如,一种搜索发布者的方法:

POST /webservice/search.asmx HTTP/1.1
Host: www.host.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
    <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://www.w3.org/2003/05/soap-encoding" xmlns:tns="http://host.com/HostNET/" xmlns:types="http://host.com/HostNET/encodedTypes" xmlns:rpc="http://www.w3.org/2003/05/soap-rpc" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
      <soap12:Body soap12:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
        <tns:findPublishers>
          <sessionToken xsi:type="xsd:string">string</sessionToken>
          <expression soapenc:id="id0" xsi:type="tns:SearchExpression">
            <expression xsi:type="xsd:string">string</expression>
            <phonetic xsi:type="xsd:boolean">boolean</phonetic>
            <inflections xsi:type="xsd:boolean">boolean</inflections>
          </expression>
          <distributeurs xsi:type="xsd:boolean">boolean</distributeurs>
        </tns:findPublishers>
      </soap12:Body>
    </soap12:Envelope>

我有sessionToken,但我不知道我与<expression soapenc:id="id0" xsi:type="tns:SearchExpression">行及其内容有关。

try{

   $search = new SoapClient("http://www.host.com/WebService/search.asmx?wsdl",array("soap_version" => SOAP_1_2));
   $search->findPublishers($sessionToken,???????,FALSE);

}catch (SoapFault $e){
   print_r($e);
}
format_88 回答:PHP函数SOAP 1.2

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2935474.html

大家都在问