title: Webservice - Multiple file output formats
body: <p>I need to create one webservice, that is used to download an audio(wav) file from server by taking input one string id. If audio file is not present at server, i need to send error back in json format.</p>
  
  <p>Now the questions is - How to give the extension for downloaded file. I have no prior idea whether response will be success or failure.</p>
  
  <p>What i am doing now is after dowloading a file - i am changing extension of file using Contet-Type header in response according to audio/wav or application/json.</p>
  
  <p>Is there any way to specify file name with extension from server only. i.e downloaded file with name and extension.</p>