Please HELP! Error: -2147012894 (80072ee2) the operation timed out on WinHttpRequest.5.1

Hello
I REALLY NEED SOME GUIDANCE ON THIS ERROR.
Does anyone know why this could be happening.  I am getting the error:  -2147012894 (80072ee2) the operation timed out.  I have this code in an Excel macro.  I am sending the URL an XML string and am expecting a response
but I am getting the time out error on the SEND.  I have tried using the SetTimeouts method, but I still get the error.    
Could it be my machine settings?  Does WinHTTPRequest work with Excel VBA?  I am just lost at this point.  I have researched, and have seen examples of Excel VBA using WinHTTPRequest.  I do not know why I am getting
the error.
Your help is very much appreciated.  I really need some direction on how to resolve this issue. 
smsemail
Private Sub CmdGetData_Click()
colLabel = 1
colStreetAddress = 23
colCity = 24
colState = 25
colZipCode = 26
colZipFour = 27
lastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row
For rw = 4 To lastRow
If Worksheets("Sheet1").Cells(rw, colStreetAddress).Value = "" Then GoTo nextLabel:
If Worksheets("Sheet1").Cells(rw, colCity).Value = "" And _
Worksheets("Sheet1").Cells(rw, colState).Value = "" And _
Worksheets("Sheet1").Cells(rw, colZipCode).Value = "" Then GoTo nextLabel:
If (Worksheets("Sheet1").Cells(rw, colCity).Value = "" And _
Worksheets("Sheet1").Cells(rw, colState).Value = "") Or _
Worksheets("Sheet1").Cells(rw, colZipCode).Value = "" Then GoTo nextLabel:
strStreetAddress = Worksheets("Sheet1").Cells(rw, colStreetAddress).Value
strCity = Worksheets("Sheet1").Cells(rw, colCity).Value
strState = Worksheets("Sheet1").Cells(rw, colState).Value
strZipCode = Worksheets("Sheet1").Cells(rw, colZipCode).Value
'Initialize variables
strXML = ""
Label = Worksheets("Sheet1").Cells(rw, colLabel).Value
'Write XML header information
Call WriteXMLHeader
'Write address information to XML file
strXML = strXML & "<p3:AddressCriteria>"
strXML = strXML & "<p3:CanadianProvince></p3:CanadianProvince>"
strXML = strXML & "<p4:LocationCityName>" & strCity & "</p4:LocationCityName>"
strXML = strXML & "<p4:LocationCountyName></p4:LocationCountyName>"
strXML = strXML & "<p4:LocationPostalCode></p4:LocationPostalCode>"
strXML = strXML & "<p4:LocationStateUSPostalServiceCode>" & strState & "</p4:LocationStateUSPostalServiceCode>"
strXML = strXML & "<p4:StreetFullText>" & strStreetAddress & "</p4:StreetFullText>"
strXML = strXML & "</p3:AddressCriteria>"
'Write XML footer information
Call WriteXMLFooter
'URI
strURI = "https://a325.wgs.thomson.com/api/v1/person/searchResults"
strUserID = "xxxxxxx"
strUserPassword = "yyyyyyyy"
Set httpRequest = CreateObject("WinHttp.WinHttpRequest.5.1")
httpRequest.SetTimeouts 80000, 80000, 90000, 90000
With httpRequest
.Open "POST", strURI, False
.SetRequestHeader "Content-type", "application/xml"
.SetRequestHeader "Content-Length", Len(strXML)
.SetRequestHeader "Authorization", "Basic " & EncodeBase64(strUserID & ":" & strUserPassword)
''.SetClientCertificate ("LOCAL_MACHINE\Personal\Certificates\WGS CA\kchin tmp dev cert")
.SetClientCertificate ("LOCAL_MACHINE\Personal\kchin tmp dev cert")
.Send (strXML)
End With
If httpRequest.Status = 200 Then
MsgBox httpRequest.GetAllResponseHeaders
Else
MsgBox httpRequest.Status & ": " & httpRequest.StatusText
End If
MsgBox httpRequest.ResponseText
nextLabel:
Next rw
MsgBox "PROCESSING HAS COMPLETED", vbOKOnly, "E-Interdiction Clear Update"
End Sub
Public Sub WriteXMLHeader()
strXML = "<?xml version=" & Chr(34) & "1.0" & Chr(34) & "?>"
strXML = strXML & "<psr1:PersonSearchRequest " & "xmlns:psr1=" & Chr(34) & "http://wgs.thomsonreuters.com/clear/api/search/1.0 " & Chr(34) & " xmlns:xsi=" & Chr(34) & "http://www.w3.org/2001/XMLSchema-instance" & Chr(34) & ">"
strXML = strXML & "<PermissiblePurpose>"
strXML = strXML & "<GLB>L</GLB>"
strXML = strXML & "<DPPA>1</DPPA>"
strXML = strXML & "<VOTER>2</VOTER>"
strXML = strXML & "</PermissiblePurpose>"
strXML = strXML & "<Reference>S2S Test</Reference>"
strXML = strXML & "<Criteria>"
strXML = strXML & "<p1:PersonCriteria"
strXML = strXML & "xmlns:p1=" & Chr(34) & "http://wgs.thomsonreuters.com/clear/api/search/person-search/niem/1.0" & Chr(34) & ""
strXML = strXML & "xmlns:p2=" & Chr(34) & "http://niem.gov/niem/structures/2.0" & Chr(34) & ""
strXML = strXML & "xmlns:p3=" & Chr(34) & "http://wgs.thomsonreuters.com/clear/api/search/person-search-extension/niem/1.0" & Chr(34) & ""
strXML = strXML & "xmlns:p4=" & Chr(34) & "http://niem.gov/niem/niem-core/2.0" & Chr(34) & ">"
End Sub
Public Sub WriteXMLFooter()
strXML = strXML & "</p1:PersonCriteria>"
strXML = strXML & "</Criteria>"
strXML = strXML & "<Datasources>"
strXML = strXML & "<PublicRecordCriminalAndInfractions>false</PublicRecordCriminalAndInfractions>"
strXML = strXML & "<PublicRecordPeople>true</PublicRecordPeople>"
strXML = strXML & "<NPIRecord>false</NPIRecord>"
strXML = strXML & "<WorkAffiliations>false</WorkAffiliations>"
strXML = strXML & "<RealTimeIncarcerationAndArrests>false</RealTimeIncarcerationAndArrests>"
strXML = strXML & "</Datasources>"
strXML = strXML & "</psr1:PersonSearchRequest>"
End Sub
Public Function EncodeBase64(text As String) As String
Dim arrData() As Byte
arrData = StrConv(text, vbFromUnicode)
Dim objXML As MSXML2.DOMDocument
Dim objNode As MSXML2.IXMLDOMElement
Set objXML = New MSXML2.DOMDocument
Set objNode = objXML.createElement("b64")
objNode.DataType = "bin.base64"
objNode.nodeTypedValue = arrData
EncodeBase64 = objNode.text
Debug.Print EncodeBase64
Set objNode = Nothing
Set objXML = Nothing
End Function

