Connect REST: pass query-params in message body
I need to use REST Connector to simulate a file upload. The raw request should look like below
POST <scheme>://<host>:<port>/<path>/upload HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/form-data; boundary="----=_Part_23_27316591.1476188379376"
MIME-Version: 1.0
Content-Length: 477
Host: <host>
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
------=_Part_23_27316591.1476188379376
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: form-data; name="FormElement"
575885858
------=_Part_23_27316591.1476188379376
Content-Type: text/plain; charset=Cp1252; name=today.txt
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="today.txt"; filename="today.txt"
abc
def
------=_Part_23_27316591.1476188379376--
The above request is created using soapUI. When I add a query parameter in my connect rest, it appends the parameter in query string. I need it to be send in the message body. Please suggest a way to achieve this.