REST message through MID server - 404 error

jamesgo
Giga Contributor

I am trying to send make a post REST call (with json contents) through MID server but keep getting 404 error (response says "The requested resource is not available."). when I check the ECC queue I found the content-type of the post call is always "text/html;charset=utf-8" even I added "application/json" as content type in the REST message header...however I am not really sure if this is the root cause... the web services seem working fine if I make the same call in Chrome using Advanced REST client.

<httpHeaders><httpHeader name="Content-Language" value="en"/><httpHeader name="Date" value="Fri, 17 Jul 2015 16:08:32 GMT"/><httpHeader name="Content-Length" value="1005"/><httpHeader name="Content-Type" value="text/html;charset=utf-8"/><httpHeader name="Server" value="Apache-Coyote/1.1"/></httpHeaders>

Any idea how to trouble shoot this? any help is much appreciated!

5 REPLIES 5

if the server is not behind firewall and not within a private network , why to send Rest messages through midserver? why not just send outbound rest message without selecting "use midserver"?