asmx

“Any tool to generate Web Service Proxy for .Net 1.1”

北慕城南 提交于 2019-12-11 02:37:22
问题 I've a WSDL file with links to external XSD's (I've the xsd's as well deployed to the correct relative path as it's reference in WSDL). When I'm trying to generate a proxy with VS 2003 (.Net 1.1 wsdl tool) The proxy didn't get generated. However it worked fine for VS 2005. What could be wrong. Any idea? It gives Unable to Import Binding and didn't generates a proxy class. PS: My wsdl file is very long and there are dozens of xsd it referenced so can't post all here. EDIT: Is there any other

How to abort an ASMX request based on logic in the constructor?

纵然是瞬间 提交于 2019-12-11 01:23:20
问题 I have a common base class from which all my ASMX webservice classes will inherit. In the constructor, I want to do some common authentication checks; if they fail, I would like to halt processing right away (subclass's code would not get executed) and return a 401-status-code response to the caller. However, the common ASPX-like ways of doing this don't seem to work: Context.Response.End(); always kicks back a ThreadAborted exception to the caller, within a 500-status-code response. Even if

Calling ASMX Service from C# app with Windows authentication?

橙三吉。 提交于 2019-12-10 23:53:32
问题 I have created simple .NET Web Service (ASMX) that I call from my .NET web application. The service and web app both use Windows Authetication. com.mydomain.MyWebService webSrvc = new com.mydomain.MyWebService(); string output = webSrvc.MyServiceMethod(); I am now creating Windows app with C#, and would like to call the same web service from there. I have added a web reference in my project to the service, and I can make calls to the service web methods without issue. The problem is, inside

Access to ModuleID and PortalID in asmx webservice file in DotNetNuke

本小妞迷上赌 提交于 2019-12-10 23:16:24
问题 I have an asmx webservice file in my DotNetNuke module.How can I access to PortalID and ModuleID in this asmx file . when I try this code that works fine in code behinde .ascx.cs file it return portalID=0 , ModuleID=1 private Components.Setting _ModuleSettings; _ModuleSettings = new Components.Setting(PortalId, ModuleId); 回答1: Module settings require that you be within the context of a module. An .asmx service is not going to have that level of context. 回答2: EDIT The below is still true,

Passing a DateTime parameter to ASP.NET Web Service

大城市里の小女人 提交于 2019-12-10 22:52:24
问题 Is it possible to post a DateTime parameter to a Web Method inside an ASMX web service (using a JSON serialized RPC style call)? I am sending a DateTime to the browser and this gets serialized in the form /Date(1350639464100+0100)/. I can then use the excellent moment.js library to parse the date, display it on the page etc. My problem is returning this date to the server using an AJAX post to my web service. My web method looks something like this: [WebMethod(EnableSession = true)]

How do I get ASP.NET WebForms Routing to route .asmx JSON calls properly?

自古美人都是妖i 提交于 2019-12-10 22:46:40
问题 I am attempting to implement multi-tenancy in a legacy ASP.NET WebForms app. I want the URL to indicate the proper client, like so: http://example.com/client_name/Default.aspx http://example.com/client_name/MyWebService.asmx However, I cannot get it to route the .asmx's properly. This routing rule picks up all incoming urls just fine: routes.Add("ClientSelector", new System.Web.Routing.Route ( "{client}/{*path}", routeHandler: new ClientRoute() )); But I am having issues with handling .asmx

Class Libraries, Silverlight and Webservices

爱⌒轻易说出口 提交于 2019-12-10 22:39:55
问题 I have a Silverlight Class Library that I want to use in both my Silverlight and my WebService project. I am able to create and reference the Library in both projects without any problems, but when I try to use any of the classes in the Library on the Silerlight project, I get an ambiguous reference error between my Library and the Asmx Webservice (apparently, the silverlight project believes that the classes in the class library exist in the webservice). How can I correct this issue? I have

How can I send parameters for ASP.NET webservice

旧时模样 提交于 2019-12-10 19:48:35
问题 I have an university project where I should implement a java powered website that uses web services: some that will be created as servlets and others that should be created as .NET "servlets". I created the java servlet that can be called as /loginservice/username="__________"&md5="____________". All good. Now I must implement another service in .NET. I created a ASP.NET web service application but this type of application uses POST instead of GET. I found out that this could be changed by

KSOAP2 Library…Error sending data to asmx webservice

陌路散爱 提交于 2019-12-10 19:06:45
问题 I have an ASMX webservice setup on Microsoft Azure and I'm trying to send data to the webservice and receive output using an android application. For this purpose, I am using the KSOAP library. On the webservice, I'm checking if the strings are null. If they are, I return an error code "2405" [WebMethod] public string LoginUser(string auth_token, string username) { // All these tests performed, so someone from outside of out application // scope does not attempt to abuse our webservice.

Modifying SOAP requests with GetWebRequest

房东的猫 提交于 2019-12-10 15:30:34
问题 I am trying to dynamically modify XML data in SOAP requests to ASMX services. I overrided GetWebRequest() method in SoapHttpClientProtocol class in order to read and modify XML data that the RequestStream contains. The problem is, the request seems to be empty, there is no data in it whatsoever. Is this because the SOAP data hasn't yet been generated and serialized or am I doing something wrong? 回答1: What you need is a SoapExtension . You could hook into the SoapMessageStage.AfterSerialize