Given the following code
Public Shared Sub DoAsyncAction()
Using asmxProxy As New MyAsmxServiceProxy()
AddHandler asmxProxy.WebFunctionCompleted, AddressOf WebFunctionAsync_Completed
// Make the Async ASMX Webservice Call
asmxProxy.WebFunctionAsync()
// RemoveHandler asmxProx...
I've got an asmx web service with the following method
[WebMethod]
public string LoadRegions(Guid id)
{
throw new NotImplementedException();
}
When I attempt to call this method, I receive this exception:
System.InvalidOperationException: LoadRegions Web Service method
name is not valid.
at System.Web.Service...
I need some help figuring out how to troubleshoot a problem with an ASP.Net 2 asmx webservice which seems to be ignoring incoming params.
I have an ASMX service that takes a string, does a little work with an SAP API, and returns the results of the operation as a string. It works fine in a dev environment, but fails in production becau...
We have a .net 3.5 web app that consumes third party web services. The proxy was created by adding a web reference to their wsdl. This proxy is not compiled.
Our error logging is picking up frequent but intermittent exceptions:
An exception of type 'System.Web.Services.Protocols.SoapHeaderException' occurred and was caught
If I follow...
I want to create a web method that accepts a List of custom objects (passed in via jQuery/JSON).
When I run the website locally everything seems to work. jQuery and ASP.NET and everyone is happy. But when I put it on one of our servers it blows up. jQuery gets a 500 error after the ajax request with the response being:
System.In...
Hi,
I'm using a CXF client to communicate with a .net web service running on IIS 6.
This request (anonymised):
POST /EngineWebService_v1/EngineWebService_v1.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://.../Report"
Accept: */*
User-Agent: Apache CXF 2.2.5
Cache-Control: no-cache
Pragma: no-cache
Host: uat9.gti...
This is very odd, and I'm just wondering if anyone can explain this to me. I have a web service run by traditional old asmx style web services. We had a public property that was used in a internal method that was not displayed to consumers like this:
public class User {
public string EmployeeID;
protected override void DoSomethin...
I have a page that calls on an asmx within the project (for some ajax stuff). Within that asmx I'm calculating a value and returning it to be output to the screen.
However I need to do a recalculation that includes summing this value with a few others. The function that performs the calculation is in a UserControl on the page.
How do...
If I add a web reference from a .NET 1.1 client to a WCF service, the proxy methods generated at the client contain an extra parameter ending with the suffix 'Specified' for each service method parameter, e.g.
[OperationContract]
string HelloWorld(string foo, int bar);
results in:
Service1.HelloWorld(string foo, bool fooSpecified, in...
I know performance can be an issue with web services when you compare them to direct code. But with SOA on the rise, I have to wonder if I should be planning to make every business object in my apps into a web service, either WCF or .asmx.
The improvements to WCF in .NET 4 are definitely making me give is a second look.
...
Hi!
I am using UltraGrid for inserting data in table. The problem is that i need to do insert,update, delete with web service. I am getting dataSet from web service and display it into grid but when I do some changes on the grid for example insert or update data, I need also to send new dataSet to web service so that web service do upda...
When consuming my WCF service from client, I get the following error message. Problem is when I am able to run the code easily from a windows client or a console app. Just not from my web application.
System.InvalidOperationException was unhandled by user code
Message="Client found response content type of
'multipart/related; typ...
I need to secure communication between my application and my Web Service.
I own both the application and the Web Service, and I was wondering if it is possible to use HTTPS to do so.
I don't need a certificate to prove to myself who I really am (!), so I don't want to buy an SSL certificate from a Certificate Authority. I just need to m...
I have a webservice - called MyCompany.WebService1
I reference this using a web reference in my ASP.net web application.
Theres a method called "GetDeal" in this web service, that returns a "Deal" Object.
The deal object currently looks (for example) like this:
public class Deal
{
Public string Name {get;set;}
Public string De...
I have just tried adding a WebService (asmx based) from a WebForms project to a new MVC project. I cant seem to get to the asmx webservice in IE?
In MVC should this work the same, I have the service in a Services folder, should this be in a View or should this asmx work outside the 'MVC' routing?
Update:
I set up the WebService initia...
I have an object that has relatively high initialization cost that provides a thread-safe calculation method needed to process web service requests.
I'm looking for the best way to keep an initialized instance available between requests.
One method is to declare it as a static variable. It would then remain available until the AppDoma...
I'm attempting to pass a generic list of integers from a client application to a web service using the the SOAP protocol.
When I attempt to pass the list as a parameter to the web method declared in the web service, I get the error "cannot convert from generic.list to ArrayOfInt".
How do I go about resolving this?
// web service metho...
I have an ASP .NET web application which on the backend is talking to an ASMX web service. We have counted and the average wait time for the initial request is 20s. I am wondering if there is a way I can send the web service up to the server precompiled, thus negating the need for compilation.
We have also noticed that IIS tends to recy...
The Description I had a legacy type that is HttpRequestScoped and a legacy web service consuming that service. To resolve services in legacy concerns, I have a global resolver. This was all working well in 1.4, and now that I'm using 2.1.12 I'm experiencing DependencyResolutionException.
The Code In 2.1.12, my Global.asax.cs:
builder.R...
I have an ASMX web-service which creates a file given a few paramaters, instead of serving it as Base64 encoded XML I would like IIS to serve the file to free my worker for the next job. The serialization is pretty expensive and totally unnecessary.
...