How to Pass XML input to API ?

Hi Friends I need help in API .

How to Pass xml Input to API

Following is the api Format Sample

Eg:- https://<host>/<var1>/<var2>/<var3>/<var4>/<var5>

<host> = host name
<var1>,<var2>,<var3>,<var4>,<var5> = Parameter

API input data should be sent to this URL as XML document using Content-Type "application/xml" or "text/xml".

please tell me the solution for this ?