Kristin --- the C# forum may not be the place for web service questions, but the ASP.NET forums is not a correct suggestion for Karthik's question either. ASP.NET really has absolutely nothing to do with a web service. The WCF forum may have been
a better suggestion (although you don't necessarily have to have a WCF service for RESTful web services) ... So, could you move this thread here:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=wcf
Karthik --- sorry I couldn't help you more, but I've seriously run out of ideas. If Kristen can't move your thread out of this Off-Topic forum, then perhaps you could re-post it to the WCF forums from the link I provided above. Perhaps I should have
moved the thread to begin with (I can do that from the C# forum, but I cannot do it from this Off-Topic forum, sorry)
~~Bonnie DeWitt [C# MVP]
http://geek-goddess-bonnie.blogspot.com

Similar Messages

  • Unexpected error during HTTP request to voucher server The operation timed out

    I read books from my library through a system called READS. I have successfully used DE 1.0 without any problems, however, when I tried to use it recently it required me to upgrade to 1.5. Well I did so and now the books won't authorize. Here is the error message I am getting:
    Adobe DRM Error System: 5 State: 4 Class: 600 Code: 106 Message: Error on request or response from server. Please check your network connection and try again. Scroll below or view error.log for more details.
    Adobe DRM client Error: 706 Unexpected error during HTTP request to voucher server The operation timed out
    Requested URL: http://207.54.136.76/fulfill/ebx.etd?action=lend&orderid=939605378082105&bookid=ContentRe serveID:B91CC494-23AF-4C6A-9B0C-7DA050C05722-50
    Requested URL: http://207.54.136.76/fulfill/ebx.etd ?action=lend &orderid=939605378082105 &bookid=ContentReserveID:B91CC494-23AF-4C6A-9B0C-7DA050C05722-50
    --- end ---
    I have tried this multiple times with more than one book. Again, they worked just fine before I did the upgrade. I am running Vista SP1.

    Never mind, they obviously post the message on the ticket, but it doesn't send an e-mail. I will try what they indicated. Here is their response...
    Thank you for contacting Adobe Technical Support.
    I understand that you are getting "Adobe DRM Error" in Digital Editions.
    We have documented the steps to resolve this error message. Please do
    refer to this TechNote:
    Error: "Adobe DRM Error" when you activate Digital Editions or access an
    eBook
    http://www.adobe.com/go/kb402747

  • TNS-12560: TNS:protocol adapter error, ORA-12535: TNS:operation timed out

    I installed Oracle 9i (9.2.0.1.0) on a Windows XP machine (the machine is in a domain). There were no errors during the instalation, but I have problems connecting from the same machine using the sid. Here are some examples from a command promt:
    D:\>tnsping orcl9i
    TNS Ping Utility for 32-bit Windows: Version 9.2.0.1.0 - Production on 31-OCT-20
    08 17:43:22
    Copyright (c) 1997 Oracle Corporation.  All rights reserved.
    Used parameter files:
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)
    (HOST = timisoara01)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = orcl9i)))
    TNS-12560: TNS:protocol adapter error
    D:\>sqlplus "sys/pass@orcl9i as sysdba"
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 17:54:54 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    ERROR:
    ORA-12535: TNS:operation timed out
    Enter user-name:If I don't use the sid I can connect:
    D:\>sqlplus "sys/pass as sysdba"
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri Oct 31 18:05:46 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL>If I go to services I see that the service is running: OracleServiceORCL9I Started.
    Thx.

    Yes, the XP firewall is running. During the Oracle instalation it poped up twice, but I selected 'Unblock'. I can't turn it off because it is running using the domain settings, but I can add exceptions (programs or ports). Port 1521, tnsping or sqlplus are not blocked and there is an option 'Display a notification when Windows Firewall blocks a program' witch is checked.

  • Checking for updates an error has occurred the request timed out

    Whenever I try to check for an update to my software on my computer I get this message: "an error has occurred, the request timed out."
    I have not been able to have a software update in many months. Any suggestions on how to fix this?
    Thanks,
    David

    Quit all applications
    Hold option key down and click the "Go" menu in the menu bar.
    Select "Library" from the dropdown.
    Library > Preferences
    Look for the file  com.apple.appstore.plist  and move it to Trash.
    Restart the computer.
    Source:https://discussions.apple.com/message/20445064#20445064

  • I have been trying to update via App Store and every time only with apple software it starts to download and it will says it's calculating time remaining then an error message pops up saying " An error has occurred the request timed out. (102) "

    I have been trying to update via App Store and every time only with apple software it starts to download and it will says it's calculating time remaining then an error message pops up saying " An error has occurred the request timed out. (102)" I have tried everything , I've been told its my ISP but I have tried using differenet internet to attempt the updates. Like I said all other software updates fine its just apple software

    http://www.apple.com/support/mac/app-store/contact.html?form=account

  • The operation timed out while writing (kCFStreamStatusOpening)

    iMessage cant send files. This is what it says in the file transfer window. "the operation timed out while writing (kCFStreamStatusOpening)" Help

    Hi,
    In the past in the Mountain Lion (Messages 7.x.x) I have sent quite large photos via the iMessages account of several GBs of data.
    I have yet to do the same in Messages 8 (Mavericks) but don't expect for this to have changed.
    I do know that the Messages 8 app tends to zip some files before sending when dragged from other apps such as a Browser or iPhoto.
    I have sent a Keynote file to my iPhone in Messages 7.x.x  but this was only 334 kb
    What sort of files are you trying to send ?
    If not zipped already it may pay to try this first.
    7:21 pm      Sunday; November 3, 2013
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • DB Connect error: ORA-12535: TNS:operation timed out

    Hi,
    I am trying to connect to a external oracle database from SAP.
    I entered the TNS entry of the external DB in the TNSNAMES.ORA and configured it in the table DBCON.
    But i am not able to connect to the external database. It is throwing the error
    "sql error     12.535 ; occured:ORA-12535: TNS:operation timed out"
    But i was able to connect the database from my system through TNSPING and also from TOAD.
    Do i need to configure any parameter in LISTENER.ORA in SAP or in the external database?

    Hi,
    Thanks for the reply.
    The note which you specified was with BI objects. But i am trying to connect from SAP R/3 to a remote Oracle database.
    I got connected to the  remote Oracle database for an hour and it got disconnected by saying "TNS operation timed out".
    The CONNECT_TIMEOUT parameter in LISTERER.ORA of the remote Oracle database  is missing.
    Will this may be the cause for the "TNS operation timed out".

  • Unable to update on macbook pro.  Error message: An error occurred.  The request timed out. (102)

    I am unable to update on MacBook Pro.  Error message" An error has occured.  The request timed out. (102)

    Try a different DNS server ..
    Quit the App Store.
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click Ok.
    Relaunch the App Store and try updating your software.

  • HT5052 I have been trying to upate my ipod to 5.0.1, but every time i get an error message of the server timed out after downloading for over an hour. My broadband speed here is is 1.5mbs, not good any help?

    I have been trying to update my ipod to the 5.0.1 but after waiting for a hour for the download i get an error message that the server has timed out as my broadband speed is not good, could this be the problem and if so how can i get the update?

    I have the same problem I disable msconfig mode all the programs escept windows and apple products but the same error appears at the last second of downloading the update

  • Still can't download iTunes purchases, please help! incorrectly says "network connection timed out"

    I've been trying for 4 days to download purchased media from iTunes and I keep getting this error message "The network connection timed out." I assure you my internet connection works perfectly.
    Not sure if this is relevant, but this error spontaneously happened after my most recent purchase on the night of 2/10. I was able to download some iTunes extras right before I made the most recent HD movie purchase, and as soon as I tried to download that, nada!
    Here's what I've already tried, but has NOT worked:
    -re-opening iTunes
    -restarting computer (several times)
    -deleting tmp files
    -disabling antivirus ware & firewalls
    -deleting & re-installing iTunes
    If anyone has any other ideas to help me out, I'm all ears!
    Thanks!
    E

    hi, thanks for your response!
    please excuse my ignorance, but do you mean log into my iTunes at an apple store & download my purchases onto a flash? I wasn't aware I could do that...

  • Error 7 (net::ERR_TIMED_OUT): The operation timed out

    Hi,
    I changed from HP to Mac and I am having problems opening specific websites:
    https://elearning.uol.ohecampus.com/webapps/bbgs-SSO-bb_bb60/execute/login?aid=G WGdfsQZLwUD3COgrDFFbGN0TCFY9HyHlLr3ruugp%2fDzrjxUUUqph8JuKgPvdazbmO0lvlptietNgME YslS%2b5MBmUlDPfcqyVvvcgYTkKmAwL1J6etAHBg%3d%3d
    https://meine.deutsche-bank.de/
    I downloaded all the latest software, but the error remains. All other pages work and my other computer opens the pages without any problems.
    Any clue what (browser)system settings prevent from opening?
    Thank you

    Hi,
    I didn't have any problems loading those sites, v10.6.7 and Safari 5.0.4.
    Go to Safari / Preferences - Advanced. Click the Change Settings button next to: Proxies
    That will prompt the System Preferences / Network - Proxies pane.
    If any of the boxes are selected on the left, deselect, then click OK. Restart Safari. See if that makes a difference.
    If Proxies aren't the issue, check Safari / Preferences - Extensions. If you have any installed, turn that off, then try Safari.
    Carolyn

  • When I try to dowwnload Firefox on my ASUS netbook, I get message "The operation timed out." and it doesn't load

    ASUS model Eee PC 1015 PEB
    Kaspersky
    Windows 7

    Hello,
    What have you tried so far?
    Can you try reinstalling Firefox? Uninstall it from your Control Panel > Programs and Features/Add or Remove Programs (if you want to keep your bookmarks and other information, do '''not''' delete personal information). After uninstalling, delete the Mozilla Firefox folder to remove any damaged files leftover from the uninstall (your profile is in a different location so will be unaffected by this):
    * (32 bit installation) C:\Program Files\Mozilla Firefox
    * (64 bit installation) C:\Program Files (x86)\Mozilla Firefox
    Download and reinstall the latest copy:
    * https://www.mozilla.org/en-US/firefox/all/
    For more information, see
    * http://kb.mozillazine.org/Standard_diagnostic_-_Firefox#Clean_reinstall

  • IPhone/iPad connection error after first login ok: The request timed out. (-1001)

    Hi
    I have installed SAP 9.0 PL 12, DI API all version, Integration Component of the SAP 9.0 PL12.
    On my iPhone I have the 1.10.1 version of the app SAP.
    I followed the directions provided in the note (also in 1602674) and in the forum, but nothing.
    I start my PC (server with integration installed), do all the tests possible dall'integration admin and I always correct results.
    Start app from my iphone, it connects to my DB but.... after a few minutes I get the error
    "Connection Failed - The request timed out. (-1001)"
    and then throws me out of the db.
    If I try to reconnect, re-entering the password I have always the same error.
    To reconnect, I have to restart the PC and the situation repeats itself (is the first logon, then I get the error and I can not reconnect).
    Can anyone help me?
    THANKS
    NL

    H Thusar
    Update: I only changed the startup type of the service DI Proxy, Event, Integration, and instead of putting 'Automatic' I selected 'Automatic (Delayed Start)'.
    I rebooted the server and I was able to connect the iPhone via app to my DB: I was about an hour, I created BP, made ​​changes, displayed report.
    I then did the logoff.
    I tried to reconnect but nothing is returned the error 'Connection Failed - The request timed out. (-1001)'.
    Even after restarting the server again, the app connects after about two minutes I get the error 'Connection Failed - The request timed out. (-1001)' and is no longer relates only after you restart the server.
    Help
    NL

  • TNS:operation timed out

    Hi all,
    In my local network there is no problem for connecting thru client
    but when the other network thru public ip they are getting this err..
    H:\>sqlplus system@dpm01
    SQL*Plus: Release 9.2.0.4.0 - Production on Mon Dec 16 10:44:22 2004
    Copyright © 1982, 2002, Oracle Corporation. All rights reserved.
    Enter password:
    ERROR:
    ORA-12535: TNS:operation timed out
    They are able to PING and TNSPING.
    I added this parameter in regestiry as per some docs.
    "USE_SHARED_SOCKET"="TRUE" to the Windows NT registry on the
    server as follows, and restart the database and listener services on the server:
    REGEDIT4
    [HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0]
    "USE_SHARED_SOCKET"="TRUE"
    I'm still getting this issue.
    The client is using Network Address Translation (NAT) they are on diffrent netwrok on seperate firewall .
    Shall i do any thing on the firewall level.
    please help me.
    Thomas VA

    I set the connect_timeout = 20 in my listener.ora file.Any specific reasons? If not, then set it to 0, which is unlimited time out.
    This behaviour is genrally seen when firewall involved between the client and the database server. Check tnsping from the client machine (who is complaning) to database server.
    Also, check whether he is running any spy or anti virus softwares on his PC. If so, disable them.
    Jaffar

  • The Opration timed out occurred on calling REST Service in Addin in windows 7 ultimate 64 bit

    Hi,
    I have created VSTO solution for Outlook Addin in Visual studio 2010.
    In that on button it will call Java REST webservice and validating the username and password.
    Evrything working fine in few systems.But it showing "The operation timed out" in WIndows 7 64 bit office 2013.
    In other windows 7 machine with office 2010 and 2007 its working perfectly.
    Below is the code :
    var responseMessage = (String)null;
                var request = WebRequest.Create(string.Concat(serviceUrl, resourceUrl)) as HttpWebRequest;
                if (request != null)
                    request.ContentType = "application/xml";
                    request.MediaType = "text/xml";
                    request.Method = method;
    request.keepalive=false;
                   request.ContentLength = xmlRequestBody.Length;                
                ServicePointManager.Expect100Continue = false;            
                //var objContent = HttpContentExtensions.CreateDataContract(requestBody);
                if (method == "POST" && xmlRequestBody != null)
                    byte[] requestBodyBytes = ASCIIEncoding.UTF8.GetBytes(xmlRequestBody.ToString());
                    request.ContentLength = requestBodyBytes.Length;
                    using (Stream postStream = request.GetRequestStream())
                        postStream.Write(requestBodyBytes, 0, requestBodyBytes.Length);
                if (request != null)
                    request.Credentials = new NetworkCredential("Username", "password");
                    //request.ProtocolVersion = HttpVersion.Version11;
                    var response = request.GetResponse() as HttpWebResponse;
                    if (response.StatusCode == HttpStatusCode.OK)
                        Stream responseStream = response.GetResponseStream();
                        if (responseStream != null)
                            var reader = new StreamReader(responseStream);
                            responseMessage = reader.ReadToEnd();
                    else
                        responseMessage = response.StatusDescription;
                return responseMessage;
    Could you please help what could be the reason.Any firewall issue or any serviced related issue.Kidly suggest.

    Hi,
    I have created the windows application using REST Service and tested the application on
    windows 7 64 bit Ultimate edition but I'm getting the same error "The
    operation timed out" attached the screen shot for your reference.
    http://www.screencast.com/t/YeIJxl383a
    I developed the application on Windows 7 Ultimate 64 bit version it is working on my machine. while the executing exe on another windows 7 64 bit Ultimate
    edition which is on the virutal machine Im getting the error.
    There is no visual studio installed on the Virtual machine , i have installed the Dot Net frame work 4.0 client profile on the virtual machine.
    Could you please suggest is there any issues related to opearating system or related to framework.
    Kindly help with some suggestions.

Maybe you are looking for

  • Operation Could Not Be Completed:  Too Many Open...

    I've had this error showing up a lot in the Safari 3.2 and 4.0 beta activity window when loading multiple tabs of pages with many images (usually gallery type pages or blogs with lots of thumbnails). The result is that some images or other elements l

  • FORMS: Reader Enabled forms are not saving for all users

    I have created several fillable forms with both Acrobat Pro 8 & 9. All have been created with Extend Reader Rights In my testing i have success saving the forms in Reader (various versions as old as 7). After sending the forms out via email the savin

  • Case function

    hi can i write case function below like this select case (when information_type='SQ_IQAMA' then pei_information) end from per_people_extra_info information_type has two types like information_type pei_information1 sq_iqama 2073636454 sa_passport A 55

  • I got a question

    alright i bought my imac around 4 months ago and im wanting to take it back because i realize i could of gotten a macbook pro 15 inch i5 and a 27 inch led display and have the both luxury of having a desktop and a portable laptop is there any way i c

  • Downloading with Windows7

    I'm presently trying to install CS2 on a new Windows7 setup I had to buy....this after I learned that my original CS2 discs will not work and that CS2 is unsupported. So I've uninstalled my orignial disc files which I'd loaded before I knew this,  go