我有一個HTTP POST請求發送到Web服務的流程。它不返回預期的SOAP XML響應,而是返回一個頁面重定向。 測試服務時,我使用SOAPUI。我使用相同的URL和POST請求。我得到實際的數據。沒有頁面重定向。Mule HTTP POST請求返回302頁面重定向
我的流動如下所示:
<flow name="webService_Flow">
<http:listener
config-ref="HTTP_Listener_Configuration"
path="/getWS"
allowedMethods="GET"
doc:name="HTTPS"/>
<parse-template
location="templates/ws.template"
mimeType="text/xml"
doc:name="Parse Template"/>
<http:request
config-ref="HTTP_Request_Configuration"
path="${webservice.request.path}"
method="POST"
doc:name="HTTP">
<http:request-builder>
<http:header headerName="Content-Type" value="text/xml"/>
</http:request-builder>
<http:failure-status-code-validator values="302"/>
</http:request>
<flow-ref
name="transformWS_subflow"
doc:name="Transform WS"/>
<logger
message="#[message]"
level="INFO"
category="HTTP_MESSAGE" doc:name="Logger"/>
</flow>
HTTP請求連接器看起來如下:
<http:request-config
name="HTTP_Request_Configuration"
protocol="HTTPS"
host="${webservice.host}"
basePath="${webservice.path}"
port="${webservice.port}"
followRedirects="false"
doc:name="HTTP Request Configuration"/>
我已驗證的URL,路徑,端口和協議。任何想法如何彌補這一點?
我甚至嘗試使用Web服務消費者連接器。我得到頁面重定向。 – tbriscoe