Silverlight calling windows workflow foundation as a web service

Posted by wissem on Stack Overflow See other posts from Stack Overflow or by wissem
Published on 2010-04-19T20:21:31Z Indexed on 2010/04/20 8:33 UTC
Read the original article Hit count: 233

hi,

I'm trying to call a windows workflow foundation published as a web service from a Silverlight project. When I call it from a console application it works fine because I can add a web reference then I just make an instance of that webservice then I invoke the method I want. The problem is in the silverlight project cause i can just add a service reference so I find myself working with soap stuff that doesn't work at all, and here is the code:

 private void btnUpdate_Click(object sender, RoutedEventArgs e)
 {
   xxxxxxx.Workflow1_WebServiceSoapClient zer = new xxxxx.Workflow1_WebServiceSoapClient();
        zer.demanderSubmitReportCompleted += new EventHandler<xxxxxxxxxxxxxxx.demanderSubmitReportCompletedEventArgs>(service2);
        zer.demanderSubmitReportAsync("zzz", 20000);

   }  


public void service2(object sender, xxxxx.demanderSubmitReportCompletedEventArgs e)
{
        string a = e.Result;
}

plz help ,thanks

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about workflow-foundation