Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

ThreadRunner

$
0
0
ThreadRunner
Web Connection 5.0
ThreadRunner
Jan. 15, 2013
08:07 am
3OY0HF4WOShow this entire thread in new window
Gratar Image based on email address
From:Eddie Caldwell
To:All
I am trying to convert an existing program to use threadrunner.
When I run the following code as a thread, it hangs with oXMLHTTPae.readystate of 1 (connection established).

Any ideas why this would happen?
Is there a different object I could use to post the XML?

I would appreciate any help,

Thanks,

Eddie

xTextString=pcXML
local url,ResultBytes
URL = "https://webservices.averittexpress.com/LTLRateQuoteService"
oXMLHTTPae=createobject("MSXML2.ServerXMLHTTP")
oXMLHTTPae.Open("POST",URL,.t.)
oXMLHTTPae.setRequestHeader("Referer","American Carpet")
oXMLHTTPae.setRequestHeader("Host", "webservices.averittexpress.com" )
oXMLHTTPae.setRequestHeader("Content-Length",allt(str(len(xTextString),9,0)))
oXMLHTTPae.send(xTextString)
xloopcnt=0
do while oXMLHTTPae.readystate<>4 and xloopcnt<200
sleep(100)
xloopcnt=xloopcnt+1
enddo


Viewing all articles
Browse latest Browse all 10393