Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 12th, 2004, 10:53 AM
Registered User
Join Date: Jan 2004
Location: , , United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Upload a file with a webservice method.

I am looking to be able to upload a file using a webservice.

My problem is as follows:

a) The webservice method must be accessible from a standard, static HTML page (not served by the .NET web server)

b) The HTML form needs to use the enctype="multipart/form-data" attribute on the FORM tag in order to send the file to the webservice.

c) The webservice method fails because of the enctype attribute.

Can anyone help? (I've seen examples of processing the file using an ASPX page and then calling the webservice from there, but this is not the solution I want - I need the webservice to be called directly).


Reply With Quote
  #2 (permalink)  
Old January 12th, 2004, 10:58 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts

If you want to be able to call a web service from a plain HTML page, this sounds like more of a very complex JavaScript operation than a web service one. You'll have to write javascript that will read the file locally and then somehow formulate a call to the web service. I don't think this will be very easy. Why the requirement of a static HTML page?

Work smarter, not harder.
Reply With Quote
  #3 (permalink)  
Old March 14th, 2005, 10:42 AM
Registered User
Join Date: Mar 2005
Location: Ringwood, Hampshire, United Kingdom.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Try the following link:


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
WebService(Method Cal) RAGHAVENDRAN .NET Web Services 1 January 2nd, 2008 10:17 AM
Upload file method kingvn2005 ASP.NET 2.0 Professional 1 August 21st, 2007 05:06 AM
Error calling a method in the webservice madhusrp .NET Web Services 1 April 12th, 2007 08:54 AM
can the webservice return a file? albusr .NET Web Services 1 December 19th, 2005 11:59 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM

All times are GMT -4. The time now is 07:50 AM.

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