index > Windows Workflow Foundation > Why can't I inherit from InvokeWebServiceActivity?

Why can't I inherit from InvokeWebServiceActivity?

Hi I want to add som custom behavior to the InvokeWebServiceActivity but realize that it is marked as sealed (oh horror!)

First. why is that?

Second. What to do then? Do I have to recreate to whole InvokeWebServiceActivity behavior and add my extensions to this? I guess i could reverse engineer with Reflector but come on. Im lazy :)

If the ONLY way is to do it my self how do I get the "Web service Add url dialog" to show up for my custom activity. Second. How do i genrate the proxy?

regards

Anders

anderskj1

If you just need to work with the proxy, you can use the Invoking event and cast the proxy on the eventargs to your proxy type and then set properties on it.

If you want to interact with the AddWebReference dialog, the easiest way is to create a custom toolbox item and in the CreateComponentCore method, get the IExtendedUIService from the IDesignerHost passed in (call GetService). Then you can call the AddWebReference method on the IExtendedUIService instance to invoke the dialog. This will give you both the URI and the generated proxy class type as output parameters.

Matt




See What You Can Learn -- http://www.pluralsight.com/courses/IntroducingWF.aspx
Matt Milner - Pluralsight
reply 2

You can use google to search for other answers

 

More Articles

• Decision tables in Excel
• Dehydrate/Rehydrate WorkFlow
• Activity Property values not available at runtime
• pricing and requirements for WWF
• reference System.Workflow
• How to iterate over the states in a WWF state-transition diagram ...
• WF Technology Directions
• Serialization errror with TypeProvider
• Ifelse activity in workflow
• How can a new activity class be derived from a parent class that ...
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• Misunderstanding about Binding
• Does Office Release Delay Equate to WF R
• There is Event When Server is failed (WCF)
• Installing WinFX Runtime Components outp
• WorkflowMenuCommands.Undo not working?
• What if an activity is not the atomic un
• Dynamic Choice List for a Custom Activit
• need help
• Can WWF Beta2 be used in vs2005 chinese
• How do you make IMemberCreationService a
• Creating Custom State Activity
• synchronizing with workflow thread
• Is WF adequated to build an OLTP middlew
• How to call webservices in a workflow in
• Activity Properties and Conditions

Hot Articles

• Error when trying to see the designer of
• Communication between 2 different workfl
• Is there an activity to create a child w
• Office 12 and Workflow Foundation
• Host Workflow in Windows Service
• Validation of Declarative Rule Condition
• Unknown error in workflow1.xoml
• ASP.Net Designer example
• basic questions
• Event Sink question
• C++ and WWF
• Parameters
• Error on build log? and why is this cond
• Issues in installing Windows workflow fo
• Creating multiple WorkflowRuntime instan

Recommend Articles

• SetState - how to create a Role Based one?
• Wich is the better environment to work w
• Workflow Monitor Exceptions
• Workflow projects in VB Express: any mak
• How to get child workflow instanceId aft
• Wf doesn't support BPM
• Tracking the workflow (State Machine)
• Rules for ifActivity
• Missing Condition Error
• All started workflow instances
• Managing resources within workflows
• Should I use WWF?
• Newbie question - Methods not available
• Can the state-transition workflow design
• Validation error symbol