Click here to Skip to main content
15,893,508 members
Everything / Webservice

Webservice

webservice

Great Reads

by Vincent Maverick Durano
This article will talk about how to implement a custom wrapper for your ASP.NET Core and Web API applications for managing exceptions, providing meaningful and consistent responses to consumers.
by Rene Bustos
WCF WebService IN VB.NET Response JSON
by YasIkeda
ASP.NET Core 3.0 uses a built-in JSON converter from System.Text.Json so that JsonConverter attribute from Newtonsoft.Json does not work by default.
by Patrick P. Frey
This tutorial based on a docker image will guide through the development of a search engine service based on Strus and its Python Bindings within the Tornado web-framework.

Latest Articles

by Vincent Maverick Durano
This article will talk about how to implement a custom wrapper for your ASP.NET Core and Web API applications for managing exceptions, providing meaningful and consistent responses to consumers.
by Steffen Ploetz
YES, you can - use native DLLs in your Azure Functions via P/Invoke ([DllImport]) as you already know it from .NET Framework, and safe the code you have developed and maintained for decades with much effort and patience.
by YasIkeda
ASP.NET Core 3.0 uses a built-in JSON converter from System.Text.Json so that JsonConverter attribute from Newtonsoft.Json does not work by default.
by Nipunu W
Developing an Android application using Retrofit to connect to an API

All Articles

Sort by Updated

Webservice 

