VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



WebSvc

by Doug V. Taylor (1 Submission)
Category: Complete Applications
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (2 Votes)

WebSvc is a VB6 Client that connects to a web Service set up for Basic Authentication, using MSSoap30.
In this example program, WebSvc is used to continually submit files to a web service.
WHen started, WebSvc waits for a file matching a file mask to show up in a designated folder, then sends that file a record at a time to a web service, logging activity in a continualy appended log file, renaming the transmitted file for autoarchiving, then idles until another file shows up.
MS examples for MSSOAP30 using basic authentication web service did not work. Solution is include login/password in the connection string, and to implement iHeaderHandler event to handle the authentication challenge that comes back on the serivice function call.

Inputs
All parameters are customer entered, and saved in a WebSvc.Set file in the app folder.
Assumes
User will need to mdify the service call(s) to those defined on their target Web Service. Some basic knowledge re how a web service works is assumed. This project uses the MSSOAP30.DLL, and the MSXML3.dll
Code Returns
A log file is appended to showing all file transmissions, connections, start stops of the process (WebSvc.Log)
Side Effects
Process stops when a connection fails, or a transmission attempt fails. That event is logged. User must at that time ascertain why the web servcice is not available, then restart once the web service is running/available again.

Rate WebSvc

Download WebSvc

Download WebSvc (18 KB)

WebSvc Comments

No comments have been posted about WebSvc. Why not be the first to post a comment about WebSvc.

Post your comment

Subject:
Message:
0/1000 characters