Skip to main content

Web Service SOAP query fails and Validation crashes when calling a Microsoft WinHTTPRequest object from a SBL Document Validation Script


QAID # 15104 Published

Question / Problem:

When calling Microsoft's WinHTTPRequest object from a SBL Document Validation Script for a Web Service/SOAP query, and the call fails, and Validation crashes.

Is there a way to work around this?

Answer / Solution:

The root cause of this failure is unknown, but has been observed, and it likely due to an issue within the WinHTTPRequest component.

If utilizing a VB.NET Validation Script is not a valid option, it may be possible to use the very similar functionality of the Microsoft.XMLHTTP component.

For example:

Dim xml As Object
'Create an xmlhttp object:
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
'Opens the connection to the remote server.
xml.Open "GET", "", False
'Actually Sends the request and returns the data:
'Show the response as a message box.
MsgBox xml.responseText
NOTE: The APIs mentioned here are not supported or endorsed by Kofax, and are to illustrate a workaround to a specific issue observed in one case.

Applies to:

Product Version
  • Was this article helpful?