.NET WebService Studio and WCF
Has anybody managed to get the.NET WebService Studio to generate a proxy assembly so that a WCF service could be tested? All I get when I connect to an SVC endpoint (our WCF is hosted in IIS) is that the WSDL is successfully consumed, but the Proxy node looks like:
//
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.42
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//
//
// Assembly WebServiceStudio Version = 2.0.50727.42
//
As a result, the Invoke tab is blank, and nothing can be tested.
Thanks.
[981 byte] By [
gn_ctax] at [2008-1-4]
Here's an example:
You have created a service.
To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:
svcutil.exe http://<server>.com:4999/MartService.svc?wsdl This will generate a configuration file and a code file that contains the client class. Add the two files to your client application and use the generated client class to call the Service. For example:
C#
class Test
{
static void Main()
{
MartServiceClient client = new MartServiceClient(); // Use the 'client' variable to call operations on the service. // Always close the client.
client.Close();
}
}
Visual Basic
Class Test
Shared Sub Main()
Dim client MartServiceClient = New MartServiceClient()
' Use the 'client' variable to call operations on the service. ' Always close the client.
client.Close()
End Sub
End Class
That's good to know, but why doesn't WebService Studio work with it anymore? Was it not written to interpret WSDLs based on standards then? Incidentally SOAP UI worked out of the box with .NET 2.0 Web Services but have the same problem as WebService Studio for WCF Web Services.