NAV2009 R2 -Sending BigText data by web service is very long
Sebi64
Member Posts: 13
Hi guys !
I developed a web service on Dynamics NAV 2009 R2 and the response time of the service is unusually long.
In the codeunit of the webservice I only save the XML stream in the SQL Server database :
Here is the response times that I noted :
XMLsize webservice response
982kb 3'41''
1396kb 7'51''
To eliminate potential problems of network bandwidth, I did the same test locally on the server hosting the web service.
Processing times are the same!
If I look at the traces in SQL Server Profiler:
- I see the queries to connect to Dynamics
- Then I have a period where nothing happens for more than 3 minutes (with the 982 kb file).
- Then I see the queries to store the data in the table that is almost instantaneous.
The same process without the web service, like reading the xml stream from a file and saving it to the database is ok and fast.
I'm really stuck with this issue so any advice is welcome to improve the processing time.
Or at least do you have any clue to find where is the bottleneck ?
Could it be a network authentication problem ?
Thanks for your help !
Our configuration runs with 4 virtualized servers :
- The NAV server,
- The SQL server,
- The RTC server,
- The web service server.
I developed a web service on Dynamics NAV 2009 R2 and the response time of the service is unusually long.
In the codeunit of the webservice I only save the XML stream in the SQL Server database :
PROCEDURE ImportXml@1000000001(inputXml@1000000000 : BigText) : Text[30];
VAR
criAttXml@1000000005 : Record 50021;
BEGIN
SaveInputXml(inputXml, criAttXml);
EXIT('Import Ok.');
END;
LOCAL PROCEDURE SaveInputXml@1000000003(inputXml@1000000000 : BigText;VAR CriAttXml@1000000003 : Record 50021);
VAR
xmlOutStream@1000000002 : OutStream;
BEGIN
CriAttXml.INIT;
CriAttXml.Xml.CREATEOUTSTREAM(xmlOutStream);
CriAttXml."Taille Xml" := inputXml.LENGTH;
inputXml.WRITE(xmlOutStream);
CriAttXml.INSERT(FALSE);
END;
Here is the response times that I noted :
XMLsize webservice response
982kb 3'41''
1396kb 7'51''
To eliminate potential problems of network bandwidth, I did the same test locally on the server hosting the web service.
Processing times are the same!
If I look at the traces in SQL Server Profiler:
- I see the queries to connect to Dynamics
- Then I have a period where nothing happens for more than 3 minutes (with the 982 kb file).
- Then I see the queries to store the data in the table that is almost instantaneous.
The same process without the web service, like reading the xml stream from a file and saving it to the database is ok and fast.
I'm really stuck with this issue so any advice is welcome to improve the processing time.
Or at least do you have any clue to find where is the bottleneck ?
Could it be a network authentication problem ?
Thanks for your help !
Our configuration runs with 4 virtualized servers :
- The NAV server,
- The SQL server,
- The RTC server,
- The web service server.
0
Answers
-
You need to eliminate it more. Send me a pm if you need help testing.0
-
I never found where was the problem but I sent compressed datas as a workaround and it works fine.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 323 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