Click here to Skip to main content
15,903,362 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 

29 Jan 2023 by G.Mariappan(a)Murugan
Hi All,I created a webservice in VS2010 and run in local host it displays in right format is shown below.How are you Mariappan Ganapathybut in other Machine it shows as the xml file does not appear...
29 Jan 2023 by peterwuzere
I have the same problem. i downloaded the messageboard app from this site and tried the RSS link. In the FeedService class file their is the following code: Dim feed As SyndicationFeed = New SyndicationFeed("Message Board", "A sample message...
2 Nov 2022 by Ailiseu Brigitta
hii i am working with uwp project and i don't know how to connect with webservice with parameter in uwp if any one know please teach me What I have tried: i have my web server link which is used to AuthenticateUser { in that link i have xml...
2 Oct 2022 by Member 11228607
i'm new web service restfull. how to do web service restfull application.Please guide me.
5 Jul 2022 by Muthu vj
Dear Team, i am going to create the Project by using xamarin form with webservices i want to know some best folder structure which i should follow the same. can you please help me on this What I have tried: I am New in xamarin form so i want...
5 Jul 2022 by Gerry Schmitz
Xamarin.Forms Web Service Tutorial - Xamarin | Microsoft Docs[^]
18 Apr 2022 by Member 10242311
Hi Friends, I am new to web services, I have a task to send the JSON content to particular URL using post method. relevant JSON and tried code available below, I have faced the exception only. anyone have a better solution for this. You can...
18 Apr 2022 by Momodu Deen Swarray
For the purpose of simplicity and ease, here is the code from the link: JSON HTTP POST Request In Visual Basic .NET · GitHub[^] CODE 'Install Newtonsoft.json '----------------------- ' 'PM> Install-Package Newtonsoft.Json -Version 6.0.8 ...
1 Apr 2022 by harshitha2006
Hi,I have developed webservice using .NET 2.0.This is scheduled job. In this webservice i am calling third party database.The third party database returns the data through typed dataset, The web service is calling in console project(.exe file). The console project deployed sql server...
13 Feb 2022 by MAU787
hioccurred this error while running web service from web applicationNo connection could be made because the target machine actively refused it 127.0.0.1:8083 Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace...
23 Nov 2021 by ddas-edEn
We have a WCF web service hosted on Windows 2008 SP2/IIS 7 accessing an Oracle database. Usually data access works fine but during load testing, it often times out and logs and exception saying:Error occurred when processing XXXXXXXX Web ServiceOracle.DataAccess.Client.OracleException...
23 Nov 2021 by manikjeyam
cmd.Parameters["P_retvalue"].D...
13 Nov 2021 by Diogo Rocha 2021
Hi guys im trying to implement a service that gets the atribute contaminatiotID that is on the two list i have created. im about to showing you up. What i want to do is to get the people with the same contaminationID on wcf.For example Infeted is...
20 Oct 2021 by Alexander Angelopoulos
I have to services that listen to different ports on the same server. First one is used to to authenticate users. I pass my username and password in the URL and it returns a SessionId variable and my UserName. How can I call the second service...
20 Oct 2021 by Member 15329613
There is no way for us to know because we do not know how the service is built. You need to talk with whoever built the service. REST services, for example, will usually return an authorization token and then you pass that token back in the...
13 Oct 2021 by mohamad_ali
hi,i added webservice in xamarin form project, and after send request i got the result in object but when i added code to serialaize and deserialaize object i got error, how can i read result of request ? What I have tried: var servico = new...
13 Oct 2021 by Richard Deeming
If you're using Newtonsoft.Json, as the JsonConvert reference suggests, there is no static Serialize method on the JsonSerializer class. You would have to create an instance, and then call one of the instance Serialize methods, all of which...
14 Sep 2021 by Member 12694392
I have developed a asmx project that gets data on input string. the Input string contains from and to date. when I am trying to retrieve data from asmx, it comes blank but when I am running same query from logs into SQL developer (oracle) DB it...
14 Sep 2021 by Richard Deeming
NEVER use string concatenation to build a SQL query. ALWAYS use a parameterized query. Whilst in this particular instance you're probably safe, since the values have been parsed to DateTimes, concatenating values into your queries can and will...
11 Aug 2021 by Member 15321021
AuthenticationFailed Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:c298c282-a01e-0082-57f3-8e46c2000000 Time:2021-08-11T21:00:54.9641726Z Signed...
13 Jul 2021 by Member 13702159
I have HTTP client: OkHttpClient client = new OkHttpClient.Builder() .connectTimeout(55, TimeUnit.MINUTES) // connect timeout .writeTimeout(55, TimeUnit.MINUTES) // write timeout .readTimeout(55,...
26 May 2021 by scankevin
I've created one gSoap service, and one gSoap client which has owned 300 threads.They are able to run 'concurrently' . but It lost a lot of connection.then,I found the 'TIME_WAIT' in the console using 'netstat'.Ports have been bound.My system is xp, and max ports number are 65534 and Tcp Time...
26 May 2021 by Member 14118315
Hi is there any solution for the above query ?
4 Apr 2021 by Member 14704175
I want to know how to use WorldCat "free or paid" API or Web service that allows me to send a request with the ISBN and receive a response with all the bibliographic data fields of the book and cover image using JSON or XML or whatever What I...
4 Apr 2021 by Richard MacCutchan
See WorldCat Search API | OCLC Developer Network[^]
10 Mar 2021 by smodak@ats360.com
Hi, I am trying to access the SAP WSDL service in c#.net. Even though I have put correct credentials it throws "The remote server returned an error: (401) Unauthorized." error. I am able to access the SAP service using SoapUI application with...
20 Dec 2020 by Member 15026402
When I will send the request it will be gone but when response will be back that time it will be showing the invalid resonse i dont understand why it show this error What I have tried: androidHttpTransport.call(SOAP_ACTION, envelope); ...
14 Dec 2020 by Member 11382409
I have web service and a web method that has System.IO.Stream return type. [WebMethod] public System.IO.Stream GetDYFtpWebRequestStream(string firmName, string filePath) { string ftpAdress = ftpServer + ":" + ftpPort + "/" + ftpFolder + "/" +...
14 Dec 2020 by Richard Deeming
You cannot return a stream from a web method - not even a read-only stream, let alone a writeable stream. You will need to read the file contents in the client and pass it in to the web method. [WebMethod] public void UploadFileToFtp(string...
23 Nov 2020 by CodeWraith
For a customer I must implement a SOAP webservice according to their WSDL. I do not know what framework they will use to call the service, but it's not .Net. I have generated the code for the code for the webservice with wsdl.exe (using the...
2 Nov 2020 by Member 10785772
Hello, I'm trying to learn how to create a json REST webservice and starting off with a simple example ... but can't get it to function. This is what I get when attempting to call it with a cUrl ... curl -X GET -v...
18 Oct 2020 by Nick Katditsik
I tried with both languages and failed. I get a security error. I'm sure I have to add sometinh because of the WSS but i'm not sure whati is that... What I have tried: ConsoleApplication1.SrvRef.ServiceClient clientProxy = new...
19 Jul 2020 by Member 14868340
Hello I have a webservice to do which I need to do in c ++ builder 10.3.3 Requirements: werbservice rest, iis hosting, main VCL application in C ++ Builder Can anyone recommend a website, book or help with their experience? What I have tried: ...
19 Jul 2020 by Espen Harlinn
My 2 tip: It sounds like you could take a look at the Windows Web Services API - Win32 apps | Microsoft Docs[^]. Since you are mentioning IIS, I can only assume that you are running you software on Windows. You should probably not mix IIS and...
19 Jul 2020 by Member 14868340
The first problem I encountered was how to display the XML file in memo and treeview components. I found such a piece of code on the web FILE * stream; char FirstLine [512]; OpenDialog1-> Options.Clear (); OpenDialog1-> Options
18 Jul 2020 by Garth J Lancaster
I'm not sure why the hosting in IIS requirement - you could use 'Pistache' User's Guide[^] for example. If you need a gateway/front-end, consider using Nginx or similar
17 Jul 2020 by Harsha11421
Respected Developers,In my application i am working with a web service.. after testing for several times in my local system i hosted it in webserver unfortunately i am getting "the page cannot be displayed because an internal server error has occurred" where as it is working fine in my...
4 Jul 2020 by sozmentese
i can't connecting to webservice - itried to every sample and video but :( i need one simple example about akakceOrderServices Web Service[^] pls help POST /akakcem/online-store/siparis-yonetimi/api/orderServices.asmx HTTP/1.1 Host: www.akakce.com Content-Type: text/xml; charset=utf-8...
9 Jun 2020 by Richard MacCutchan
I suggest you stop and think about exactly what you are trying to do. Do you want to manage some communication, switching TSQL commands? Do you want to create a webservice? Do you want to work with email? In whichever choice you make you will...
9 Jun 2020 by Member 11426986
Hello, everyone. I have a project to develop an android application that will receive (TSQL SELECT) and send (TSQL INSERT/UPDATE/DELETE) to a windows server. How to do this? Should I create a WebService? How to develop a webmail in C#? What I...
4 Jun 2020 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.
1 Jun 2020 by Khan Sameer
data table when filled with json, jquery and webserice run fine on local machine but when publish on server it is giving Failed to load resource: the server responded with a status of 500 (Internal Server Error) What I have tried: $.ajax({ ...
27 May 2020 by Rahul Ramakrishnan
I added the following code to the proguard-rules-pro file -keepclassmembers,allowobfuscation class * { @com.google.gson.annotations.SerializedName ; } -keep,allowobfuscation @interface com.google.gson.annotations.SerializedName ...
27 May 2020 by Rahul Ramakrishnan
I have uploaded an app to play store. On launching the app login page is shown but the web-service that does the login is not working. I have tested the app locally and everything works fine. What could be have possibly gone wrong. My web...
12 May 2020 by anho0008
Hi there, I have an XSD file that discribes the interface to a http service and have to connect to the service from SAP ERP. Can anybody tell me how I can generate Datatypes and elements from this file in SAP? Thank you very much in advice :-) ...
12 May 2020 by Maciej Los
If you've got xsd file for request and response, follow the instruction from here: Creating WSDL using XSD in Eclipse | HelloWorld[^] If you're familiar with Apache, use tool called: Apache CXF -- XSD to WSDL[^]
4 May 2020 by Nilesh Patil Kolhapur
Hi, I have been using the AjaxToolKit's DynamicPopulateExtender withsuccess but just ran into an issue. I begin to receive a "Web Servicecall failed: 500"how to solved this problemThank u
11 Apr 2020 by Maciej Los
Check this: JSON HTTP POST Request In Visual Basic .NET · GitHub[^]
2 Apr 2020 by Richard Deeming
Quote: My web service uses http protocol ... That's a likely culprit. Passing user credentials over an unsecured network protocol is an extremely bad idea, and is likely to be blocked. Update your web service to use HTTPS instead. Depending...
2 Apr 2020 by MadMyche
Most likely you have a configuration problem. If you expect more help... you actually are going to tell us more. If this was my problem; I would start off by trying to call that webservice from a browser or by using a tool such as SoapUI or...
30 Mar 2020 by Member 14787235
I am also the same problem, in my case php xampp server is blocking internally to IIS server. I stopped the xampp process in task manager, that solves my problem.
30 Mar 2020 by ashriv
I try to debug my web service with IIS7. It doesn't start and throws an error."Unable to start debugging on the web server. The remote debugging components are not registered or running on the web server. Ensure the proper version of msvsmon is running on the remote computer."my...
14 Mar 2020 by Laura Saraiva
I'm doing a job for the school but I'm having problems with the images. I get System.Byte [] from my web service and I've tried several solutions and I can't convert to bitmap and add my ImageView. In my database the column "Image" appears...
14 Mar 2020 by OriginalGriff
13 bytes of data. Hmmm ... that's a little suspicious. It's the same length as the string "System.Byte[]" and as a result I'd hazard a guess that that is exactly what it contains. And the most common reason for that is that you inserted the data...
13 Mar 2020 by Rey21
I have data json from my url http://192.168.0.187/appwebservice/appwebservice.asmx/getAllUsers It's my data json from method getAllUsers {"isSuccess":true,"resultMessage":"","data":...
6 Mar 2020 by Member 12778040
Hi, what is the best way to access secure a WebService with JWT Bearer Token from a Website if both running on different servers ? What I have tried: Hi, i`m new in Web programming. I just create a Webservice and it worked as well with JWT...
28 Feb 2020 by Rey21
I try show listview with data json from web service but i got error in var response = await api.getAllUserGoogle(); it is message error : Response status code does not indicate success: 500 (Internal Server Error) It is my data json from...
27 Feb 2020 by Cahyo DWC
MyListView.ItemsSource must be an IEnumerable instead of string
25 Feb 2020 by Praveen_P
Hi all, How to override the WebRequest GetWebRequest(Uri uri) method of a web request in an asp.net web application when calling a webserviceThanks
10 Feb 2020 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.
4 Feb 2020 by phil.o
This SO post: How to change maven logging level to display only warning and errors? - Stack Overflow[^] seems to embrace the subject pretty well.
4 Feb 2020 by Member 10777201
Working with a Maven web project and using Apache CXF(3.1.15) for RESTful web services with Apache tomcat 8.5. Whenever any API is hit just after server startup, Apache CXF lists out all the endpoints of the Services present in the CXF file as below: Below is the example of log messages: INFO:...
3 Feb 2020 by Member 2486900
Dear all, I try to make simple desktop application that calling some webservice. I make webservice using wso2 esb. But when I calling the service through my application it return error 500. Here is my class that calling the web service private void button3_Click(object sender,...
21 Jan 2020 by Member 11969195
I am runnig this application on windows 10. What I have tried: i Just created a simple "Empty ASP.Net web application" and added a web services named as "HelloWebService.asmx" within this file created a single method called as "GetMessage" with single parameter as follows: public class...
12 Jan 2020 by OriginalGriff
If by Quote: "I want to retrieve the password from the password digest" you mean Quote: "I want to get the original password text back" Then you can't: SHA is not an encryption algorithm, it is a hashing algorithm. The difference is simple: hashing functions cannot be reversed to obtain the...
12 Jan 2020 by ranio
I want to retrieve the password from the password digest from the hosted API in asp.net with c# via webservice while consuming the same during Password Digest Authentication Password Digest Creation Logic Password_Digest = Base64(SHA-1(nonce + created + password )) Request API is created...
3 Jan 2020 by Reyhan M.T
I got problem when I choose picture with size 500 Kb from my gallery and my application force close. But if i choose picture with size 100-499kb it is success load image and send base64 to my database. Could you help me how to fix it ? What I have tried: This is my coding from mobile app: ...
3 Jan 2020 by OriginalGriff
Simple: you are doing this in a very, very dangerous way. Never concatenate strings to build a SQL command. It leaves you wide open to accidental or deliberate SQL Injection attack which can destroy your entire database. Always use Parameterized queries instead. When you concatenate strings,...
2 Jan 2020 by Reyhan M.T
I try increasing MaxRequestBodySize on your Startup but i don't know where is i place it what i placed in web.config or maybe else? What I have tried: Please help me where i put MaxRequestBodySize in webservice
2 Jan 2020 by tninis
Hello, please check this link .net - kestler MaxRequestBodySize uploading file over the limit - Stack Overflow[^]
29 Dec 2019 by RickZeeland
Try this: static int picCount = 1; public void Base64ToImage(string imagestr) { DbAccessConnection conn = getActiveConnection(); try { beginTransaction(conn); byte[] bytes = Convert.FromBase64String(imagestr); using...
29 Dec 2019 by Reyhan M.T
I want when insert a new base64 in web service it is create image002.jpg in my folder path because image001.jpg already in folder path. Could you help how to fix it ? What I have tried: This is my coding in webservice [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public...
29 Dec 2019 by OriginalGriff
Read all the files currently in the folder: Directory.GetFiles[^] will do that for you, and you can provide wildcards like "image*.jpg" to restrict them. Then you could just sort them by path - but with only three digits, you may start to have problems quite quickly as string based comparisons...
26 Dec 2019 by Reyhan M.T
I got problem when I choose picture with size 500 Kb from my gallery and my application force close. But if i choose picture with size 100-250kb it is success load image and send base64 to my database. Could you help me how to fix it ? It is message error when i choose picture with 500kb: ...
26 Dec 2019 by Reyhan M.T
I already debug my code and i found my error in var responseupdate = await api.UpdateGoogle(new UpdateGoogleQuery(user)); I already to insert value base64 from picture with size 500kb to my webservice it is success add value base64 in my database.
26 Dec 2019 by OriginalGriff
We can't help: we don't have access to your DB and it's data, we don't have the rest of your code, and we wouldn't know to use it if we did. And you need your code running and it's actual data in order to work out what is going on. So, it's going to be up to you. Fortunately, you have a tool...
17 Dec 2019 by judah9107
Hi, I get always that error "The underlying connection was closed: An unexpected error occurred on a send" when I try to invoke the REST service by GET method. (The service Respond in JSON Format)this is my code:string uri =...
16 Dec 2019 by OriginalGriff
You can do it - it's not even complicated - but you may find you need more than one field: two fields will only hold 2* 64K = 128K and it;s very easy for a modern image to exceed that. Instead of reading the whole image: fs.Read(ImageData, 0, System.Convert.ToInt32(fs.Length)); Just read the max...
16 Dec 2019 by Reyhan M.T
I want split value base64string from image in mobile and send base64string to my database because database field text only save 65,000 string. So i want save value base64string in two field in my database.Why i want save in two field in my database because value base64string from image in...
15 Dec 2019 by Richard MacCutchan
Add the image file to a proper location within the web project. Access to directories outside the project, especially those belonging to some user id, are not allowed. [edit] See Create resource files for .NET apps | Microsoft Docs[^] [/edit]
15 Dec 2019 by Reyhan M.T
I already have an image on a local disk but I don't know how to display it in a web service in the from of a url. My Path Image = C:\Users\LAPTOP-I7\source\repos\webservice\Image My Link Webservice = "http://192.168.x.xx/webservice/webservice.asmx" Example...
3 Dec 2019 by Member 11272618
function Logout() { $.ajax({ type: "POST", url: "test.aspx/mymethod", contentType: "application/json; charset=utf-8", data: JSON.stringify({}), async: false, ...
3 Dec 2019 by gaurav.s23
I have web method, I only want functionality of this method to run if the user is authorized user only but if not then I want to redirect the web method call to unauthorizedpage. How do I do it ? I cant use this, since web method is static. Response.Redirect("~/NotAuthorized.aspx") What I...
3 Dec 2019 by Richard Deeming
According to this SO thread, you need to change the customErrors mode in your web.config file: service - Soap FaultString shows the detailed error message rather than the short error - Stack Overflow[^] ...
3 Dec 2019 by sam9787
In an asp.net web service (asmx), how do I hide the error messages that are sent to the client when it doesn't send the proper parameter: "Missing parameter: parameterName."? What I have tried: . In an asp.net web service (asmx), how do I hide the error messages that are sent to the...
1 Dec 2019 by Patrice T
Quote: How to hide the “missing parameter” message You have about 2 options: - Don't make that wrong request at all. - Make the request with proper parameters.
22 Nov 2019 by TheDoubleTop
Hi Thanks for the reply, but I want to code my own app. I really need an ideal how to create a listen service in C# console app to consume a message and then to send the altered message back. I want to do it in code rather than tools, I could SoupUI to change and send back, but I want to do...
21 Nov 2019 by RickZeeland
Maybe one of these: automation-testing-tools-for-a-medium-team-5-10-testers[^] I think you can do it with Katalon Studio, here is a JSON example but it also supports XML: Katalon Studio 18: How to test API with Katalon Studio | Katalon Docs[^]
21 Nov 2019 by TheDoubleTop
I am building an interface into some software that is being developed by someone else. My software is going to send and receive XML messages and normally I would use something like SoupUi to test my software. I have plenty of time on my hands, so I want to build a Windows console app that...
31 Oct 2019 by Member 12613458
AWS LAMBDA .NET CORE throws 403 Forebidden Error if called service from Function Handler What I have tried: ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; ServicePointManager.Expect100Continue = true; ...
31 Oct 2019 by #realJSOP
I bet it's because you're not passing the password in your request header...
22 Oct 2019 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.
16 Oct 2019 by srko
Hi Guys, Can anyone here help me with the integration of quickbooks desktop with webservices in .net. Actually i'm trying to implement this, but there are no realtime samples or poc's available online. And there are no walkthroughs for the same. There are few links which shows some...
16 Oct 2019 by Richard MacCutchan
The article you link to is a complete sample. If you are having problems with it then you should ask the person who posted it. You can also go to Intuit Developer[^] portal and use their help forum.
30 Sep 2019 by Asp_Learner
Hi All,I am getting a weird error ,I am creating a winform application in which scanner is scanning an image and uploading it to the remote server, this is working file everywhere ,but we have client in south africa also ,its not working there and while ulpoading image it is giving me error....
13 Sep 2019 by Jassim Rahma
Hi, I am trying to consume a government web service to get address details. I tried below code but it returns nothing although it works fine when I try it on my WinForm when using Add Web Service A sample valid number is mention in the attached project 1923578758 What I have tried: Here...