asmx

ASP.NET Calling webmethods inside an webservice - Internal Server Error

為{幸葍}努か 提交于 2020-01-05 04:42:22
问题 I have an web service named AEWService.asmx with the following code: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace editor { [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [System.ComponentModel.ToolboxItem(false)] // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. [System.Web.Script.Services

Adding independent aspx/asmx pages into DotNetNuke

大兔子大兔子 提交于 2020-01-04 14:31:38
问题 Howdy, I just installed dotnetnuke 5.06 on my server, say, the path is mydomain.com/dnn I have a library independent of dotnetnuke that I have to run and it contains web services and various other httphandlers so I haven't tried to integrate it into DNN just yet. the library is located under mydomain.com/dnn/lib The library worked fine on my old server running 5.04 and everything worked fine, but for some reason my new installation with 5.06 (windows 2008, sql server, iis 7.5) returns 404

Adding independent aspx/asmx pages into DotNetNuke

与世无争的帅哥 提交于 2020-01-04 14:31:21
问题 Howdy, I just installed dotnetnuke 5.06 on my server, say, the path is mydomain.com/dnn I have a library independent of dotnetnuke that I have to run and it contains web services and various other httphandlers so I haven't tried to integrate it into DNN just yet. the library is located under mydomain.com/dnn/lib The library worked fine on my old server running 5.04 and everything worked fine, but for some reason my new installation with 5.06 (windows 2008, sql server, iis 7.5) returns 404

How to call HTTPS web service method from a .net console application?

女生的网名这么多〃 提交于 2020-01-04 05:35:17
问题 I have an ASP.net web application. It sits at https://www.example.com/Private. I would like to create a .net console application that calls a web method on my ASP.net web application at https://www.example.com/Private/DataCall. How do I program my .net console application to securely call the web method over HTTPS? I have done this before in plain HTTP, but for this application, secure communication is essential. 回答1: Uri uri = new Uri(url); WebRequest webRequest = WebRequest.Create(uri);

Running SOAP and RESTful on the same URL

房东的猫 提交于 2020-01-03 20:03:21
问题 Say we have a website that responds to a host header "kebab-shop.intra.net" Is is possible to have both SOAP and RESTful in this URL? That is, both of these are handled within the deployed code. kebab-shop.intra.net/takeaway.asmx kebab-shop.intra.net/kebab/get/... I've been told this can't be done, without much explanation. Like this answer. This could be, I'm a database monkey, but I'd like some thoughts on what options I do or don't have please. Thoughts so far Separate host headers eg add

how do you pass parameters in asmx using Flexigrid?

拜拜、爱过 提交于 2020-01-02 08:29:22
问题 here's my code: $('#flex1').flexigrid({ method: 'POST', url: '/services/MHService.asmx/GetSurgicalHistory', dataType: 'xml', colModel: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure', width: 120, sortable: true, align: 'left' }, { display: 'Notes', name: 'Notes', width: 120, sortable: true, align: 'left' }, { display: 'Complications', name: 'Complications', width: 120, sortable: true, align: 'left' } ], searchitems: [ { display: 'Surgical Procedure', name: 'SurgicalProcedure' },

First call to a .net webservice is slow

*爱你&永不变心* 提交于 2020-01-02 01:56:26
问题 I'm calling a .net webservice from my .net winforms app, both in framework 4.0. During the execution of the program, the first time the webservice has a method called, the call takes ~10-12 seconds. Subsequent calls take ~1-2 seconds. Subsequent calls, even when the web reference instance is recreated, are still ~1-2 seconds. When the winforms app is restarted, the first call delay occurs again, but subsequent calls are responsive. The instance of the web reference is being created prior to

HTTP 404 error while invoking a local webservice in .NET MVC4

会有一股神秘感。 提交于 2020-01-01 08:24:32
问题 I am trying to learn webservices in .NET mvc4. I tried creating a new Internet application and adding a Web service (asmx) to the project. By default, the VS adds a "HelloWorld" Webservice. When I try to run it in the browser, I do get the list of operations, service description(WSDL) and the details of the HellowWorld operation. However, when I try invoking the webservice, it gives the following error : Server Error in '/' Application. The resource cannot be found. Description: HTTP 404. The

C# extending SoapExtension -

♀尐吖头ヾ 提交于 2020-01-01 02:47:06
问题 Background: I'm trying to write a simple SoapExtension class to log inbound/outbound Soap messages from an asmx web service. Following this article on msdn, I have been able to get things working. However I'd really like to understand why/how it's working rather than just copy & pasting code. The question: What I'm stuggling to grasp specifically is the handling of the IO streams in the example. All other articles I've read on the web handle the streams in an identical way... first getting a

C# extending SoapExtension -

戏子无情 提交于 2020-01-01 02:47:06
问题 Background: I'm trying to write a simple SoapExtension class to log inbound/outbound Soap messages from an asmx web service. Following this article on msdn, I have been able to get things working. However I'd really like to understand why/how it's working rather than just copy & pasting code. The question: What I'm stuggling to grasp specifically is the handling of the IO streams in the example. All other articles I've read on the web handle the streams in an identical way... first getting a