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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

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

(0) ShareShare
ReportReport
Posted on by 14

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

I have the same question (0)
  • Martin Dráb Profile Picture
    236,505 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.

  • Suggested answer
    mimi194346 Profile Picture
    14 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.

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
Community Member Profile Picture

Community Member 2

#2
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans