我试图使用 evernet 肥皂服务获取 NWMLS 的数据。在这里,我必须提取多个列表编号/列表 ID 的数据。但我收到错误响应。下面是我试图获取特定数据的代码片段。
<!-- language: php -->
$client=new SoapClient('http://evernet.nwmls.com/evernetqueryservice/evernetquery.asmx?WSDL');
$XMLQuery = "<?xml version='1.0' encoding='utf-8' standalone='no' ?>";
$XMLQuery .="<EverNetQuerySpecification xmlns='urn:www.nwmls.com/Schemas/General/EverNetQueryXML.xsd'>";
$XMLQuery .="<Message>";
$XMLQuery .="<Head>";
$XMLQuery .="<UserId>******</UserId>";
$XMLQuery .="<Password>******</Password>";
$XMLQuery .="<SchemaName>StandardXML1_1</SchemaName>";
$XMLQuery .="</Head>";
$XMLQuery .="<Body>";
$XMLQuery .="<Query>";
$XMLQuery .="<MLS>NWMLS</MLS>";
$XMLQuery .="<ListingNumber>1045735555</ListingNumber>";
$XMLQuery .="<ListingNumber>10641974354</ListingNumber>";
$XMLQuery .="<PropertyType>RESI</PropertyType>";
$XMLQuery .="</Query>";
$XMLQuery .="<Filter></Filter>";
$XMLQuery .="</Body>";
$XMLQuery .="</Message>";
$XMLQuery .="</EverNetQuerySpecification>";
$params = array ('v_strXmlQuery' => $XMLQuery);
$result = $client->RetrieveListingData($params);
$access = $result->RetrieveListingDataResult; print_r($access);
$xml[] = simplexml_load_string($access);
我从 Soap 服务得到的响应是
" 如果内容模型类型为 "all",则元素 'urn:www.nwmls.com/Schemas/General/EverNetQueryXML.xsd:ListingNumber' 不能出现多次。 "
如何形成需要包含多个列表编号的查询,以便我得到准确的结果??
谢谢