Problem with msxml3.dll while sending xml

zeon
Member Posts: 130
Hi,
I have a problem with msxml3.dll while sending an URL. On my development server it works flawless, but on the customers test server I often get the error.
The code executed is the following:
When it executes the line
I have tried to re-register msxml3.dll on the server, but with no success
It's on Navision Attain 3.70B.
Any ideas?
/zeon
I have a problem with msxml3.dll while sending an URL. On my development server it works flawless, but on the customers test server I often get the error.
The code executed is the following:
Name DataType Subtype Length HTTPreq Automation 'Microsoft XML, v3.0'.XMLHTTP xmlTextNode Automation 'Microsoft XML, v3.0'.IXMLDOMText xmlDoc Automation 'Microsoft XML, v3.0'.DOMDocument CLEAR(HTTPreq); CREATE(HTTPreq,TRUE); CREATE(xmlDoc); xmlTextNode := xmlDoc.createTextNode(''); xmlTextNode.appendData(URL[1]); xmlTextNode.appendData(URL[2]); xmlTextNode.appendData(URL[3]); xmlTextNode.appendData(URL[4]); xmlTextNode.appendData(URL[5]); HTTPreq.open('POST',xmlTextNode.nodeValue, FALSE); HTTPreq.setRequestHeader('Content-type','text/xml'); HTTPreq.send(xmlTextNode.nodeValue); IF NOT (HTTPreq.status = 200) THEN MESSAGE(FORMAT(COPYSTR(HTTPreq.statusText,1,250)));
When it executes the line
HTTPreq.send(xmlTextNode.nodeValue);it gives the following error. The weird thing is that this code is called around 100 times for each URL that I have to send, but it only happens sometimes ](*,)
I have tried to re-register msxml3.dll on the server, but with no success

It's on Navision Attain 3.70B.
Any ideas?
/zeon
0
Comments
-
There are many cases when this error occurs. I think you should check antivirus, firewall and proxy errors and settings first.Looking for part-time work.
Nav, T-SQL.0 -
Oh, I might have found the problem and a solution. I discovered that when I debugged the code it worked properly. I then inserted a sleep after the send call, and then it worked. So, it seems like the code is executed faster than the send call is able to send the request? :?
Is there a way to check if the send call has been executed correct and not continue until finished?
Maybe using "waitForResponse"?
Something likeWHILE NOT Ready DO Ready := HTTPreq.waitForResponse(0.1);
I also changed variable:HTTPreq Automation 'Microsoft XML, v3.0'.XMLHTTP
toHTTPreq Automation 'Microsoft XML, v3.0'.ServerXMLHTTP
I'm new in using xmlhttp, so help is appreciated. Thx!0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions