Web Services - Fast Segmented Downoad Of File Through Webservice?

Mar 15, 2010

Im doing this project where i need to download files through a webservice (images, videos). The download MUST go through an existing webservice. The existing webservice was made when there were no need to upload and download files but the project has changed and now we need to do It through a webservice.Right now I have implemented the download as a method that returns a byte[], I open a streamreader and resds the entire file into a byte[] and returns it to my method. This is working file on small files <~1Mb, above it takes too long time. I want to show some progress (e.g. when the user downlaods a 20Mb video) which i cannot do right now. And i want to make it download much faster (is a strategy to use multithreading and several threads that downloads a part of the file?). It is within a WPF application i need to do this.

View 1 Replies

Similar Messages:

Web Forms :: Create Secure And Fast Emailing Services?

Oct 6, 2010

want to create Secure and Fast email service with chat tool like gtalk. i have email server. Please let me know how to create this. if any of you are interested to help me to create such application please ask me. I will accept his perposal with open heart. But before tell me how i can start or what i should do to make ground for that project.

View 2 Replies

Web Services - Authentication Problem Between Webforms App And A Webservice?

Mar 4, 2011

I got a ASP.Net webforms app which is using Forms authentication. It needs to authenticate against a webservice which uses windows authentication (+ impersonation).

I've tried (amongst other things) to supply credentials by using:
service.Credentials = new NetworkCredential(myUserName, thePassword, theDomain)

The problem is that I get 401 from the webservice no matter what I try.

View 2 Replies

Web Services - Webservice/asmx/ashx/whatever Programming??

Mar 25, 2011

I need to build a proxy (maybe a bad description) that receives an XML file from a 3rd party, saves it, sends it on to another 3rd party, gets the response back and passes that back to the original 3rd party. Let's call that entire process a "unit".Should I use a webservice? A Generic Handler? Something else?

I might have to do 20 "units" per second, but I know that each "unit" may span 30 seconds to a minute each, so really, I mean that I need to be able to have 1200 of these "units" running at the same time, in all varying stages of the process that I described above.As far as the file saving goes, I eventually want to put this into a database, but I would imagine that writing the file is quicker than actually saving the data into a database, so I'll just have another process that isn't nearly as time critical as this grab the files and insert them into the DB at its own convenience.

The "app" will only consist of 1 page and it will be running under SSL. This will likely be the only thing on this server at any given time to ensure that this little process is not a bottleneck.What in .Net would be a good (fast and scalable) way to go about this? I don't have any effective limit on what I would need as far as hardware goes -- so I can get a screaming machine if it would guarantee no bottlenecks.

View 2 Replies

WCF / ASMX :: Can Start Windows Services Remotely Using Webservice

Feb 10, 2011

how to start or stop the windows services of a remote system.

now what i need to know is, is there any possibility such that the windows services can be start or stop by using webservices.

suppose i have created a webservice in remote system which will keep on monitering the status of windows services present in that machine. now i will create a client service which will sends the service(windows service) name and action to be performed(that is starting or stopping the service).so is it possible to do in such a manner.

View 3 Replies

C# - How To Create Simple Stacked/segmented Html Bar

Aug 10, 2010

Rather than try to reinvent the wheel, how to create a stacked/segmented bar or point me to an existing control. Here's what I need:

Horizontal bar

Standard html

Each segment needs to be color coded from css

Each segment needs to be a percentage of the total (i.e. if total value = 100, then a value of 10 for one of the segments would be smaller than a value of 50)

Should be able to fit seamlessly into an html table cell
Should not be an image
Should only create a single bar with segments (not multiple bars/segmented bars)
Server-side generated, no AJAX

This should be as simple as possible given x number of values, create x segments.

I'm looking for code examples or already-built controls.

EDIT: For completeness:

int[] segments = { 10, 5, 45, 20, 20 };
Panel horizontalBar = new Panel();
for(int segmentIndex = 0; segmentIndex < segments.Length; ++ segmentIndex)
horizontalBar.Controls.Add(new Panel() { ID = String.Format("segment-{0}", segmentIndex), Width = Unit.Percentage(segments[segmentIndex]), CssClass = "segment" });

