web-services

Windows - Unknown File Type & Windows Web "Lookup"

On MS Windows, when you double-click a file with an unknown file extension, the OS presents you with a message giving you a a choice of: 1 - Use the Web service to find the appropriate program 2 - Select the program from a list Is there a way to "register" your file extension with MS (or whoever) to allow your application to show as a...

Why IWSDLPublish interface is added to Win32 Delphi WebService

I've created a simple CGI application using Delphi 2009 that publishes a web service. When I point my web browser to the app, I can see my web service interface and another interface: IWSDLPublish. Why is this interface added to my web service? Do I need it? Is it possible to not publish this interface? Thanks. ...

How can I get this XML Structure

I have a web service that has an input object similar to the following. public class MyInput { [System.Xml.Serialization.XmlArrayItem("Demographic")] public DemographicsInfo[] Demographics {get; set;} } With the definition of the DemographicsInfo class like this. public class DemographicsInfo { [System.Xml.Serialization.X...

WebService and Polling

Hi, I'd like to implement a WebService containing a method whose reply will be delayed for less than 1 second to about an hour (it depends if the data is already cached or neeeds to be fetched). Basically my question is what would be the best way to implement this if you are only able to connect from the client to the WebService (no no...

Is it possible to return interfaces from .net webservices or can one only return concrete classes?

I need to return a complex type from a webservice and had constructed the class MyComplexType which implements the interface IMyComplexType. Now in my webservice I have a method that should return an object that implements IMyComplexType like so: [WebMethod] public IMyComplexType GetMyComplexType() { IMyComplexType myCt = new MyCompl...

Multiple XmlElement attributes on same property/class/...

I'm putting several legacy web services and the current web service into the same back end. But I have to keep the old web services compatible with there old interface. So my question: Is there a way I can set several attributes on, for example, a property? Like this: [XmlElement("AvailableFrom",... what I need...)] [XmlElement("Ava...

Why does my Web Service call only work if you "watch" the connection?

Okay this is a real headscratcher. I have an application which calls a web service. It is a valid web service that pulls some data from a SQL server db, whacks it into an XML document and returns it to the Winforms app for processing. This works fine in debug. It fails when you run it normally but it does so returning specific data th...

Parsing XML result from a Web Service

I'm new to Web Services and XML and was tasked to parse an XML response packet returned. What's the best way to parse an XML result in C#.NET? I need to bind to a data grid as the end result from a search query. ...

Create HTML table out of object array in Javascript

I am calling a web Method from javascript. The web method returns an array of customers from the northwind database. The example I am working from is here: Calling Web Services with ASP.NET AJAX I dont know how to write this javascript method: CreateCustomersTable This would create the html table to display the data being returned. Any...

wsdl.exe /sharetypes

I'm working with multiple third party webservices (from the same vendor) that appear to be using the same object structure server side. One of the services allows me to query a list of users by role, and another allows me to query a single user by ID. In order to get this to work the best way possible, the users returned from both serv...

Custom HTTP Basic Authentication for ASP.NET Web Services on .NET 3.5/VS 2008

I am refactoring a working ASP.NET Web Application to expose Web Services interface using ASP.NET Web Service. According to Web Services authentication - best practices, Basic Auth over https is the way to go. Let's assume it is, as opposed to doing WS-Security, X509, etc.. On .NET 3.5/VS 2008, what's the simplest way of implementing cu...

Notifying the user after a long Ajax task when they might be on a different page

I have an Ajax request to a web service that typically takes 30-60 seconds to complete. In some cases it could take as long as a few minutes. During this time the user can continue working on other tasks, which means they will probably be on a different page when the task finishes. Is there a way to tell that the original request has be...

Intermittent WebException When Calling REST Web Service

My application makes multiple HttpWebRequests to a REST webservice sometimes as many as 50 for a single page. I have started intermittently getting the following WebException, which occurs on random endpoints The underlying connection was closed: An unexpected error occured on a receive The application is on IIS6, Windows Serve...

How to retrieve PC name of client from C# webservice

I have a C# web service running on a separate server machine. I would like to be able to retrieve the client machine name when using a specific method on the web service. I have searched online and people have mentioned that this would be difficult to retrieve client machine names if the clients were connected to a router. Update: If th...

Calling .Net webservice with Jquery is causing woe when trying to post data

The following code executes properly when the data key has no data to send, i.e. data: "{}" an empty JSON object and the webservice takes no parameters. I would like to post some data to the webservice but I am running into trouble. When I try to set this to data:"{'name':'Niall','surname':'Smith'}", I get an error {"Message":"Invalid...

Why does my service reference only generate asynchronous methods?

I have a Service Reference (not a web reference) in VS2008 to a web service that I did not write. The reference works, but only asynchronous versions of each method are available for me to use. In the "Configure Service Reference" dialog, the "Generate asynchronous operations" is checked and grayed out. First of all, I thought checking...

Comsuming a webservice havin both input and output parameters using flex builder

How can i Comsume a webservice having both input and output parameters using flex builder 3.0. If anyone have the sampple code or reference to the code please provide me the same. Thanks in advance, David ...

Automatically resend a message in WCF

I am using WCF to talk to a Java web service. This web service has a method called Authenticate that returns a session ID. Every request to this web service must contain this session ID in the SOAP header. If one's session times out, invoking any method results in a SoapException being returned. I would like to: Intercept every call ma...

Compact Framework - WebRequest sometimes fails for no reason?

Hi all, I've got a web service that I talk to from a PDA. In the same directory as the webservice asmx file, I have an html file that I pull a web request from in order to see if the directory is available. I use the following code: /// <summary> /// Holds the web request for checking the connectivity. /// </summary> pr...

Web Service Client as Singleton?

Last week I started working on existing code for a Web Service Client which was implemented on a Singleton. I never considered doing this myself, so I started searching for opinions from people with a deeper understanding of the request handling, etc. I couldn't find an unanimous answer about it. Anybody with ideas: does the Singleton so...