Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

How to: Implement a Windows Communication Foundation Contract Operation

After dragging a ReceiveActivity activity from the toolbox to the workflow design surface, you will either create a new Windows Communication Foundation (WCF) contract or import an existing contract and implement the operations. You select and/or create your contract and its operations through the Choose Operation Dialog Box.

To implement a WCF contract operation

  1. Double-click the ReceiveActivity activity in the designer or click the ellipsis next to the ServiceOperationInfo property in the Properties pane.

  2. Do one of the following:

    • Click Add Contract in the upper-right corner of the dialog box. This will create a new WCF contract and operation for you.
      -or-
    • Click Import in the upper-right corner of the dialog box. The Browse and Select a .NET Type Dialog Box opens. Search for an assembly or project that contains the contract you want. Select the contract and click OK.

    After a contract is created or imported, you can add new operations to that created or imported contract. To add a new operation, select the contract and click Add Operation in the upper-right corner of the dialog box. When you are done adding operations, proceed to step 3.

  3. Select the operation you want to associate with the ReceiveActivity activity. You can manipulate the definition of the operation by changing the operation's name, parameters, properties, and permission settings.

    To change the name, enter the new name in the Operation Name text box.

    Click the Parameters tab to access the operation's parameters. You can change the name, type, or direction of a parameter as well as add or delete parameters from the operation.

    Click the Properties tab to access the operation protection level and supported message exchange functionality of the operation.

    Click the Permissions tab to specify which group(s) are allowed to implement the operation.

  4. Click OK and the ReceiveActivity activity will display the operation name for the operation that it is implementing.

  5. Place the workflow activities you are going to use for the implementation of that operation within the ReceiveActivity activity.

See Also



Copyright © 2007 by Microsoft Corporation. All rights reserved.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.