Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WF4 service client doesn't generate proxy class

I have a windows workflow foundation 4 service and a simple client.

When I add the service reference in the client visual studio doesn't generate a proxy class, only the interface and types.

Anybody have any solution?

What should I do to work with the wf4 service properly? What kind of namespace and classes and contracts I need to use?

Thanks!

like image 655
Murilo Lima Avatar asked Apr 30 '26 01:04

Murilo Lima


1 Answers

When the client project is a workflow project type setting a service reference works a bit different. Instead of generating the standard proxy classes it generates Send & ReceiveReply activities for use on a workflow. Very nice if you are building a workflow, not so when you want to call the service using regular code.

You can either use SvcUtil manually to generate your proxy classes or use the ChannelFactory with the generated interface to create the required proxy object. The last is usually the easier option.

like image 156
Maurice Avatar answered May 02 '26 21:05

Maurice



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!