views:

80

answers:

5

Hi All,

I have written a commercial WCF web service.

I would like to give the service to another person to test independent of the application that will be using the web service. This is because a third party is going to be building that app and we don't have access to it at the moment.

Another thing to remember too is that the person I want to hand this off to for testing is a non programmer. That is important.

So are there any tools out there that can subscribe to a WCF web service, and recognise what data needs to be inserted, and create a GUI to try out different combinations of data?

Thanks.

A: 

In general, you need to publish the web service meta data (normally as a wsdl end point) - this metadata should enable any client to get all the information needed to make calls to your web service.

This may help: http://msdn.microsoft.com/en-us/library/ms734765.aspx

As may this: http://keithelder.net/blog/archive/2008/01/17/Exposing-a-WCF-Service-With-Multiple-Bindings-and-Endpoints.aspx


Update:

From the comment, is appears that you need non programmers to be able to test your service and are looking for a user interface that can be used to work directly with your web service (and automatically adapt to changes). As far as I know, there is nothing built it that will do this for you (though the old asmx services created web forms that could be used).

Oded
I have written my own app using these techniques. But I am really looking for something more general, something more dynamic. Something that a tester could use
peter
@peter - can you please edit your question and updated it to reflect the need for _non programmers_ to test the web service.
Oded
Fair enough. Done.
peter
A: 

You can consume a web service with Office InfoPath, or write a simple test application in C#.

elsni
I have already written my own test app. But I don't want to have to change the app every time the service changes. I would have thought someone out there would have written a tool that can pick up the meta data, and dynamically create a GUI for it.
peter
@peter Why don't you write a dynamic one?
PostMan
I only have a very small time frame. Writing my own would be great though.
peter
A simple gui is created when calling the web service from a browser, so what is the problem?
elsni
elsni can you please explain what you mean? Are you talking about the WCF Test Client? I am investigating that, but have some other issues with that. I have opened a new post about that, http://stackoverflow.com/questions/3800095/cannot-get-the-wcf-test-client-to-work. To be honest 'what is the problem'. I am under a lot of pressure from 2 businesses. This cannot fail.
peter
+2  A: 

I typically use SoapUI for that purpose. You can also create test suits with it and it's free. Alternatively you can use the Microsoft WcfTestClient.exe that comes with Visual Studio since version 2008 I guess...

Bernd
I am liking this tool. I am using the free version, which is a little less user friendly. I am basically writing XML. But it is powerful. I have written a suite of tests without much effort. Not so keen on the java GUI, but I can overlook that.
peter
A: 

So you are looking for application that will create UI for manual testing of your service? Not sure if something like that is available for free. SoapUI PRO is able to do that but in contrast to common SoapUI it is not free. Basic SoapUI version requires tester to write XML messages directly.

You should think about your requirement. You want tester without any programming knowledge to test artificat which is for programmers - not for end users. You probably have to buy some tool or write your own solution to support such test.

Ladislav Mrnka
+1  A: 

WCF Test Client (WcfTestClient.exe)

You can find the WCF Test Client (WcfTestClient.exe) in the following location: *C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE*

Using the WCFTestClient Tool to Test Service Operations

Using the WCFTestClient Tool to Test Service Operations

CD