Since the APLNext WebTransfer class exposes the .Net HttpRequest functionality as an ActiveX object, the APLNext WebTransfer class can be used from APL+Win to access any web service. That web service does not have to be an APLNext WebServices application. The attached .pdf illustrates how the APLNext WebTransfer class may be used from APL+Win to access such a non-APL+Win-based web service using an http request created by APLNext WebTransfer.

In some application system configurations APLNext WebTransfer is installed on a client machine in order to communicate with APLNext Application Server programmatically. APLNext WebTransfer uses the http protocol, often over an Internet connection. Sometimes for security purposes, the client machine has been configured to use a proxy server for http communications. By default, APLNext WebTransfer will use the client machine's proxy server settings which have been configured on Microsoft Internet Explorer, so generally the use of a proxy server with APLNext WebTransfer is transparent. If those proxy server settings require network authentication, such as a username and password, the appropriate values for the APLNext WebTransfer properties listed below may need to be set programatically:networkCredentialDomainnetworkCredentialUsernamenetworkCredentialPassword

A customer asked:Is there a way to access a web site that has a self-signed certificate using APLNext WebTransfer? Via Microsoft Internet Exploere we have determined that the problem is that the target web site only has a self-signed certificate. Despite the potential security risk, we would like the connection to succeed. APLNext WebTransfer reports the following error message:

Error: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

Resolution: By default the System.Net namespace will validate the certificate to initiate an https request. In the case of a self-signed certificate, add it to the Trusted Groups in the Certificate Store so that the System.Net validation will succeed.

An APL+Win workspace is exposed as a web service using APLNext Application ServerThe client GUI is a .Net/C# Windows Presentation Foundation (WPF/xaml) user interfaceThe GUI makes requests and receives responses from the APL+Win-based web service via APLNext WebTransfer

This project illustrates how APLNext Application Server may be used to take advantage of multi-core processors on the web server machine.This project material is also installed when APLNext Application Server software is installed.

The attached pdf-format document illustrates using APLNext WebTransfer to implement an APL+Win-based client for an APLNext Application Server web service. The attached zip-format file contains an APL+Win workspace and an APLNext Application Server configuration file that may be used to try this example.