Depending on the size of file and its intended use, there are two different techniques you could use. If the files are relatively small, you can pass the files as a regular parameter to the Web service, either declared as a string (if you don't want the document processed), or as a System.Xml.XmlNode (if you want .NET to have already parsed the document for you). If your files are much larger (large enough that you might run out of memory if they are brought into memory all at once), you might want to consider passing them as attachments to the SOAP messages. To do this, you will need to use the Microsoft Web Services Enhancements (WSE) toolkit.
Dig Deeper on Topics Archive
Related Q&A from Daniel Foody
Daniel Foody defines end-to-end security and discusses the different parts of security to consider. Continue Reading
Daniel Foody discusses the "find-bind-execute" paradigm and secure service directories. Continue Reading
A SearchWebServices.com member asks one of our experts, "How much of their IT budget are companies allocating for strategic initiatives such as SOA?"... Continue Reading