Mule ESB and "multipart/form-data" -
i have working web service allows me upload file. i'd set mule 3 in front end of have not been successful in getting pass along payloads mime type "multipart/form-data".
attempts produce 400 error: "the request sent client syntactically wrong (bad request)."
the next flow (which doesn't accomplish purpose serves test) works fine, passing along whatever text posted.
<flow name="flow1" doc:name="flow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="test/rule_file" mimetype="text/plain" doc:name="http"/> <http:outbound-endpoint exchange-pattern="request-response" host="localhost" port="8080" path="test/rule_file" mimetype="text/plain" doc:name="http"/> </flow>
however, when switch "text/plain" "multipart/form-data", produces error listed above.
<flow name="flow1" doc:name="flow1"> <http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8081" path="test/rule_file" mimetype="multipart/form-data" doc:name="http"/> <http:outbound-endpoint exchange-pattern="request-response" host="localhost" port="8080" path="test/rule_file" mimetype="multipart/form-data" doc:name="http"/> </flow>
can point out how might working?
it seems you're attempting build http proxy: create work have re-create properties in both request , response phases of flow , propagate path extension have been used on inbound http endpoint.
this feasible hand it's much improve utilize ready-made pattern this:
<pattern:http-proxy name="patternproxy" inboundaddress="http://localhost:8081/test/rule_file" outboundaddress="http://localhost:8080/test/rule_file" />
mule esb multipartform-data
No comments:
Post a Comment