2

So I created a basic WCF Web Service, with one Operation Contract and a Data Contract, all built ok. However after deploy to my test web server, an attempt to download the WSDL it redirects me to the main service screen or "You have created a service", nothing shows up in error messages or event logs, Fiddler reports nothing and while I can attach to the web service ok via remote debugging, no errors show up in code. What are some other easy checks to see what is going on? This is C# on the .NET 3.5 framework.

4
  • 1
    have you tried calling the service thru service reference to see if it works Commented Jun 1, 2012 at 0:24
  • actually yes, I was creating an InfoPath form via custom code talking to it, InfoPath couldn't read the WSDL either... Commented Jun 1, 2012 at 1:41
  • basic check: what does opening http://yourserviceurl/yourservice.svc?wsdl in a browser yield ? Commented Jun 1, 2012 at 6:48
  • Nothing but the default service page or "you have created a service" default that shows with any .NET page, thanks! Commented Jun 4, 2012 at 15:11

3 Answers 3

4

Make sure you have set the 'serviceMetadata' values correctly in the server web.config file.

<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />

depending on whether you want to expose via http and/or https

Sign up to request clarification or add additional context in comments.

Comments

1

Figured it out, for some reason the code behind in the markup for the service was not set to the proper class. Fixed.

Comments

0

Same happened here when I forget to decorate the service interface with [ServiceContract] attribute.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.