How can we call web service other than WCF from SendAndReceiveReply Activity in WF4?

Mar 25, 2011 at 10:02 AM

We want to call normal web service other than WCF from SendAndReceiveReply Activity in WF4 . What will we specify in ServiceContractName in case of normal webservice? Can anyone explain the steps?

Apr 7, 2011 at 9:25 AM

ServiceContractName is the WSDL PortType: http://msdn.microsoft.com/zh-cn/library/system.servicemodel.activities.receive.servicecontractname.aspx

To call web service from WF4, you can use one of the following methods:

1. Use "Add Service Reference" feature, which automatically generate the stub activity from WSDL. Please check the MSDN article for the steps: http://msdn.microsoft.com/en-us/library/ff729672.aspx

2. Use the messaging activities directly. You will need to check the WSDL of the web service and fill in the Send activity properties accordingly.

For example, in WSDL, the portType name="ITest", and the targetNamespace is http://tempuri.org/, then the ServiceContractName should be: {http://tempuri.org/}ITest

For future reference, you may want to post WF related questions to the WF forum: http://social.msdn.microsoft.com/Forums/en-US/wfprerelease/threads

Best Regards,

Leo

This posting is provided "AS IS" and confers no rights or warranties.