web-services

How many ServiceContracts can a WCF Service have?

Specifically, since a ServiceContract is an Attribute to an Interface, how many interfaces can I code into one WCF web service? Is it a one-to-one? Does it make sense to separate the contracts across multiple web services? ...

Is soapUI the best web services testing tool/client/framework?

I have been working on a web services related project for about the last year. Our team found soapUI near the start of our project and we have been mostly(*) satisfied with it (the free version, that is). My question is: are there other tools/clients/frameworks that you have used/currently use for web services testing and would recomme...

How do I extract the inner exception from a soap exception in ASP.NET?

I have a simple web service operation like this one: [WebMethod] public string HelloWorld() { throw new Exception("HelloWorldException"); return "Hello World"; } And then I have a client application that consumes the web service and then calls the operation. Obviously it will throw an exception :-) ...

How to remove "VsDebuggerCausalityData" data from SOAP message?

I've got a problem where incoming SOAP messages from one particular client are being marked as invalid and rejected by our XML firewall device. It appears extra payload data is being inserted by Visual Studio; we're thinking the extra data may be causing a problem b/c we're seeing "VsDebuggerCausalityData" in these messages but not in ot...

Protecting API Secret Keys in a Thick Client application

Within an application, I've got Secret Keys uses to calculate a hash for an API call. In a .NET application it's fairly easy to use a program like Reflector to pull out information from the assembly to include these keys. Is obfuscating the assembly a good way of securing these keys? ...

Can you call a webservice from TSQL code?

Is there a way to call out from a TSQL stored procedure or function to a webservice? ...

How to you pass a variable amount of parmeters to web-service

Hi all We are trying to create a web-service that we plan to pass a variable amount of variables to it. Can this be done? Basically instead of pass all possible parameters we wish to pass only the set values and use the defaults set in the web-service. Here is an example of the XML we are looking to send, we would sent an unknown amo...

Automate test of web service communication

I have an application that sends messages to an external web service. I build and deploy this application using MSBuild and Cruisecontrol.NET. As CCNET build and deploys the app it also runs a set of test using NUnit. I'd now like to test the web service communication as well. My idea is that as part of the build process a web service ...

How to transform a WebService call that is using behaviours?

We have some really old code that calls WebServices using behaviours (webservice.htc), and we are having some strange problems... since they've been deprecated a long time ago, I want to change the call. What's the correct way of doing it? It's ASP.NET 1.1 EDIT: Please stop re-tagging when it's not needed. Refer to the FAQ ...

Exception in Web Service locks DLL and prevents publishing. Workaround?

I'm using a native DLL (FastImage.dll) in a C# ASP.NET Web Service that sometimes locks (can't delete it---says access denied); this requires stopping IIS to delete the DLL. The inability to delete this DLL in the bin folder of my published Web Service prevents me from publishing successfully (even though it thinks it published successfu...

Lazy Loading with a WCF Service Domain Model?

I'm looking to push my domain model into a WCF Service API and wanted to get some thoughts on lazy loading techniques with this type of setup. Any suggestions when taking this approach? ...

Add service reference to Amazon service fails

Add service reference to Amazon service fails, saying "Could not load file or assembly "System.Core, Version=3.5.0.0,...' or one or more of it dependencies. The module was expected to contain an assembly manifest." This is in VS 2008, haven't installed SP1 on this machine yet. Any ideas? ...

Who provides a WHOIS API?

Anyone can do WHOIS lookups through the whois command line tool or web based interfaces direct from the registrar but there are query limits which make commercial use difficult e.g. bulk checking of expiry dates on all your existing domains is not possible once you have more than x domains, where x is whatever thw WHOIS server query limi...

Consuming web services from Oracle PL/SQL

Our application is interfacing with a lot of web services these days. We have our own package that someone wrote a few years back using UTL_HTTP and it generally works, but needs some hard-coding of the SOAP envelope to work with certain systems. I would like to make it more generic, but lack experience to know how many scenarios I would...

Web Service Namespace Dynamic Naming

I have a webservice that I will be deploying to dev, staging and production. Along with this will be an ASP.net application that will be deploying separately but also in those three stages. What is the most pragmatic way to change the following line in the webservice to match the current environment? [WebService(Namespace = "http://de...

What's a good design pattern for web method return values?

When coding web services, how do you structure your return values? How do you handle error conditions (expected ones and unexpected ones)? If you are returning something simple like an int, do you just return it, or embed it in a more complex object? Do all of the web methods within one service return an instance of a single class, or...

Exceptions in Web Services

My group is developing a service-based (.NET WCF) application and we're trying to decide how to handle exceptions in our internal services. Should we throw exceptions? Return exceptions serialized as XML? Just return an error code? Keep in mind that the user will never see these exceptions, it's only for other parts of the applicatio...

Possible to create REST web service with ASP.NET 2.0

Is it possible to create a REST web service using ASP.NET 2.0? The articles and blog entries I am finding all seem to indicate that ASP.NET 3.5 with WCF is required to create REST web services with ASP.NET. If it is possible to create REST web services in ASP.NET 2.0 can you provide an example. Thanks! ...

WCF Service Returning "Method Not Allowed"

In the process of developing my first WCF service and when I try to use it I get "Method not Allowed" with no other explanation. I've got my interface set up with the ServiceContract and OperationContract: [OperationContract] void FileUpload(UploadedFile file); Along with the actual method: public void FileUpload(Upload...

Timezone lookup from latitude longitude

Is there any library (or even better, web service) available which can convert from a latitude/longitude into a time zone? ...