在对corelogic发出httparty发布请求期间,我收到以下错误状态
(状态_Condition ='失败'_Code ='0267'_Description ='该县不提供所选产品')
有人可以帮助我找到问题吗?
doc = Nokogiri::XML(File.open ("comparable_request.xml"))
attrr = doc.xpath("//_PROPERTY_CRITERIA")[0].attributes
attrr["_StreetAddress"].value = address["street"]
attrr["_City"].value = address["city"]
attrr["_State"].value = address["state"]
attrr["_PostalCode"].value = address["zip"]
url = "https://mystaging.connect2data.com"
begin
response = HTTParty.post(url,
:body => doc.to_xml,
:timeout => 20, #time out for 20 sec
:headers => {'Content-Type' => "application/xml;`enter code here`})
rescue
end