Hello,
Using Tor files and vbscript, I successfully retrieve Information about active servers from the Broker Information Services. However, I have no success with object-type 2 for information on active clients using the same TOR file. I receive ErrorCode 4 “Nothing was found for this request”. The vbscript is pasted below and I have attached the TOR file for your review.
Thanks in advance for insight and help.
Rabia
<%
Set CLI = CreateObject(“EntireX.Broker.ACI”)
BlockLength = 280
Version = 1
ObjectType=2
CLI.ApiVersion = 1
Set torcliobj = CLI.CreateTransObject(“\irvweb01\dcs\tsv\TorFilesAndDCOMDlls\ExbProd.tor”)
'On Error Resume Next
Set cliobj = torcliobj.ClientServer(BlockLength,Version,NotUsed,ObjectType,UserId,PUserId,Token,ServerClass,ServerName,Service,ConvId,Reserved,NotUsed)
Response.Write (cliobj.ErrorCode & “–” & CLI.ErrorCode)
On Error Resume Next
Do
Set recvobj = torcliobj.ClientServer(BlockLength,Version,NotUsed,ObjectType,UserId,PUserId,Token,ServerClass,ServerName,Service,ConvId,Reserved,NotUsed)
'Response.Write (recvobj.Userid & “–” recvobj.ErrorCode & “–” & CLI.ErrorCode )
Loop Until CLI.ErrorCode = “00030005”
%>
Tor File
ExbProd.tor (20.5 KB)
#Mainframe-Integration#EntireX#webMethods