web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

SOAP service is too slow

(0) ShareShare
ReportReport
Posted on by 20

Hello,

Would you please help me with the following issue:

I am creating a .net application using C# to be used on a Windows CE device .net 3.5, this app should take the barcode of an item and get it's relevant details. 

Here's my code:

static ItemIdentifier_Service ItemIdentifierSRV;
private void GetDataFromSOAP(string BC)
{

NetworkCredential CurrentCredential = new NetworkCredential(MyUserName, MyPassword,MyDomain);
PageURL = "http://" + ServerName + ":" + PortNumber + "/" + InstanceName + "/WS/" + Uri.EscapeDataString(CompanyName) + "/Page/";
ItemIdentifierSRV = new ItemIdentifier_Service { Credentials = CurrentCredential };
ItemIdentifierSRV.Url = PageURL + "ItemIdentifier";
List<ItemIdentifier_Filter> ItemIdentifierFilterArray = new List<ItemIdentifier_Filter>();
ItemIdentifier_Filter ItemIdentifierFilter = new ItemIdentifier_Filter { };
ItemIdentifierFilter.Field = ItemIdentifier_Fields.Code;
ItemIdentifierFilter.Criteria = "=" + BC;
ItemIdentifierFilterArray.Add(ItemIdentifierFilter);
List<ItemIdentifier> ItemIdentifierList = new List<ItemIdentifier>();
ItemIdentifier IId = ItemIdentifierSRV.Read(bc);
MessageBox.Show(IId.Item_No);


}

The code is getting me the right answer, however it takes more than 15 sec to get it. Server specs are quite decent, everything is fine in terms of performance, the item identifier table is almost empty. The device is connected through local network. It's just the ItemIdentifierSRV.Read that is taking too much time.

I am using NAV 2013R2, I also tried it on 2016 database.

Any suggestion would be appreciated. 

Best regards

------------------------------
Youssef Nasser
Scope for IT services
Beirut
------------------------------

*This post is locked for comments

I have the same question (0)
  • MedInfoTech Profile Picture
    1,392 on at

    I think is better to work with Asynchronous Programming :

    maybe the link below can help :

    www.c-sharpcorner.com/.../web-service-optimization

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans