Is there a testing tool for testing a C # .net web service that contains complex types?

I created a C # .net web service that takes a complex type as a parameter. Is there a testing tool that I can run against my web service and pass all the values ​​to a complex parameter type?

Some background information: I ran the xsd.exe tool against my XSD and created the .cs class. This .cs class has a dataset that is used as my complex parameter. Now I need to check my web method and pass values ​​to it as a client. I tried WebService Studio and Storm , but it seems that none of the products can handle complex types. Is there any other product that can do this? Or am I writing my own test application from scratch?

+4
source share
5 answers

soapUI will help you with this.

However, as I usually do, it is to write automatic unit tests using NUNIT or MSTEST, add a link to the service, and then just write tests. This gives you the added benefit of creating the same client code that your users will need. If your service is difficult to use, you will quickly find out.

+2
source

For classic ASMX services, I used Web Service Studio 2.0, which handled every complex type I selected. You can get the classic version (2.0) from http://archive.msdn.microsoft.com/webservicestudio20/ .

I know there is an updated version on codeplex that you are associated with, and it looks like it has been updated to support complex types. (A while ago was a useless tool for codeplex that couldn't execute complex types.)

Just wondering what specific problem you are experiencing in Web Service Studio?

UPDATE: after reading your question again, it looks like you are using a DataSet in your service. If so, then you will have compatibility issues consuming this service from most toolkits; they cannot handle a DataSet because it is a "dynamic" type. The easiest way to solve this problem is to avoid DataSets .

If so, then I agree with others that you need to create your own .NET application that can use your service.

+4
source

I would test it using Visual Studio with Windows Form referring to your web service. In this form of Windows, you can use NUnit, Fit, or whatever you usually use to test your application. If you run both your web service and Windows Form in debugging, you can go through the code to see the results.

This is the method that I use, I have never heard of another way in .net web services with custom types.

+3
source

Isn't it easy to get a copy of Visual Studio Express (if you don't have the full version) and create a Windows application, add a web link and check it out?

Should give you less time than I read this question;) (and no, I'm not a slow reader)

+1
source

For simple cases, you can use the WCF test client (WcfTestClient.exe) introduced in Visual Studio 2008. Find more at http://msdn.microsoft.com/en-us/library/bb552364.aspx

SoapUI is good for more complex cases.

+1
source

All Articles