web
You’re offline. This is a read only version of the page.
close
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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans