The Problem SolverWIndows Workflow Foundation
HomeShow ChangesEditPrintRecent ChangesSubscriptionsLost and FoundFind ReferencesRename

Search

History

26-11-2007 08:12:405-10-2007 15:54:3923-8-2007 22:56:5721-10-2006 13:54:2621-10-2006 13:54:08

List all versions

Web Service Namespace
.
Summary

The generated web services always use tempui.org as the namespace.

The recommended work around for this is to write your own web service proxy class by deriving from WorkflowWebService. Here's a rough sample which we recommend. After talking to the dev team about this we're considering putting out a sample that helps you generate this more directly.

    [WebServiceBinding]
    [WebService(Namespace="http://www.customname.com")]
    public class myWFWebService : WorkflowWebService
    {
        public myWFWebService()
            : base(typeof(Workflow1))
        {
        }


        [WebMethod]
        public virtual string myMethod(string s)
        {
            return (string)base.Invoke(typeof(Interface1), "myMethod", true, new object[] { s })[0];
        }
    }

The above sample is for an interface that’s like this:

    interface Interface1
    {
        string myMethod(string s);
    }

Another solution can be found http://nayyeri.net/archive/2007/04/05/how-to-create-a-webservice-based-on-a-workflow.aspx

Wiki Usage

This wiki site is supposed to be a shared resource. As a shared resource everyone is encouraged to add new content or modify existing content!

Enjoy the WF wiki.

Recent Topics