Slow Download Speeds - Nav2013 Web Services

Nullsig
Member Posts: 1
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
- 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