asmx

How do I make a SOAP(ASMX) call with MS Office Access 2007?

I have a set of .ASMX API calls exposed and have a client that would like to call them using MS Office Access 2007. I have never used Access before and need to know how to connect to my services. What is the best way to make this happen? ...

Hiding the stacktrace for an exception returned by a asp.net WebMethod?

I am using methods with the Attribute [WebMethod] in my aspx pages. I don't use any asp.net ajax but jQuery to call these methods and return objects in JSON. This all works fine. Next I added an authorization check inside the webMethod, if the current user doesn't have access to the feature I need to let the calling JavaScript know. So...

asp.net CacheDuration Attribute and Exception scenario

I am planning on using the CacheDuration Attribute with my WebMethods. I have the webmethod code wrapped in a try/catch and the exceptions are logged to the database. after handling the exception, i return the error message in the response object (lets call it ABCResponseInfo), so the calling client can know about the error. this instanc...

When is the SoapHeader field instantiated in ASMX?

Consider the following: public MyCustomHeader MyHeader; public New() { //MyHeader is NOT instantiated } [SoapHeader("MyHeader")] [WebMethod()] public bool MyFunction() { //MyHeader is instantiated, but when was it instantiated? } ...

Impersonation fails authorization with same credentials on workstation A and B

Case 1. When I browse a little test site from my own PC called JOHNXP (e.g. http://localhost/WebClient ), my .aspx page invokes my ASMX webservice picks up my credentials and passes them across to another webservice on ANOTHER machine (SERVERTRIM) in the same domain. I can see my request resulting in a Security Log entry on the SERVERTRI...

How to detect which web service protocol an ASP.NET request is using?

I have an ASP.NET (1.1) web service which authenticates clients using a SoapExtension.ProcessMessage(SoapMessage) override as described in: http://www.codeguru.com/columns/experts/article.php/c5479 However if the web.config if not set up such that HttpSoap is the only protocol allowed, then ProcessMessage will never get called for requ...

How to tell what account my webservice is running under in Visual Studio 2005

I'm going a little nuts trying to understand the doc on impersonation and delegation and the question has come up what account my webservice is running under. I am logged as myDomainName\johna on my development workstation called JOHNXP. From Vstudio2005 I start my webservice via Debug and the wsdl page comes up in my browser. From T...

ASMX Web Service slow first request.

I have a bunch of .NET Webservices running in one IIS Application. These webservices are consumed by another IIS Application (frontend). The first call is pretty slow, about 5 to 10 seconds. After that it’s just milliseconds. The first call is considered a performance problem. We’ve tried an application that calls all these webservices ...

Web method response format in Mono2.0.1

I wrote a [WebMethod] that return a string that store a serialized object [WebMethod] public string doStuffs() { ... return JavaScriptConvert.SerializeObject(myObj); // JSON Serializer library is JSON.NET 1.3.1, for MONO } When I call the method with a $.post from JQuery: $.ajax({ type: "POST", url: "/web/doStuffs", da...

Dynamically Choosing a Asp.Net MVC User Control

The ASP.net page I am currently working on has a drop down list that is intended to have a list of filters. When the user selects the filter, I would like to display a user control that has properties appropriate for the filter. Here is the controller action in question: [AcceptVerbs(HttpVerbs.Post)] public ActionResult Index(FormColle...

How to Transfer Large File from MS Word Add-In (VBA) to Web Server?

Overview I have a Microsoft Word Add-In, written in VBA (Visual Basic for Applications), that compresses a document and all of it's related contents (embedded media) into a zip archive. After creating the zip archive it then turns the file into a byte array and posts it to an ASMX web service. This mostly works. Issues The main issue ...

ASP.NET Web Service WebMethod

I have a .asmx web service webmethod that I am successfully calling from jquery.ajax. The webmethod is functioning properly. However, it performs very slowly. The method itself does very little work right now. I have added CacheDuration = 120. That did not help. My real concern is how long it takes to actually call the method. When ...

custom serialization converters for a WCF service

We are currently using a .asmx web service method which serializes our object to Json to be returned to the client and consumed by MS Ajax code. For some members of the object, we use custom converters via classes that derive from JavaScriptConverter and override the Serialize method. We "wire up" these custom converters in our web.con...

Is this supposed to work this way?

I have this code up on my server here (Yes I known ASMX is a bad idea but WCF doesn't work at all for some reason): <%@ WebService Language="C#" Class="Test" %> using System.Web; using System.Web.Services; [WebService(Namespace = "http://smplsite.com/smplAccess")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] public cl...

Forcing asmx web service to handle requests one at a time

I am debugging an ASMX web service that receives "bursts" of requests. i.e., it is likely that the web service will receive 100 asynchronous requests within about 1 or 2 seconds. Each request seems to take about a second to process (this is expected and I'm OK with this performance). What is important however, is that each request is dea...

Escaped JSON response with [WebMethod]

The JSON response from the following code is wrongly escaped as described below. My webmethod is like this: [WebMethod (Description="doc here")] [ScriptMethod(ResponseFormat=ResponseFormat.Json)] public string responseMyObject() { if (!Setup()) return ""; ... Proxy pu = new Proxy(...); ...

When to use a page method versus creating a web service?

Our team is trying to figure out some guidelines for using pagemethods vs. creating an actual asmx web service. Seems to me that pagemethods are primarily for one off type calls that are specific to the page, where as asmx are intended are intended represents more of a reusable set of operations and services. Does this sound correct? ...

Import data from asmx webservice to MS-Office in strongly typed manner?

(Answers that include advice to use xsd, please describe how to get the xsd from the wsdl!) I've written up a webservices tier for my office's line of business application. However, unless I can figure out how to get the results into MS-Access or Excel without all the column names turning to strings, then my API is all dressed up with n...

dynamic web reference for use in SSRS

To use the web service that is part of an SSRS installation, it seems that you need to add a web reference to your project so that you can call it etc (see one of my previous questions). But if I needed to call the web service for different SSRS installations then i need to keep adding extra web references. My asp.net application curren...

Asp.net Routing, WebServices, and IIS7 Classic

I have a web forms app running on IIS7 Classic. It utilizes .asmx style web services for a client side heavy portion of the site. We have been tasked with layering in "friendly urls" and decided to use the new Asp.net routing. We have a rule in IIS to map all requests to the aspnet_isapi.dll, which yields this declaration in our web.c...