3 Feb 2010 by #realJSOP
Well, that kinda depends on if the service is a legacy service or a WCF service. Use this google search:"consume legacy webservice in wcf"or"consume wcf webservice"
3 Feb 2010 by #realJSOP
Ypou've asked several questions here, and every one could be answered with a little effort on your own part by using google.Here's a link I picked out of 199 MILLION results when I googled "web service security":http://www.xml.com/pub/a/ws/2003/03/04/security.html[^]
4 Feb 2010 by #realJSOP
A google search found this among almost 30,000 results:http://www.soapuser.com/basics4.html[^]
26 Apr 2010 by #realJSOP
I would go web service as long as you make it secure enough.
21 May 2010 by #realJSOP
Make interfacing with your web service simpler and more maintainable
15 Jul 2010 by #realJSOP
It's really not that hard to use google ("wcf web service linux client"). Here's one of the 210,000 hits returned:http://coab.wordpress.com/2009/10/15/calling-wcf-services-from-a-linux-c-client-using-gsoap/[^]
25 Jul 2010 by #realJSOP
The topic is much too broad to give you a concise answer here. Google is your friend. Use the search phrase "c# web service".
29 Jul 2010 by #realJSOP
Leaving a connection open any longer than absolutely necessary is a bad idea.You probably should refactor your code so that the job is kicked off by the service, and the service method terminates. At that point, you can either have the remote host contact your machhine via WCF (or TCP) when...
3 Aug 2010 by #realJSOP
Instead of dealing with complex types, I have a single method in my web services that accepts a stored proc name and a xmlstring of parameters. The web service method translates the xml parameters into sql parameters, and calls the stored proc, which then returns its datasat as xml.One type...
6 Aug 2010 by #realJSOP
Get the client's IP, and call a stored proc with that IP as a parameter, and return the appropriate record (if found). If no records were returned, it's an invalid IP. There's no "optimization" needed.
20 Jan 2011 by #realJSOP
I found this on google (search phrase is "webservice set keepalive false") - the 2nd link among 118,000 results:http://www.eggheadcafe.com/software/aspnet/30191651/disabling-keepalive.aspx[^]
20 Jan 2011 by #realJSOP
I googled "remote wmi", and this link uis the first of 605,000 results:http://msdn.microsoft.com/en-us/library/aa389290(v=vs.85).aspx[^]
27 Jan 2011 by #realJSOP
I wrote an article about how I handle the asynchronous nature of Silverlight:How I Optimized my Silverlight Asynchronous Web Service Consumption[^]
9 Feb 2011 by #realJSOP
Hosting a web page (including Silverlight) requires a web server (usually IIS when you're talking about .Net, but Apache can be used as well), even if you're just on a LAN. Clients can't usually change a web site/app so the rest of your question doesn't make any sense.
16 Feb 2011 by #realJSOP
You may have an invalid character in your xml. Does the debugger help at all?
17 Feb 2011 by #realJSOP
You have to put the files in the right place. When I get to work, I'll tell you where I put them for our stuff.
1 Mar 2011 by #realJSOP
Yes, you already knew the answer. That's not what a web service is for, and it won't do it.
23 Mar 2011 by #realJSOP
If you're hitting a web service, there should be a method available for inserting new data. If there isn't, you have to add one (if you have the source code to the web service). All of the work of inserting a new row into the database should be handled by a stored procedure that is called from...
28 Mar 2011 by #realJSOP
You don't have a problem. There are thousands of examples of sending email from a .Net app (and it doesn't matter if it's winforms, wpf, silverlight, asp.net, or a web service. It's always done the same way. If you google "C# send email", you'll get back 5.5 MILLION hits. I would be willing to...
29 Mar 2011 by #realJSOP
0) Change your stored proc to change the query based on whether the specified date range results in a single day, or a range of days. 1) Adjust your query so that it's built dynamically, and it either queries for a range of dates, or for a single date, depending on how the specified date...
29 Mar 2011 by #realJSOP
Try using SqlDataReader.BeginExecuteReader. It's the asynch version of ExecuteReader and requires a bit more work pon your part, but it may address your problem. Having X million records to search doesn't help anything either.
7 Apr 2011 by #realJSOP
If it were me, I'd create a separate web service for the other database, sinc eit needs its own connection string.
2 May 2011 by #realJSOP
Well, you can ony pass parameters of the type that the web service method is expecting. How is being a "dynamically-invoked" method at all relevant to passing parameters?
16 May 2011 by #realJSOP
The perfomance of the portal depends mostly on how much DotNetNuke baggage you use, and your ability to code a performant module. Web services are kind of a known factor where performance is concerned, and are primarily driven by external environmental factors, such as the perofrmanc eof the...
7 Jul 2011 by #realJSOP
A web service doesn't hold the data. It provides read and/or write access to it. the data itself is stored in some sort of data medium, usually a database, but sometimes a flat file.If you want to use interop, you should create a .Net assembly that communicates with the web service, and...
15 Jul 2011 by #realJSOP
Even if someone here had that kind of code, they wouldn't just give it to you.
25 Jul 2011 by #realJSOP
Google results for "httpwebrequest send file"[^]Check out the first link.Google is free to use, btw...
26 Jul 2011 by #realJSOP
First, you don't need a web service to do "make the file accessible". Just code up a web page that has no rendered output and that does a Response.WriteFile with the file in question. You don't need to parse the file to make it accessible. Your question is vague at best.
21 Aug 2011 by #realJSOP
25 Aug 2011 by #realJSOP
This might help, but no guarantees:http://nishantrana.wordpress.com/2008/08/13/consuming-an-aspnet-web-service-using-soap-protocol-from-javascript/[^]
2 Sep 2011 by #realJSOP
WFC is a transport layer that allows a web service to communicate with clients.
29 Dec 2011 by #realJSOP
If your intent is to send the parameters as XML, you're not doing that. You're writing the parameters to a file, but not doing anything with it after that. beyond that, I see nothing really wrong with your code (other than missing some whitespace to make it a little more readable).
31 Jan 2012 by #realJSOP
I deployed a web service to a secure server, and when I try to add a web reference to that service to a desktop app, the service is found and I get the expected output on the left side of the Add Web Reference dialog box (it shows the name of the service and all of the exposed methods), but I...
1 Feb 2012 by #realJSOP
I'me developing a WCF web service. I want to be able to use it on my local box (for debugging purposes, and deploy it to two secure web sites. I've come up with the following service model configuration:
1 Feb 2012 by #realJSOP
I got it to work, but I'm not sure why. I had originally done this:public class CrisSvc : ICrisSvc{ // web methods are here}public class LocalSvc : CrisSvc{ // empty class}public class DevSvc : CrisSvc{ // empty class}public class ProdSvc :...
13 Oct 2016 by #realJSOP
You can't set a timeout on a per-method basis, but could do something like what is described at this link:Crafting a Task.TimeoutAfter Method | Parallel Programming with .NET[^]My google search was "c# timeout with task".Here's some minimal code that may work for you:///...
28 Nov 2016 by #realJSOP
It's because you're using localhost. You have to use the IP address of the machine where the service is hosted.
3 Oct 2018 by #realJSOP
Try using this to initialize tyour dictionary. Dictionary> analysisComp = new Dictionary>(); analysisComp.Add("CHEM", new List() { "Water", "Liquid" }); analysisComp.Add("Basse", new List() { "Acid", "Calcium", "Magnesium" });
12 Mar 2019 by #realJSOP
You're essentially "crossing the streams", and .Net is gonna complain. Welcome to Microsoft's newest forced incompatibility infrastructure. If it were me, I would get refactor the web service to use .Net Framework instead of .net Core (it honestly shouldn't be difficault to do), and get on with...
31 Oct 2019 by #realJSOP
I bet it's because you're not passing the password in your request header...
27 Nov 2012 by 10110010
Hello,i have a WebService that use WSE 3.0.In an Consumerproject added the Webservis as WebReference.Now i have an generated Proxy Class.This Class inherits System.Web.Services.Protocols.SoapHttpClientProtocol.But i need that the Class inherits...
28 Feb 2014 by 1989priya
Hi...I want to bind hard coded country name in dropdownlist using jquery ???I searched this on goggle,I found that would be done using web service.Can you please tell me how to bind hard coded value in dropdownlist
23 Aug 2011 by 1prince
I have to use this web service in my website hwo to consume this web service.web service URL is " http://wsdev.ccratravel.com/ws/HotelWebService.asmx?WSDL "credentials areUserName: [edit] credentials removed [/edit]Password: [edit] credentials removed [/edit]CompanyId: [edit]...
23 Feb 2012 by 204.sharma
Hii, Can we get our gmail account information in our other application.if yes then how can i get information.
21 Jun 2011 by 2irfanshaikh
I suppose this will help you:Whois Command in Unix,Linux[^]"whois" equivalent in CMD?[^]
21 Jun 2011 by 2irfanshaikh
you return string in XML format.
22 Jun 2011 by 2irfanshaikh
You can check the below link in this application they have created the Webservice and through login.aspx they are authenticating the webservice call.Sending Files in Chunks with MTOM Web Services and .NET 2.0[^]
7 May 2013 by 2m_c@
I have created a windows service application with C# with .Net 2.0, and added a web service ashttp://localhost/postIncidents.ws.php?wsdlIt has the method "ReportIncident". I checked the windows service in local environment. It worked. Before I deploy it I added below code to get the...
19 Apr 2012 by 7503
Yes, you might wantto post your code and so we can help. Also for WCF Services; WCF supports numerous of performance counters that you can utilize to monitor the health and efficiency of your application.
31 Oct 2012 by 86k
Hi ,I want to learn RESTful webservices from basics ,can any one having links to the sites ,please share with me .Thanks,
27 Sep 2012 by @BangIndia
i gave the to 15 min in the standalone.xml file.if the connection sleep time exceed more than 15 min jboss not closing the connection. Any other way to close the connection which are in sleep using jboss 7.1
28 Sep 2012 by @BangIndia
Hi,i am having the webservice for addition for two numbers.i implemented in the java with the webserver jboss 7.1.Its working fine. but i wants to find the webclient ip?i don't know how to find the ip. can any one help me.
12 Apr 2013 by @BangIndia
currently i am transferring data using soap. but now i going to transfer large number of text data.pls suggest correct way for that. I know to transfer using soap calls. I studied in net that is not a proper way to transfer large text file. pls suggest a way.
15 Apr 2013 by @BangIndia
how to upload a file using webservice in java under jboss server..?any examples..?
17 Apr 2013 by @BangIndia
Server side code :import com.lowagie.text.Image;import javax.activation.DataHandler;import javax.activation.FileDataSource;import javax.jws.WebService;import javax.jws.WebMethod;import javax.jws.WebParam;import javax.xml.bind.annotation.XmlMimeType;import...
3 May 2013 by @BangIndia
I written my java webserver.i deployed in jboss.and i used gsoap to generated the c++ code and i calling the webservice using c++.but it failed to send the attachmentsmy java code:@MTOM@SOAPBinding(style = Style.DOCUMENT, use = Use.LITERAL)@WebService(serviceName =...
4 Jun 2013 by @BangIndia
How to overload Webservice in java using netbeansI tried using @WebMethod( operationName = "Test123")But its gives error.
21 Aug 2013 by @BangIndia
I have the jboss webserver with the authendication.Some machine is not giving proper authendication so jboss is blocking and giving the following error:9 ERROR [org.jboss.security.authentication.JBossCachedAuthenticationManager] (http--0.0.0.0-80-18) Login failure:...
19 Nov 2012 by __TR__
Try formating the date likeDateTime.Now.ToString("yyyy-MM-dd");Refer C# DateTime Format[^]Hope this helps
24 Jul 2012 by _Amy
Hi,"Actively refused it" means that the host sent a reset instead of an ack when you tried to connect. It is therefore not a problem in your code. Either there is a firewall blocking the connection or the process that is hosting the service is not listening on that port, this may be because it...
20 Jul 2013 by _Asif_
check this linkhttp://stackoverflow.com/questions/4177309/how-to-generate-xsd-files-for-web-service[^]
20 Jul 2013 by _Asif_
i believe you have got the answer from herehttp://stackoverflow.com/questions/10753640/consuming-webservice-having-wsdl-and-xsd-files[^]
24 Dec 2013 by _ProgProg_
Hello Guys,I have a windows form project, which is consuming a WCF Service which is a separate project in the same solution.Now i created a setup for this windows form application and installed it.When i run that installed application, it doesn't host the service.How can I host this...
28 Jul 2016 by _ProgProg_
Dear,i have a problem of sending video to IOS devices only as it doesn't show as a streaming videos.it works fine on android.the whole issue is as follows:i have a web-service that retrieves videos from database as byte array.these byte array is appended to...
24 Apr 2013 by _RatneshDubey
Some configuration tag is getting duplicated.You can check your configuration file if there is no such tag then map your web.config file with machine.config and remove those tags which are available at both places from any one place.
23 Aug 2011 by _Zorro_
Hi,Are you sure giving the credentials on a website is a good idea?Anyway, take a look at this examples:Consuming Web Services from a Win Forms Application[^]Using a Web Service in VB.NET[^]Web services with ASP.NET[^]Hope it helps.
12 Mar 2012 by _Zorro_
Hi,You could use google...http://www.findbestwebhosting.com/top10hostingcompanies.aspx/windows-web-hosting/1[^]
18 Aug 2011 by `Thomas W.
Hello,I have a problem with my Windows 2008 R2 Server.I have installed the IIS7 and want to publish a WebService written in C#.During the publish I get an errormessage that there aren't installed the Frontpage Serverextensions. But they are. I installed them like this...
21 Aug 2017 by A.R Farooqui
I have a web (.asmx) service. It work fine most of the time but some times it gives "Connection reset by peer - SSL_connect" to my client. The service is host over https protocol. Does any one have any idea? Why is this error coming. What I have tried: Google it for hours, but unable to find...
9 Feb 2015 by Aamir Latef
My requirement is to convert the response received from a SAP web-service to a generic list so that i can loop through the received records. i have been trying to look for the solution from a number of days but i am unable to find any. Any solution which can execute the following will be...
18 Sep 2014 by Aashish vermaa
Hi,I have a WebService which required two parameters.I want to call this webservice from stored procedure.How can I achieve this functionality?Please suggest.Thank you,Regards,Ashish
28 Nov 2016 by Abdirizak Mohamed
I have WCF Service Running My Local IIS [^] When i Access Local every thing is Ok, but when i try to access Over Internet Using Public IP that Mapping to my Local IP and Post, after I add Wcf Service in Client and i CallI Got This Error:There was no endpoint listening at...
1 Apr 2013 by Abdul Manaf C J
WebService Connectionstring Erroram create a webservice(.asmx) used to insert string data to a sql server 2008 database...am publish webservice and host in to local IIS Server..its perfectly working. but am hosted on internet server(windows sever), getting an error with connectionsring...
27 Apr 2014 by Abdul Muqeet Ahmed
We have proxy implemented in our office, I need to make webservice call using jQuery AJAX.If we skip proxy, the web method gets called without any errors.But the moment we enable proxy, we get "NetworkError" no more details available regarding this error.We cannot disable proxy...
24 Apr 2012 by AbdulMuheet
You can try below code. I have not check it with SSL but it working to post data for http protocol. postData = "data=" + Server.UrlEncode(readStr); //---- Post data HttpWebRequest myRequest = (HttpWebRequest)WebRequest.Create(URL); ...
13 Jul 2012 by Abduyar
I am working in company which has more than 5,000 personal. We need to build a visual tree which will show most personal in related view. Some worker are related with department boss, that boss are related with somebody bigger and etc till the general boss. I am trying to use Family.Show for...
16 Apr 2012 by abhijeetgupta1988
Have you un-commented this line in your web service code[System.Web.Script.Services.ScriptService]
16 Apr 2012 by abhijeetgupta1988
un-comment this line:[System.Web.Script.Services.ScriptService]
25 Jun 2012 by Abhijit Barua
how can i set asp.net datalist itemtemplate label value with json data.
27 Jun 2012 by Abhijit Barua
sir, i try lots. we can bind asp.net gridview many ways but datalist i not able to bind. plz give me suggestion how can i bind asp.net datalist using jquery/json and webservice.
27 Jun 2012 by Abhijit Barua
sir, when i am going to bind datalist using jquery/json and webservice, i got cssclass for label i have to write to bind datalist. but i have not any knowledge. plz help me.
17 Dec 2016 by Abhijit Parab
I am unable to call the webmthod from javascript using ajax call. Please check the code. What mistake i have done?Filepaths:C:\Users\Abhijit\Documents\Visual Studio 2013\WebSites\UpdatePanel\App_Code\DataService.csC:\Users\Abhijit\Documents\Visual Studio...
18 Jun 2012 by abhilash yelmelwar
how update a data from ftpserver to local folder without user interfearnce please reply me its urgent
4 Dec 2009 by Abhinav S
A neat way to do this while running an application is to use a tool like TCP monitor or fiddler. This will show you the entire soap message that was sent across the wire. You can save your SOAP message to a text file as desired.
29 Dec 2009 by Abhinav S
Looks like you've already got the code. So are you getting an error?Or is there some part of it that you don't understand?Could you mention your problem in a little more detail, with the exact lines of code specified, please?
22 Jan 2010 by Abhinav S
Can you post the error here so that someone can help you?
22 Mar 2010 by Abhinav S
You should be checking IIS to see if the web service is installed.
25 Apr 2010 by Abhinav S
Check the web service documentation to see if you are passing all the right parameters.Based on the details you have provided in your question, that is all that can be inferred.
21 Jul 2010 by Abhinav S
Yes it will be necessary.Your web service code needs to be compiled right?
1 Oct 2010 by Abhinav S
What problem did you face with SQLBulkCopy?Have a look at this article.[^]
14 Nov 2010 by Abhinav S
Create your endpoint via code - you can then change the service address as per your needs.
16 Nov 2010 by Abhinav S
WCF is more advantageous than asmx. WCF is the way MS is going forward.Asmx (although supported) is not part of .Net frameworks 3 and above.
8 Dec 2010 by Abhinav S
You might want to go through this[^] article.
24 Jan 2011 by Abhinav S
This neat little article[^] will certainly help you out. If you follow the steps in there, you might get away without doing a code change on the client.There are a few more links at the end of the article as well.
27 Jan 2011 by Abhinav S
SIlverlight does not support synchronous calls.Make use of the Action delegate to come back to your main code once the service returns.
9 Feb 2011 by Abhinav S
Saving to the database is easy. Have a WCF service that you talk to.Allowing all clients to know that there has been a change in the database is trickier.You need to implement a notification mechanism using duplex mechanism calls[^] or sockets.
1 Mar 2011 by Abhinav S
Silverlight does not support forms authentication and authorization like ASP.Net does.If you want to do this, then you will still have to do this in ASP.Net.
14 Mar 2011 by Abhinav S
It looks like you might be having permission issues.Have a look here[^].