The information in this article applies to product: e-Work 6.x
Issue
When calling a web service, the following error message is displayed:
Connector:Connection time out. HRESULT=0x800A1527 - Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A1527 - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A1527 - Client:Unspecified client error. HRESULT=0x800A1527
Resolution
Try setting the client timeout to a greater value. The default client timeout is 30 seconds unless explicitly set in the code. In the sample script provided with e-Work, the following code is used in FedExTrackerService.vbs:
Sub Init(WSDL, serviceName)
Set SoapClient = CreateObject("MSSOAP.SoapClient30")
SoapClient.MSSoapInit WSDL,accountService,"",""
End Sub
The following code would set a default of 90 seconds:
Sub Init(WSDL, serviceName)
Set SoapClient = CreateObject("MSSOAP.SoapClient30")
SoapClient.MSSoapInit WSDL,accountService,"",""
SoapClient.ConnectorProperty("Timeout") = "90000"
End Sub
Note: the timeout must be set after calling the MSSoapInit method.