Tuesday, October 28, 2008

Using Web Service With Business Connector Illustration

6 comments:

  1. Hi Wojzeh,
    with one business connector dll, running in an wcf service, it's apparently impossible to control multiple AOS succession. For example to control the logged in user sessions and lead blocks. Can you confirm this? Do you know if there are workarounds.
    Best Regards,
    Frank

    ReplyDelete
  2. Hi Curry!

    Frankly speaking, I have never worked with a few AOS instances. What do you mean 'to control multiple AOS'? I believe that all information, say user sessions, is available in tables.

    ReplyDelete
  3. Hi Wojzeh,
    if I try this:
    -------------------
    objectServer = _blocker.dbname + "@" + _blocker.hostname.Trim() + Configuration.port;

    try
    {
    ax.Refresh();
    System.Net.NetworkCredential creds = new System.Net.NetworkCredential(Configuration.username, Configuration.pwd, Configuration.host);

    ax.LogonAs(Configuration.username, Configuration.host, creds, Configuration.company, Configuration.language, objectServer, "");

    ...
    ---------------------
    First time (first connect to an aos) all works. Second time with a logon to another aos, the wcf service throw an error. At my local machine, I cannot reproduce this error, because there is running only one aos. But if you like to get more informations, i will try to find out more informations from our customer.

    ReplyDelete
  4. Here are the promised links:
    https://community.dynamics.com/product/ax/f/33/p/47750/86045.aspx
    http://msdn.microsoft.com/en-us/library/microsoft.dynamics.businessconnectornet.logonsystemchangedexception.aspx

    ReplyDelete
  5. Hi Curry!

    Thank you for the issue and the link! However, now I am dealing with different things (BI), therefore, I doubt that I could help you with that.

    ReplyDelete