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
Dan Foody discusses the capability of using Web services for ASP applications. Continue Reading
Daniel Foody discusses the "find-bind-execute" paradigm and secure service directories. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.