The invokewebservice activity is used to call an external web service. when we add this activity to the designer, Visual Studio will pop up the familiar add web reference dialog box (just as we add web reference to any in Visual Studio.. Net project ). we only need to browse a Web Service Description Language (WSDL) document that describes web service information. visual Studio acquires the WSDL and generates a proxy class for the web service. then we can configure the name of the method to be executed for the activity and bind its parameters to the domain or attribute of the workflow.
Webserviceactivity contains two events: invoking and invoked, which are triggered before and after the Web Service is called respectively. We can use these events to initialize web service parameters or receive Web service return values.
| Attribute |
|
| Proxyclass |
Implementation of the soaphttpclientprocotol class on the WebService to be called When this control is added, a wizard for Adding web references appears. You can complete the implementation of soaphttpclientprocotol in the Wizard. |
| URL |
URL of the Web service to be called |
| Methodname |
Method Name For calling Web Services The designer will see the corresponding [parameter ing wizard] According to the method parameters. |
| Event |
|
| Invoked |
After the execution is complete |
| Invoking |
To execute |
Illustration:
Reference link: http://www.cnblogs.com/xiaoshatian/archive/2007/10/22/933235.html
Http://www.cnblogs.com/foundation/articles/521050.html