The Problem SolverWIndows Workflow Foundation
HomeHide ChangesPrintRecent 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

Check out the formatting tips on the right for help formatting and making links.

Yes, the generated web services always use tempui.org as the namespace.

Use the template below:

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.

Summary

Yes, the generated web services always use tempui.org as the namespace.

    [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

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
    {
        string myMethod(string s);
        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);
    }
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