views:

26

answers:

0

I'm not sure if I really understood what workflow foundation is. I recently started working on it and I was really amazed to be able to code using flowcharts.

My requirement is to send xml request to wf4 service using pretty much any kind of soapclient. It could be xmlhttp or from a wpf application. Currently I added a xbap project and trying to consume the wf4 service just like I do on webservices.

ServiceReference1.SendRequest request = new ServiceReference1.SendRequest();
request.request = textBox1.Text;
ServiceReference1.SendRequestResponse response = new ServiceReference1.SendRequestResponse();
textBox2.Text = response.ToString();

It's a declarativeService project, I tested it using wcfclient, it works well. But I want to test it from wpf app.

I forgot to mention my issue. The issue is that I couldn't get the above code to work. And also, I can't find a way on the wf4 service to return the response. I renamed the default method 'GetData' to sendrequest and added a parameter called request. This 'request' parameter is visible, but how do I get the response back from the service.

Thanks, Ganesh