asmx

How To Add Reference a Webservice public Struct in App

Originally posted on: http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21355401.html I have a solution containing two projects: a webservice project and a web app project which has a web reference to the webservice project (the web app project is simply a test case). My webservice project includes a class file containi...

C# Web Service gets stuck waiting for lock, does not return

We have a C#(2.0) application which talks to our server(in java) via web services. Lately we have started seeing following behavior in (ONLY)one of our lab machines(XP): Once in a while(every few days), one of the webservice request will just get stuck, will not return or timeout. Following is the stacktrace where it seem to be stuck. ...

What's the best way to transfer a large dataset over an ASMX web service?

I've inherited a C# .NET application which talks to a web service, and the web service talks to an Oracle database. I need to add an export function to the UI, to produce an Excel spreadsheet of some of the data. I have created a web service function to run a database query, load the data into a DataTable and then return it, which work...

Jqgrid 3.7 does not show rows in internet explorer

I'm testing with ASP.NET and Jqgrid 3.7, in firefox it works fine but in IE it does not show any row in the grid. The response from the webservice is {"d": {"__type":"jqGrid", "total":"1", "page":"1", "records":"10", "rows":[ {"id":"180","cell":["180","Cultura"]}, {"id":"61","cell":["61","Depor...

How to use custom attributes over a web service?

Hi. I am currently trying to add a custom "column name" to a property in a web service. Here is my class. public class OrderCost { public int OrderNum { get; set; } public int OrderLine { get; set; } public int OrderRel { get; set; } public DateTime OrderDate { get; set; } public string PartNum { get; s...

Is there Any Way to Set the Namespace of a Web Service in Configuration instead of Code?

Currently we're using in code <System.Web.Services.WebService(Namespace:="https://ourservice/")&gt; to set the namespace, can this be done in web.config, instead? I've looked but can't find where? VS2008, ASMX web service. ...

Accessing asmx WebService Using WCF

I am trying to access an old ASMX webservice using WCF by calling the ChannelFactory.CreateChannel() method. If the web service is created by WCF, everything is straightforward. I can instantiate the proxy client generated by the svcutil tool, or manually call the ChannelFactory.CreateChannel() method. Afterwards, I can call the web ser...

Retrieving webmethod parameter values from Application_BeginRequest or Application_EndRequest

Is there a way to retrieving parameter names and values passed to a web method from Request object? I've read somewhere that you need extra code to access the soap body. Any known workarounds to be able to see the soap body from Application_BeginRequest? Thanks! ...

WCF, ASMX Basic HTTP binding and IIS

Hello, I have been doing a lot of work with WCF "self" hosted applications. I recently was requested to write a web service where the calling client was a Linux based program named "WGET". I would like to use WCF instead of a traditional ASMX web service. The web service is returning a standard XML response. I am not sure of the underli...

.NET Web Service: .asmx?WSDL vs .wsdl

This is probably a stupid question. I don't know anything about Web Service but I have to work on this existing web service. What is the difference between club.asmx?wsdl vs club.wsdl ? I noticed they are similar, but club.wsdl has more stuff in it. Aren't they generated automatically from the .cs code? ...

Return JSON from a Webservice method when requested in GET verb

I have a .NET webservice that is returns JSON. The client-side developer now wants to send his request in GET method, putting the parameters in the querystirng. I have enabled the GET verb in my web.config file, I have added UseHttpGet=true in the ScriptMethod attribute, and now I am able to recive the parameters. BUT when he ca...

Deploy .NET web service in a concrete port

I would like to deploy or publish my .NET based web service always at the same port. Can I do this directly in my code (programmatically talking)? Thanks. ...

Webservice returning custom XML

Hi, I'm dealing with a legacy web service and I'm running into trouble trying to adjust the methods' responses to previously defined XMLs. Sadly, changing the WSDL is out of question and to further complicate the issue, it's incompatible with WSDL.exe tool. The oh!-so-wanted XML: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/...

ASMX web-services and HTTP GET

I'm trying create a ASMX webservice that can perform a HTTP GET request. I have the following simple snippet of code to illustrate what I've already done. using System.Web.Script.Services; ... [WebMethod] [ScriptMethod(UseHttpGet = true)] public string HelloWorld(HttpContext context) { return context.Request.Params.Get("userId").ToStr...

ASMX equivalent of Page_Init?

I have some code I would like to execute very early in the lifecycle of a call to an ASMX function. For our ASPX pages, this code is in the Page_Init() function on a base class, from which all our ASPX pages inherit. Is there an ASMX equivalent to the ASPX's Page_Init() function? Better yet, is there an ASMX lifecycle diagram like the...

asmx web services and key value parameters

I currently have an asmx method defined like so : [WebMethod] public String Method1(Hashtable form) It receives json objects with a variable number of attributes, for example : {"form":{"name1":"10","name2":"20"}} This is working fine and gives the expected results when called, but when I open the web service address in the browser...

Creating web service and client with shared types

I have created two wsdl files with shared types imported from xsd schema file. After that I have created web services using interface generated by wsdl.exe tool with parameter /serverInterface. Frist web service, have web method “RegisterData” with put into queue some complex object to be processed, by system “A”. As result of this m...

WCF service exposed as ASMX won't accept parameters

Hello. I have a server/client application developed in Delphi 2006. The client is Win32 and the Server is a .net 1.1 webservice. We are in the process of updateing this project, but it has to be done in small steps. I started with the server and created a WCF project in VS2010(C# .net 4.0). The first step is to get the server running i...

How to access the url property from web service consumers

My client is required to pass the Url to my WSDL web service. They use the SoapHttpClientProtocol Url property to set it's value. Example my client pass the url value which is "http://www.contoso.com/math.asmx": namespace MyMath { using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.S...

ASP.Net Web Service - What is the correct way to add a detail element to a SOAP fault response that works for both SOAP 1.1 and SOAP 1.2?

ASP.Net 2.0 Web Services automatically create both SOAP 1.1 and SOAP 1.2 bindings. Our web service, however, has SOAP extensions and custom exception handling that make the assumption that only the SOAP 1.1 binding is used (for example, the SOAP extension uses the HTTP SOAPAction header to control behavior). I am looking to correct the ...