Slow Download Speeds - Nav2013 Web Services
We are working on an implementation of Navision's Web Services using PHP. The code works for all intents an purposes but the execution times are unwieldy.
To do a single record read the process takes about 4 seconds. Almost all of that time is in the download of the response. Normally I would assume this has to do with ISP limits, but this is two servers on the same network with a gigabit switch and the response is only 5.5kb
Here is what I see when I pull the cURL info from the call:
array(26) {
["url"]=> string(70) "<Web Service URL>"
["content_type"]=> string(23) "text/xml; charset=utf-8"
["http_code"]=> int(200)
["header_size"]=> int(685)
["request_size"]=> int(1109)
["filetime"]=> int(-1)
["ssl_verify_result"]=> int(0)
["redirect_count"]=> int(1)
["total_time"]=> float(3.342556)
["namelookup_time"]=> float(1.0E-5)
["connect_time"]=> float(1.0E-5)
["pretransfer_time"]=> float(6.9E-5)
["size_upload"]=> float(269)
["size_download"]=> float(5448)
["speed_download"]=> float(1629)
["speed_upload"]=> float(80)
["download_content_length"]=> float(5448)
["upload_content_length"]=> float(269)
["starttransfer_time"]=> float(3.341836)
["redirect_time"]=> float(0.000706)
["certinfo"]=> array(0) { } ["primary_ip"]=> string(11) "<ip>" ["primary_port"]=> int(8047) ["local_ip"]=> string(12) "<other ip>" ["local_port"]=> int(60487) ["redirect_url"]=> string(0) "" }
To do a single record read the process takes about 4 seconds. Almost all of that time is in the download of the response. Normally I would assume this has to do with ISP limits, but this is two servers on the same network with a gigabit switch and the response is only 5.5kb
Here is what I see when I pull the cURL info from the call:
array(26) {
["url"]=> string(70) "<Web Service URL>"
["content_type"]=> string(23) "text/xml; charset=utf-8"
["http_code"]=> int(200)
["header_size"]=> int(685)
["request_size"]=> int(1109)
["filetime"]=> int(-1)
["ssl_verify_result"]=> int(0)
["redirect_count"]=> int(1)
["total_time"]=> float(3.342556)
["namelookup_time"]=> float(1.0E-5)
["connect_time"]=> float(1.0E-5)
["pretransfer_time"]=> float(6.9E-5)
["size_upload"]=> float(269)
["size_download"]=> float(5448)
["speed_download"]=> float(1629)
["speed_upload"]=> float(80)
["download_content_length"]=> float(5448)
["upload_content_length"]=> float(269)
["starttransfer_time"]=> float(3.341836)
["redirect_time"]=> float(0.000706)
["certinfo"]=> array(0) { } ["primary_ip"]=> string(11) "<ip>" ["primary_port"]=> int(8047) ["local_ip"]=> string(12) "<other ip>" ["local_port"]=> int(60487) ["redirect_url"]=> string(0) "" }
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions