Skip to main content

Notifications

Announcements

No record found.

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

  • MedInfoTech Profile Picture
    1,392 on at
    RE: SOAP service is too slow

    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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans