asmx

Creating web service and client with shared types

一笑奈何 提交于 2019-12-05 08:37:08
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 method is returned Boolean (with tell us that object was registered successful). Second web service, have web method “UpdateData” to update some data in system “B” based on this same object , with was changed in process on system “A”. So in system “A” I have to

Methods with Nullable Types not working in ASMX Web Service using GET

假装没事ソ 提交于 2019-12-05 05:58:10
I have an ASMX Web Service set up to use the HTTP GET method. Simple methods which take basic String and Int parameters are working ok, and I can call MyService.asmx/MethodName?Param=Value and get a response back in XML. However, when I have a method which has a nullable Int (i.e. int? ), I get this error: < Method Name > Web Service method name is not valid. The error message is confusing, as the method does exist, just not in the GET scope. I presume this is because a nullable type is too complex to be passed via the URL, but I can't find any documentation or SO posts on this. I appreciate

Separate threads in a web service after it's completed

房东的猫 提交于 2019-12-05 04:00:26
问题 If this has been asked before my apologies, and this is .NET 2.0 ASMX Web services, again my apologies =D A .NET Application that only exposes web services. Roughly 10 million messages per day load balanced between multiple IIS Servers. Each incoming messages is XML, and an outgoing message is XML. (XMLElement) (we have beefy servers that run on steroids). I have a SLA that all messages are processed in under X Seconds. One function, Linking Methods, in the process is now taking 10-20 seconds

Maintain whitespace/line breaks when serializing via ASMX Web Service

蓝咒 提交于 2019-12-05 03:18:47
问题 I'm doing some pre-processing of an XML document in a ASMX Webservice (Legacy .NET SOAP Service) for eventual use in a Silverlight front end. I'm processing that XML document into a POCO object for ease of use. The object is defined as follows: public class CACDocument : ITextDocument { #region Properties public string Title { get; set; } public string Text { get; set; } public List<Code> CodeList { get; set; } public XElement FormatedText { get; set; } #endregion #region Constructor public

WCF client consuming multiple asmx service that uses HTTP Cookies

与世无争的帅哥 提交于 2019-12-05 02:10:19
问题 I am trying to use the same http cookie (in effect a asmx sessionid), in multiple WCF client endpoints. The server has several endpoints, one of them is: AuthenticationService.asmx Login() <- Creates a HTTP cookie that is the servers ASP.NET sessionid Logout() <- Destroys the same cookies SomeOtherService.asmx DoSomeThing() <- Requeres a valid cookie from the AuthenticationService.asmx. How can I share the HTTP Cookie across multiple endpoints. I dont have control over the server code, and

Calling a non static method in Server Side by a Client Side Function

ぃ、小莉子 提交于 2019-12-05 01:38:15
问题 I can get an object from the server side by using static receive callbackresult methods from server side. But I want to run a non-static method in my page which populates an ajax accordion by calling a client side function. The object I am calling from server side is a complex object which I can't use in client side if I get it by callbackresults. Is there any other solution that I can run a non static method in an aspx file by a client side control ? Codes I am using so far ... function

How to send NSArray to web service

大憨熊 提交于 2019-12-04 22:03:25
I have no success to send NSArray to web service. Service method is not called. But other service methods call works. Web service method is: [WebMethod] public int Method(IList items){... My array is full of objects Items: @interface Item : NSObject { double prop1; double prop2; double prop3; } @property double prop1; @property double prop2; @property double prop3; From objective c I try to send data like this: NSString *soapMsg = [NSString stringWithFormat: @"<?xml version=\"1.0\" encoding=\"utf-8\"?>" "<soap:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http:/

IIS 7 Logging Web Service methods

China☆狼群 提交于 2019-12-04 21:49:53
问题 I have a web service (not a WCF service) hosted under IIS 7, the web service has two methods: method1, and method2. I am looking to differentiate between the requests for method1, versus the requests for method2, without modifying the web service code. Under the IIS 7 logs, I can see the requests to the web service, the web service URL gets logged under the "cs-uri-stem" field, but the "cs-uri-query" field is empty. Is there anyway to log the requests for the web service methods, without

WCF vs ASPX webmethods vs ASMX webmethods

こ雲淡風輕ζ 提交于 2019-12-04 21:15:45
问题 The intent is to create a set of web services that people can reuse. These services mostly interact with a backend DB creating, retreiving and processing data. We want to expose services so that people can use to create data mashups and other applications. End users are webpages that can be within our domain or outside our domain. For pages outside the domain we plan to release widgets that would be configured to retreive and display the data. One requirement - application should be extremely

Asp.net Core and create a webservice (asmx) [duplicate]

狂风中的少年 提交于 2019-12-04 21:04:23
This question already has an answer here: Does ASP.Net Core 1.0 support WebForm projects 2 answers With previous version of .net, I used right click on project , add file and then I can create a file name "Web Service(asmx)" and then I create my webservice and differents function needed. But I don't understand how on a new projet .net core, I create the same files to my project? thank you in advance for your help In Asp.net Core there are no separate Web Api's or Web forms, there is just ASP.Net Core MVC. Api's are implemented in the same way as MVC using controllers and actions. You just