Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
|
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 19th, 2005, 11:30 AM
Registered User
 
Join Date: Dec 2005
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to albusr
Default can the webservice return a file?

i want to return an xml file in webmethod
how can i do that?
if anyone know please tell me.
thanks

 
Old December 19th, 2005, 11:59 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

You could return the XML as a string then make it back into a file or return the binary data of the file as a byte array. Also, I suppose you could load the XML into a XML document object, and make that the return type of the webservice method.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
to know Webservice vingo_mail ASP.NET 2.0 Basics 1 March 3rd, 2008 01:16 PM
return more then one array from class file Komila ASP.NET 2.0 Basics 4 June 27th, 2007 07:10 PM
Upload a file with a webservice method. chriskeeble .NET Web Services 2 March 14th, 2005 10:42 AM
return previous file after a window is closed hosefo81 PHP How-To 2 January 1st, 2004 02:13 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.