[Original] Support for asynchronous simple soap call module, soappro. dll

Source: Internet
Author: User
If you use VB to call WebService, be careful !! This module supports synchronous/asynchronous calls.
Superior Performance! If you have any comments or suggestions, please send an email to: ray530@21cn.com Thank you !!!
Module:
Http://files.cnblogs.com/raylynn/SoapPro.rar ' **************************************** *********************************
' ** Module name: form1
' ** Description: soappro usage example. This module includes synchronous and asynchronous.
' ** Creator: Ray
' ** Date: 10:02:11
' ** Modifier:
' ** Date: 10: 03 2007-3-5
' ** Description:
' ** Version: v1.0.0
' **************************************** *********************************

Private Withevents soapexecuter As Soappro. soapclientpro

Private   Sub Commandmediaclick ()
' Synchronous call
Msgbox Soapexecuter. executemethod ( " Helloworld " ) &   " _ Synchronous call "

' Asynchronous call. Note that the return value of asynchronous call is requesterid.
Call Soapexecuter. executeasyncmethod ( " Helloworld " )
End sub

Private   Sub Form_load ()
Set Soapexecuter =   New Soapclientpro
Soapexecuter. initialize " Http://www.ffrcw.com/service.asmx " , Version11
End sub

Private   Sub Soapexecuter_executecompleted (datas As   String , Requesterid As   String )
' Asynchronous call execution callback.
Msgbox Datas &   " _ Asynchronous call requesterid: "   & Requesterid
End sub

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.