Consuming Interfax web service from asp

Consuming web service from asp environment requires a SOAP library to be made available. The package we have found most suitable is an open source library named Pocket SOAP available here.

The sample code provided by Interfax was implemented with the Pocket SOAP library.

An alternative option will be to using Microsoft SOAP Toolkit v3.0. The Microsoft package is available here.

Comments on the sample project

Required references

The asp sample project needs the following com objects to be installed

  • Microsoft ActiveX Data Objects 2.8 Library
  • PocketHTTP 1.3.3 Type Library
  • PocketSOAP 1.5.5 Type Library
  • Microsoft XML, v3.0
  • Interfax credentials

    Username and password are set at the Utils.asp include file. Change them according to your ones.

    Using web service methods

    Each module is named after a web service method. The values of most parameters are arranged as constants at the head of each module.

    In addition a module named Utils.asp is provided, and is included by all scripts. It contains useful tools for manipulation of binary data, to overcome some asp limitations.

    Enjoy!!