View 1 Replies

AJAX :: Microsoftajax.js Libraries To Make My Webservice Calls Via Javascript - Services Returning Basic Types

Mar 9, 2010

I'm working with the MicrosoftAjax.js libraries to make my webservice calls via javascript, right now all my services are returning basic types, like string, int, bool. can i also have my services return things like DataSets, DataTables, or custom Classes that I have built to my javascript side?

View 3 Replies

Web Services - Can A Webservice Class Inherit Page Class?

Jan 6, 2011

i have an application consisting of two asp.net projects. And i have have a BasePage which inherits System.Web.UI.Page and have the class some core logic which i require in all of my pages(Implemented in BasePage.cs). So all my pages inherit this BasePage.cs . Now can an Webservice inherit the same class apart from the normal webservice class System.Web.Services.WebService

View 4 Replies

C# - Refer The Resultant Xml File Which Is Being Constructed And Saved From Webservice File

Sep 6, 2010

This is my webservice code which performs constructs xml file and stores to particular destination ,Is this the correct way to store the resultant xml file ,or let me know if their are any alternate procedure to do so.

[WebService(Namespace = "[URL]")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class JsonWebService : System.Web.Services.WebService
XmlDocument xmlDoc = new XmlDocument();
public string keyword;
public JsonWebService () {
//Uncomment the following line if using designed components
[ScriptMethod(ResponseFormat = ResponseFormat.Json)]
public bool GetList(string keyword1, string streetname, string lat, string lng, string radius)
XmlDocument xmlDoc= CreateXML( keyword1,streetname,lat,lng,radius);
//save file to application folder which will be refferd by client application
xmlDoc.Save(@"C:Documents and SettingsDesktop lockBlock3.xml");
return true;

I am not able to refer that xml file constructed at webservice ,from clientside applicaton this will be my code on clientside ,is this the right way to refer saved xml file

function searchLocationsNear() {var searchUrl ="[URL]"; //reference for xml file stored in application folder
GDownloadUrl(searchUrl, function(data) {
var xml = GXml.parse(data);
var markers = xml.documentElement.getElementsByTagName('marker');

View 1 Replies

Web Services Deploy As A Single Executable File

Oct 22, 2010

I have developed multiple WebServices in my project in ASP.NET. Now I need to deploy them as a single executable file. How can i do that?

View 1 Replies

WCF / ASMX :: Partial Classes With In Web Services Proxy File?

Jan 28, 2011

I am implementing a simple complex number calculator web service. I am trying to pass an object from the service to the client. I declared a single complexnumber class in my .asmx file, I later use this class in webmethods


View 1 Replies

Web Forms :: How To Find All The Web Services And Windows Services Running On A Server

Feb 4, 2011

How to Find All the Web Services and Windows Services Running on a Server in ASP.Net. I have the server details with me and want to find all the Web services running on it.

View 1 Replies

WCF / ASMX :: Custom WSDL File Generation For Classic Web Services (not WCF)

Mar 5, 2010

I'm about a custom WSDL File Generation for a Classic ASP.NET XML Web Service.

The issue is I didn't find out how to specify mandatory parameters in my WSDL, since ASP.NET Web Services are generated on ?WSDL location, I thought I would do that from Web Method Annotations, but I found no issue.

Also I have been on a pose where the developer could hide WSDL Generation by specifying a custom WSDL Binding. But in my case I need to let other system access ?WSDL location with a Customized WSDL.

View 1 Replies

C# - Send File Via Webservice?

Aug 17, 2010

how can i send a file via web service in my site. same as gmail attachments in c# and asp.net

View 2 Replies

Configuration :: Deploy Window Services And WCF Services Using Web Package?

Apr 3, 2010

I am using Visual Studio 2010 Release candidate1. I have to deploy my web application which consists of a website, certain window services, certain WCF services and Sql Server 2005 database.I read Vishal Joshi's blog(http://vishaljoshi.blogspot.com/2009/09/overview-post-for-web-deployment-in-vs.html) detaing Web Package in VS2010. I want to know how to deploy window services and WCF services using Web Package. Also, I want to create a web setup (.msi) for deployment instead of Web Package so that the .msi takes care of all the application and database deployment like the web package does.

View 1 Replies

WCF / ASMX :: Create Web Service From WSDL File (top Down Approch For Web Services Development)

Jul 7, 2010

I have a WSDL, and I need to write this web service. (I am not the client, I am the provider of this service) Is there any tool and/or best approch to create this Web Service?

View 1 Replies

C# Webservice Returning Docx File?

Nov 8, 2010

I have some xml data. I've made an asp.net soap based webservice that takes the xml as a byte buffer applies xsl transformation to it and converts it to a docx file. But when i return the docx file using the response object i get an error that client found response of type application/vnd-word but it was expecting text/xml.

Service Snippet to push document file after xsl transformation

Context.Response.ContentType = "application/vnd.openxmlformats- officedocument.wordprocessingml.document";
Context.Response.AddHeader("Content-Disposition", "attachment; filename=" + "test.docx");

View 3 Replies

WCF / ASMX :: WebService Returning Pdf File?

Jul 8, 2010

I am using C# 2.0. I am trying to create a webservice that returns a pdf file.

I tried this:


Is this the correct way? I am not getting any errors, but want to know, if this is correct.

View 6 Replies

C# - Download File From Webservice - In ASP.NET Site

Feb 10, 2010

I want to push a file to the browser from a website using a webservice. I'm currently reading the file into a base64 byte array, and returning that from the webservice. This webservice is called from a website, and i'm stuck on how to push this as the original file to the browser. Ideally I would like to read the byte array into a memory stream, and then just write it to the Response stream if possible so the end user just downloads the file.

View 4 Replies

Installation :: State Services Not Found In Services.msc?

Jul 20, 2010

I installed vs2010 in my machine and opened solution (of same version copied from other machine).

But getting stateservices error message..Moreover i am unable to find asp.net services in the list of services under serives.msc.

View 2 Replies

WCF / ASMX :: File Management Between Webservice And Website

Aug 8, 2010

I have a Webservice that receives a file (byteArray) and saves it on server disk.


But my webservice isn't hosted on the same folder of my website.

I mean: [URL] Is it possible to put a webservice on the same folder of the main website? Or it's not a problem ? (Can I retrieve the files in the webservice's folder from website?)

View 1 Replies

Steps Involved In Reading An Xml File From Webservice?

Mar 19, 2011

I would like to know what are the basic steps involved in setting up your application to able to read data from another application. Then take that data and modify it and send it back to the application.
The data being read will have over 100 fields.... what is the most efficent way to store them? Put them in a class object?

I know web services are involved..

The application is in .NET using vb

View 1 Replies

WCF / ASMX :: How To Set WebService NameSpace In Web.config File

Aug 27, 2010

I am trying to put the namespace value as a key in web.config file, so that when I deploy this on production, I just have to change the namespace key in the config file only, not on all of my webservice cs files. But When I try to browse this webservice after changing this code I get compilation error.



MyWebService.cs (this code works)


Compiler Error Message: CS0182: An attribute argument must be a constant expression, typeof expression or array creation expression of an attribute parameter type

View 1 Replies

WCF / ASMX :: Write Html File Through Webservice?

Sep 12, 2010

I am writing an application in which I want to generate dynamic html file based on the parameters of jquery objects. I want to pass the parameters to a webservice which will produce the required html page. How I can achieve it.

View 5 Replies

WCF / ASMX :: Fill A String From A File In A Webservice?

Nov 11, 2010

I have a path to a file, say "~xsdFile.xsd".The content of this file I want to set into a string.

I use the following code:


The problem I get if I use this webservice twice in 10 seconds I get the following error: "Cannot acces files because another process is using it".

View 2 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved