Web service Company name list

G8torG8tor Member Posts: 29
edited 2013-01-07 in NAV Three Tier
Hello

I have Nav web service running and I need to get list of all companies that can be connected to that web service.
How can I do that?

Comments

  • yukonyukon Member Posts: 361
    Hi G8tor,

    If your are using the c#, you can get company list by below code.
    SystemService _ws = new SystemService();
    _ws.Url = "http://" + 'your-navserver' + ":" + 'your-navwebport' + "/" + 'your-navservice' + "/WS/SystemService";
    _ws.UseDefaultCredentials = true;
    string[] _Company = _ws.Companies();
    


    Best Regards,
    Yukon
    Make Simple & Easy
  • G8torG8tor Member Posts: 29
    Thanks yukon.

    This is exactly what I need.
Sign In or Register to comment.