WF programming invokewebserviceactivity

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.