How To Send A .ZIP File To Web Service Using (C#)
Aug 16, 2010How to send a .ZIP file to Web Service using ASP.NET(C#)
View 2 RepliesHow to send a .ZIP file to Web Service using ASP.NET(C#)
View 2 RepliesHow to send a .ZIP file to Web Service using ASP.NET(C#)
View 3 Repliespossible to send an image file to another terminal through web service?
View 4 RepliesI Have this architecture:
WebSite ASP.NET <------> WCF Service <--------> DataBase DAtabase gathering very big files. User request a big file in aspx page, through WCF Service. Service call database, and get the big file.
Now, my entity (datacontract) has those fields:
string Data1
string Data2
string Data3
byte[] FileBigger
How to send big file throught WCF Service to Website ? which best practices for do it ?
I have an asp.net panel having various controls including gridview. I have converted this panel into pdf and attached it as an email attachment using memory stream. Everything is working fine. Now I have an File upload control outside panel through which I have to attach a file and send it in mail along with the already attached panel. But I am unable to figure out how to do it.
View 1 RepliesThat is what I have to do: Send XML to a web service. I have preliminary requirements of what I have to generate in the XML. So, I just create this big, long XML stream and send it to the service? I would like to read a little bit about this to educate myself. Do you have a good link, or can you voice your opinion of this one,Additionally, I am coding in VB.NET so I will have to convert that code if it is a good example.
View 15 RepliesI am developing a .net application using Web Services, and the application is consuming them using Spring.Net WebServiceProxyFactory. I need to send to the web service the username and password of the user that is logged in to the application, consuming the web service. Reading some forum post [URL] they seem to refer to an example that used to be in the spring documentation [URL], an example of how using SOAP headers for authentication using the WebServiceExporter and WebServiceProxyFactory, but the link to the file is broken. Do you know a way that I can send the user credentials as a soap header using spring.net? Or any data (for example, a token ID that the web service will use later to get the user credentials).
View 1 RepliesI have a following architecture:
1) client logins to ASP.NET web site (www.site.com) where the session expired in 3000 minutes and cookieless set to false.
2) After some time client opens Activex in browser. Activex connects to Session Enabled Web Service (www.site.com/Service.asmx) through .NET managed classes.
What I need to do is send cookies which browser recieved while authenticated through Web site. and if such cookie does not exist then the user is not authenticated and connection to Web service will be prohibited.
I understand that I need to use System.Net.CookieContainer class, but How do I set this broser cookie to this class?
localhost.WebService1 web = new localhost.WebService1();
System.Net.CookieContainer cookie = new System.Net.CookieContainer();
web.CookieContainer = cookie;
I want to send a class instance to my Web Service(ASP.NET - C#). How can I do?
View 1 RepliesI want to run a web service method with parameters and get method return value back using JQuery.
ie.
client :
var result = dosomething(var p1, var p2, var p3 ....);
when do something accesses WebService with
dosomewebservice(int p1,int p2, string p3) { return "something" };
result == "something";
I am trying to send System.Data.Datatable from a WCF service, to a C# Windows Forms application. When I execute, I get follwowing message:The maximum message size quota for incoming messages (65536) has been exceededThe datatable I am trying to send can get quite large. What would be the best approach to send the DataTable across without hitting message size limit, or in other words, what are ways around this problem?
View 2 RepliesI'm new to web development so I'm not sure what's the best option for the problem that I'm having.Basically I have a web application that calls a web service for processing some data.This process may take a long time (hours) and I would to know if there is an easy way to send some status information to the client from time to time.Right now, the client makes the request from the browser and it just waits there until it finishes.
How can I send some information from the web service? I would like to send a percentage and some additional text specifying what is being done.
i am thinking to create a Web Service to send emails ,this is the first time i am using web service
View 1 RepliesI am creating a website with a secure login, here I have users who register for my web site with their Credentials. When the user finishes the registration process & logs in to his/her account, there is a button called activate. Unless they click the activate button, they can't progress. Upon clicking the button, an activation code is sent to the mobile no(as a sms), which the user has given during registration.. I am using net framework 3.5, asp.net,C# and SQL Server 2005, I am doing this with web service, I have got my web service, but its not that accurate.. here i am using web service from .. [URL] .. here i want to know how to send sms in asp.net using web service?
View 1 RepliesI am trying to generate an excel spreadsheet in my vb.net web service but it looks like its not allowing me. I need to generate it from xml string and send this spreadsheet in an email from the same web service.
View 1 RepliesI am trying to create a web service that can do the following functionality:
Request XML
[Code]....
How can I create web service to do this.
my target is to create form that validated in the client side, and only when it is valid, send ajax call to asmx web service. i manage to do that two separately: client-side validation and ajax send to web service, and i want to combine this two. how?..
i have this form (i simplify everything for simple example):
[code]...
How can i get wcf service to send larger packets of data at a time?
EDIT
So, apparently the default BytesPerRead is 4096, however I've changed that value on both the client and the server. here is the config file
Moreover, I've found an unanswered post dealing with the same issue WCF maxBytesPerRead limit to 4096
Server
SERVER
(Note that i have two endpoints, one is for downloading content in basicHttpBinding and one is for communication using ws2007HttpBinding, I am referring to the basicHttpBinding endpoint in my question)
[code]....
I have to define a web method which will fetch XML documents from another web service based on the list of projects from the database. Now I need to send these XML documents in different SOAP envelopes. XML documents can be more than one.
View 1 RepliesI d like to send bulk emails as part of custom reminder service for my website (500 emails approximately).Which is the better way to send all these emails without spamming? I was thinking of sending 15-20 emails per minute, to avoid overloading mail server. Is it better to use multiple TO recipients or use BCC?The reminder service will run on a background task.
View 5 RepliesI want to make sure my theory of an upcoming project will work. Online ordering form for a restuarant. Order will be for pickup or delivery. no payment online. so gather order information and call web service which lives on a computer at the restaurant, this web service will log the order information into a file then send the order information to a ticket printer in the kitchen.
View 2 RepliesI would like to manually send an HTTP 40x error code to client from a web method in c# asp.net web service.
Specifically I need to send 400 (Bad request) or 401 (Unauthorized).
I was thinking about the flow to look like:
if (a <= 0)
{
//send HTTP Error 400 - Bad request to client
return;
}
Is it possible? How?
I am using the local database in web kit browsers and to get the data from the database I have the following code:
function synchronise() {
myDB.transaction(
function (transaction) {
transaction.executeSql("SELECT * FROM Patients;", [], synchroniseHandler, errorHandler);
}
);
[Code]....
i have designed a web service which would create 2 csv files on the system. I want to send the links to the location of the files as an url attachment over the aspx page.
like : http://myserver/download.aspx?file1=C: empimage1.png&file2=C: empimage2.png
the output from the asmx web service is : [Code]....
where xx.xx.xxx.xxx is the ipaddress. this is the whole output i get from the webservice.
how do i get the aspx page to send the attachment in the format i mentioned above? I have added an asp website to the project and added the webservice as a web reference to this but i do not know how to get the location from the xml output file of the webservice result.
There are many customer' order as pdf file stored in one file server.my app just open url (file path) to display pdf file on the screen.Now, boss want me to create a asp.net app to send an email with attached order pdf file which is the same url as intranet. How to complete it?
View 5 Replies