Reputation: 22661
I Just created a sample WCF Service application in Visual Studio 2010. It has the following configuration and service code. I need to see the corresponding WSDL generated. What I need to do to see the corresponding WSDL?
CODE
public class Service1 : IService1
{
public string GetData(int value)
{
return string.Format("You entered: {0}", value);
}
public CompositeType GetDataUsingDataContract(CompositeType composite)
{
if (composite == null)
{
throw new ArgumentNullException("composite");
}
if (composite.BoolValue)
{
composite.StringValue += "Suffix";
}
return composite;
}
}
REFERENCES
Upvotes: 4
Views: 27689
Reputation: 1313
If you need to export the WSDL to a file you can use SVCUtil to accomplish this.
svcutil /t:metadata http://servername/path/WCFSeviceApplication.svc?singleWsdl
Upvotes: 4
Reputation: 5600
You can right click on svc file and select view in browser option. Then, add ?WSDL to the end of URL. It would show the WSDL file.
You can also make use of SVCUtil for this.
Upvotes: 9