web-services

web service can't serialize an interface

I have an interface like so: public interface IDocument : ISerializable { Boolean HasBeenUploaded { get; set; } void ISerializable.GetObjectData(SerializationInfo, StreamingContext) { } } There are three documents that inherit from this, all of which serialize just fine. But when creating a simple web service, that does nothin...

What type of performance should I expect out of web services?

What type of performance should I expect out of web services? I have an application that is averaging between 2 an 7 call per second on a simple GetServerTime() method. This method only returns a date from the server. I am using WCF and making the call over SSL. I know this question is really relative but I am just looking for some ball...

WCF for MetaWeblog

I'm trying to find a really good example for implementing the MetaWeblog API using a WCF service. I can't seem to clear my head and think of a clean way to do this. Any help is appreciated. ...

How can I get arrays to have a name other than "Items" when generating C# code from an XSD schema?

I'm working on a project that has to connect to some ancient webservices that pack some hierarchical data for requests and responses into single strings of hierarchical XML. I've been using xsd.exe to generate XSDs from sample request and response XML fragments, modifying them where necessary to be the best possible definition, and usi...

loosly-typed versus strictly typed what are the pros and cons

In our company we have discussion going on whether to allow xml/xsd strucutures (used in webservices) that contain parts that are loosly-typed, in order to make changes to them easier. What do you thing are the pro's and cons of doing one (loosly-typed) or the other (strictly-typed) ? Arguments could be in the categories, of ease of ch...

Can you generically pass web service calls to another server?

I have two servers, one in a seperate domain and the other on the primary domain, that need to pass web service calls back and forth to each other. For security and various other reasons, I don't want these machines to talk directly to each other. I would like to have a server that sits between them to route these web service requests ...

WCF, implementing a web services from an existing schema

I have to implement a SOAP web service that conforms to a (large) standard schema for the travel industry. Here's an example .XSD file: http://www.opentravel.org/2008B/OTA_HotelAvailRQ.xsd I think that rules out simply putting a [WebMethod] attribute to a method. How do you recommend implementing an existing schema using C#? PS: I'm u...

WCF Service Backwards Compatibility Check

I have just written a new version of a WCF web service and I want to make sure that I have not made any breaking changes with regard to Service and Data contracts. Thinking back to my days as a VB6 Com Api developer I recall how easy it was to specify the previous release version of the component at compile time, and have the compiler c...

Making a SOAP Web Service call using a WebRequest

We have an ASP.Net web application which calls Web Services deployed in the same virtual directory. The call returns without any problem in the development machine. But when deployed to the production server, it gives back a '400 Bad Request' error. The call was made by creating a WebRequest and setting the SoapAction header and then W...

Flex: Export Graph to .NET?

Hello, I have a graph component in Flex and my end-user wants to be able to manipulate this control in Flex, and then export the result into Powerpoint. I don't have a problem exporting an Image to Powerpoint, but where I am running into a problem is with exporting the Flex component to a .NET web service. Here is the code I have come...

exposing custom types (classes) in a web service (WSE)

Hi, If I have custom types (classes) in my web service, do I have to mark with with special attributes so they are serialized properly? i.e. [SomeAttribute] ? Update I am using WSE at the moment ...

How do I build a secure webservice with .Net?

I need to build a simple webservice to get data in and out of a HR System over the Internet (it's a hosted solution). I am using IIS and ASP.Net with .Net 2.0. Having looked into it, there are several ways of making the webservice secure - I am after some advice on which method to choose, with some views on pros and cons. These are th...

C# Web Service won't output JSON, only XML

I'm trying to use jQuery and JSON with a C# Web Service that I wrote. No matter what, the following code will only output in XML. Webservice Code [WebMethod] [ScriptMethod(ResponseFormat = ResponseFormat.Json)] public string HelloWorld() { return "Hello World!"; } I also have these attributes assigned to the class [WebServiceBin...

Is there a Web Service that allows TIN verification

Trying to develop an application to verify that a vendor is legitimate and has a Tax ID number. Any ideas? I know IRS has something but not if a Web Service exists. ...

XML Serialization - Missing Namespace Prefix at client end

I have created a .NET web service that returns an object, say Class "getResponse". The WS returns the following response ... <getResponse xmlns="http://tempuri.org/getCustomer/wsdl/"&gt; <Result xmlns="http://tempuri.org/getCustomer/"&gt; <ResultCode>OK</ResultCode> <ErrorsList/> </Result> </getResponse> while th...

How to handle IMAP requests from MSOutlook in ASP.NET page?

Brief: I am tinkering with a personal project that would serve up Task objects to MSOutlook. I would like to create a new HTTP account in MSOutlook which points at my website's *.aspx page. This page would deliver a list of Task items that do not actually reside on a mail server but are instead stored in a XML file or other simple struct...

How do you attach a debugger to a Web service?

I am using a Web service. Can anybody tell me how to debug through it? ...

How to debug through web service

Using VS 2005 SP1 I have a solution which contains an windows project and a web service project. The windows application calls the web service. I have a breakpoint in the first line in the web service method. When I run the windows app in debug mode, the call to the web service gets executed and returns but the breakpoint in the web ser...

Migrating to WCF from ASP.Net 2.0 web services

I currently have a suite of .Net web services that are developed in ASP.Net 2.0. They don't utilize any WS-E extensions, rather they implement security at the application level. They are fairly straightforward data retrieval/update features. I am interested in re-factoring these web services gradually over time into WCF services, mostly...

Ruby Web Services

Hi I'm contemplating creating a web application using a Ruby on Rails/MySQL stack and I am wondering what capabilities are available around web services and SOAP. Is there a capability within the framework or does it require an extension and if so what? ...