I want to host a web service in sharepoint 2013 to upload xml documents and then consume it. I know how to do it in a pure .Net web app, how can I host it in Sharepoint 2013? maybe is only a sharepoint 2013 app?
You can deploy you web service in Sharepoint under "_vti_bin" folder.
The following article help you in deploying your service in sharepoint: