Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Is it possible to stream a file to a Web service?

I was wondering if it's possible to stream a file to a Web service. We want to write a validation Web service. For example, we would send an XML-based file to the service and get a list of issues in return. My group is using ASP.NET.
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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchSoftwareQuality

SearchAWS

SearchCloudComputing

TheServerSide.com

Close