webService call with attachments

Hi All,

I have a requirement where i have to pass attachments of various formats(pdf,jpg,tiff etc) as input in a webservice call as well for REST call .Kindly share any information on how to create such types of service and WSD’s.

Thanks and Regards,
Raj