Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

How to use the business connector (with a web user session)

Posted on by 10

Hello,

I use a IIS server to communicate with AX with the Business Connector. I saw that we need to use the LogonAs method to use a web user session in AX.

But when I use the LogonAs method, I see a worker session and a Business connector session in AX only. Is there anything to change in ISS ? or in my code? Or in the application pool ?

In addition the communication seems slow.

BCNC = new System.Net.NetworkCredential("Domain Username", "Password Username Domain)

ax = new Axapta(); ax.LogonAs(BCNC.UserName, BCNC.Domain, BCNC, AXComapny, "", "", "");

AXClass = ax.CreateAxaptaObject("axclass");

AXClass.Call("axclass.metod");

ax.Logoff();

Thanks a lot for your help.

*This post is locked for comments

  • Suggested answer
    mimi194346 Profile Picture
    mimi194346 10 on at
    RE: How to use the business connector (with a web user session)

    Hello,

    Yes in fact, before we worked with barcode readers (Honeywell MX7T) in Windows CE 6.0. We used webservices to communicate between our barcode readers and AX with a web server (IIS).

    Now we use bar code readers Zebra (MC3300) in Android 7.0. We continue to work with IIS and webservices SOAP.

    But now the communication is slow. Before with the Honeywell terminals we did not have this problem.

    The only difference I noticed is that in AX, the business connector session remains active. While with new developments in android, AX's business connector session goes into idle as soon as the request is complete.

    In addition, we had a web worker session and a business connector session. Now we have a worker session and a business connector session. Can this explain the performance issues?

    Or maybe an authentication problem between IIS and AX? but I do not know how to control that.

    Thanks a lot.

  • Martin Dráb Profile Picture
    Martin Dráb 230,235 Most Valuable Professional on at
    RE: How to use the business connector (with a web user session)

    Are you saying that everything works and the only problem is that you expected a web user session instead of Business Connector session?

    Regarding performance, it's indeed not very fast, especially creating a new connection takes time.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans