我有一种情况,我必须解析网页的结果。在这种情况下,该网站不会提供用于检索此数据的API。我创建了一个调用网站的流程,但声明:Mule ESB:阅读HTML
消息:发送HTTP请求时出错。消息有效负载的类型为:NullPayload
任何帮助将不胜感激。
<http:request-config name="HTTP_Request_Configuration" host="http://www.resellerratings.com/" port="80" doc:name="HTTP Request Configuration" basePath="/"/>
<flow name="testFlow">
<http:listener config-ref="HTTP_Listener_Configuration" path="/testReseller" allowedMethods="GET" doc:name="HTTP"/>
<http:request config-ref="HTTP_Request_Configuration" path="/store/best_buy" method="GET" doc:name="HTTP" sendBodyMode="NEVER"/>
<logger message="#[message]" level="INFO" doc:name="Logger"/>
</flow>
主机可以是'host =“resellerratings.com”'和'www'可以删除..我想这也可以 –