Activity 'Workflow1' validation failed:
  • hi all can anyone tell why WCF throw error about validation failed i am just simply define my method see my code

    [ServiceContract]
        public interface IWorkflow1
        {

            [OperationContract]
            string GetData(int value);

            // TODO: Add your service operations here

            [OperationContract(Name = "GetData")]
            string GetCustomerById(int value);
            [OperationContract(Name = "GetData")]
            string GetCustomerByName(string value);
        }
  • 2 Comments sorted by
  • Vote Up0Vote Down aftabaftab
    24.50 Karma Accepted Answer
    try unique name attribute below code is working try this.

    [ServiceContract]
    public interface IWorkflow1
    {

            [OperationContract]
            string GetData(int value);

    // TODO: Add your service operations here

            [OperationContract(Name = "GetCustomerById")]
            string GetCustomerById(int value);
            [OperationContract(Name = "GetCustomerByName")]
            string GetCustomerByName(string value);
    }
  • thanks its working

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Tagged

Popular Posts of the Week

    Optimum Creative