Tuesday, October 28, 2008

Using Web Service With Business Connector Illustration

6 comments:

Anonymous said...

Nice graph!

curry said...

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

wojzeh said...

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.

curry said...

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.

curry said...

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

wojzeh said...

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.