Workflow Service host not publishing Metadata.

Posted by jlafay on Stack Overflow See other posts from Stack Overflow or by jlafay
Published on 2010-05-19T15:06:29Z Indexed on 2010/05/19 15:10 UTC
Read the original article Hit count: 532

Still hacking away with extreme persistence at WF services hosted outside of IIS. I'm now having issues with my WF service publishing metadata. Can someone take a look at my code and see what step I'm missing? The few tutorials that I've stumbled across for my scenario make it look so easy, and I know it is. I'm just missing something ridiculously simple. Here's my current trial code:

const string serviceUri = "http://localhost:9009/Subscribe";
WorkflowServiceHost host = new WorkflowServiceHost( new Subscribe(), new  Uri(serviceUri) );

SubscriberSvcHost.AddDefaultEndpoints( );
SubscriberSvcHost.Open();

Subscribe() is an activity that is coded in an xaml file and contains simple receive and sendreply activities to test out my hosted workflow service. It is NOT a xamlx (WF service) file. Seems like this should be simple enough to work but when I start the application and the service fires I get this message in my browser when navigating to the URI:

"Metadata publishing for this service is currently disabled."

Shouldn't adding the default endpoints provide enough metadata and description to satisfy the service init and then go into its wait for message state?

© Stack Overflow or respective owner

Related posts about wf4

Related posts about workflowservice