Okay, so we have a legacy ASMX web service that is currently running in .NET 3.5 and we're using Visual Studio 2008.
The problem is, we need to add authentication and would like to take advantage of the WS-Security model without breaking any existing internal clients who don't need to authenticate currently.
We've thought about adding ...
I have two classes, WebServiceRequest and OrderRequest. Each class has properties. OrderRequest inherits from WebServiceRequest - like so:
public class WebServiceRequest
{
private string mAuthenticationToken;
public string AuthenticationToken
{
get { return mAuthenticationToken; }
set { mAuthenticatio...
I'm developing a time-critical ASMX web service and I'm currently using own class with static methods to write lines to shared log file. Logging is not guarded by locks/Monitors because application writes log quite a lot. I don't know what happens if a thread is scheduled out while in static method writing a line and another thread sched...
Getting the following thrown error when calling a web service. Have googled without any results other then people asking the same question.
Server was unable to process request. ---> The surrogate pair (0xD860, 0x27) is invalid. A high surrogate character (0xD800 - 0xDBFF) must always be paired with a low surrogate character (0xDC00 - 0...
What is the best way to deploy a couple of asmx webservices to IIS. (6.0, 6.1, 7.0)
The services are an optional install and I think the most convenient way to install them would be some kind of Windows Installer package.
I created a small C# program that directly modifies the IIS Metabase, but this only works on IIS 6.0 and 6.1 and I do...
I use $.ajax function to interact with a regular asp.net web service. My question is how do I trap errors. The web service interacts with the database and returns errors if any are encountered, but after this point, it becomes very unclear how do i trap these errors (plus others encountered during $.ajax performance).
$.ajax has callba...
I have a .aspx page calling a .asmx page's web service. In that .net web service I attempt to open a database connection to SQLServer 2008. The connection is failing. I am not sure why. I am doing this in a try / catch and the catch does get hit when I debug. I'm not sure what I can output there though as I don't have access to the serve...
Suppose I have an asmx web service at the following address:
http://localhost/BudgetWeb/Service.asmx
This web service has a web method with the following signature:
string GetValue(string key)
This GetValue method returns a string like this:
<?xml version=\"1.0\" encoding=\"utf-8\" ?><value>250.00</value>
What if I wanted to do th...
I am programming a client program that calls a webmethod but when I get the return data there are missing values on some of the fields and objects.
The webmethod in turn is calling a WCF method and in the WCF method the return data is fine. But when it is passing to the webservice the return data is missing.
Is there any way to fix th...
Say, I have a WebService SettingsWebService with a WebMethod AddUser(User userObject).
The User class is in the SettingsWebService solution.
When i generate a proxy for the SettingsWebService it creates a class for asmx which contains the AddUser webmethod.
It also generates a class for the User class.
The client now uses
Proxy.Add...
I am going nuts here. I've looked at the following entries and none of them are correcting the aberrant behavior I am seeing:
http://stackoverflow.com/questions/288850/how-to-return-json-from-a-2-0-asmx-web-service
http://stackoverflow.com/questions/1678101/how-to-return-json-from-asp-net-asmx
http://stackoverflow.com/questions/211348...
I've seen no need to upgrade my services to WCF, but I have been using WCF clients for some time to access ASMX services from .NET 3.5 ASP.NET. I figured eventually I'd hit a wall in this mismatch and I just did - but with Silverlight.
When using Silverlight to access ASMX web services I get an error like this in a popup :
An except...
Hi,
I created a Web Service proxy with the "add web reference" feature of VS 2008 (c#).
The generated class derives from SoapHttpClientProtocol
Can I store only one instance of my proxy in a singleton? Is it thread safe? Is there state between calls that would prevent me from doing this?
Thanks!
...
I'm building a web service to accept notifications from a company. The company informed me that the service is incorrectly structured and provided me the .asmx of a working web service. It looks like this:
Request:
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
What are the benefits of using WCF over ASMX web services?
Any pointers?
...
I'm having a couple of websites hosted different places, which I want to backup regularly.
However I only need the user-uploaded files, so I've made a simple Web service on each site, with the same definition:
public class BackupService : System.Web.Services.WebService
{
[WebMethod]
public string[] GetFileList()
{
/...
I've got a asmx service that takes a single int parameter. I can open the URL to the service and see the service description screen. From here I can enter the query parameters into a form and invoke the web service.
Is there any way to invoke a web service directly from a URL/query string?
This doesnt work:
http://localhost:4653/MyS...
Following reference indicates ASP.NET automatically creates a WSDL and SOAP request. Where or through what I can see the nuts and bolts?
http://www.w3schools.com/webservices/ws_example.asp
...
Hello, in my ASMX WS Application_Start is called when 1st request arrives. It's kind of too late then for me. Is there any way to get it called when iisreset is done?
In http://stackoverflow.com/questions/1820770/what-is-the-right-way-to-spawn-thread-for-database-io-in-asmx-web-service I asked about preloading system data and the guys ...
I have an asmx web service and I load bunch of system data to internal data structures. This system data is used to check the validity of requests. However when there is no requests for say 3 hours (maybe less) the initializations are done again. The object that serves the requests has
private static bool _initOk
variable that contro...