<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5105267482422907994</id><updated>2026-10-21T00:15:07.051-07:00</updated><category term="AIF"/><category term="architecture"/><category term="troubleshooting"/><category term="Ax2009"/><category term="BC.Net"/><category term="divers"/><category term="Ax4"/><category term="Axapta 3"/><category term="Batch"/><category term="COM.BC"/><category term="WebServices"/><title type='text'>Florian&#39;s Dynamics Ax Blog</title><subtitle type='html'>Aif, WebServices, BC.Net, troubleshooting and architecture&#xa;(formerly http://blogs.msdn.com/floditt)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>32</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-1551077908515710235</id><published>2011-08-07T12:41:00.000-07:00</published><updated>2011-08-18T14:03:26.880-07:00</updated><title type='text'>Simplify tracking changes with sysDatabaseLog on field-level</title><content type='html'>SysDatabaseLog is a great help to log any kind of data-changes and it is &lt;a href=&quot;http://seangalliher.com/?p=70&quot;&gt;very easy to use&lt;/a&gt;. The setup of logs allows you to configure tracking the changes until the field-level. But unfortunately it is painful to look for the changes for these field-level based database-logs if the same table is already configured to track all modification because the information about the changed field is saved in a container.&amp;nbsp;Here now a suggestion to simplify the tracking and reduce the need of ressources during the data-investigation by flagging database-logs that are done on fields that are tracked:&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;i&gt;1 Add a new column&amp;nbsp;hasTrackedFieldChanged (EDT:&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa882754(v=AX.50).aspx&quot;&gt;NoYesId&lt;/a&gt;) in the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa660034.aspx&quot;&gt;SysDatabaseLog&lt;/a&gt;-table&lt;/i&gt;&lt;/u&gt;&lt;br /&gt;
&lt;i&gt;&lt;u&gt;2 Create a new method&amp;nbsp;hasTrackedFieldChanged in the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa885903(v=AX.50).aspx&quot;&gt;Application&lt;/a&gt;-class&lt;/u&gt;&lt;/i&gt;&lt;br /&gt;
&lt;pre class=&quot;CSharp&quot; name=&quot;code&quot;&gt;boolean hasTrackedFieldChanged(TableId _tableId, container changedFields, DatabaseLogType _logType)
{
    boolean hasField = false;
    DatabaseLog dbLog;//contains the information about tracked tables/ fields
    int counter;
    FieldId fieldId, extFieldId;
    ;

    if (conlen(changedFields) &gt; 0) //are there items in the container?
    {
        for(counter = 0; counter &lt;= conlen(changedFields); counter++)  // loops all elements in the container
        {
            extFieldId = conpeek(changedFields, counter); //gets the extended fieldId

            if (extFieldId != 0) //extFieldId is 0 if it concerns the entire table
            {
                fieldId = fieldExt2Id(extFieldId); //gets the fieldId based on the extFieldId

                SELECT FIRSTONLY
                    recID
                FROM
                    dbLog
                WHERE
                    dbLog.logfield == fieldId       //is the changed field in the list of tracked fields...
                    &amp;&amp; dbLog.LogTable == _tableId   //...for that table...
                    &amp;&amp; dbLog.LogType == _logType ;  //...and the current action (Update)
                if(dbLog)
                {
                    hasField = true;
                    break; //no need to continue
                }
            }
        }
    }
    return hasField;
}
&lt;/pre&gt;
&lt;u&gt;&lt;i&gt;3 Change the&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa862237(v=AX.50).aspx&quot;&gt;logUpdate&lt;/a&gt;-method in the Application class&lt;/i&gt;&lt;/u&gt;
&lt;pre class=&quot;CSharp&quot; name=&quot;code&quot;&gt;sysDatabaseLog.hasTrackedFieldChanged =
            this.hasTrackedFieldChanged(recordUpdated.TableId, changedFields, DatabaseLogType::Update);
&lt;/pre&gt;It is now easy to filter all logs for tracked fields:
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_eySE8GsGxt1ugxX9_a32b-QIM5jrHQ0RN50MB4YAPUU8ZjAHV57Ei8dZ2x8KVfQb3RgKu8Pxir04BXEFPElS7qA7PwYcMippjEYEuVvvA-yesnbi4AuPnVz315q4SQiH-lNuuRmNEgA/s1600/Dblogtracking.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;145&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_eySE8GsGxt1ugxX9_a32b-QIM5jrHQ0RN50MB4YAPUU8ZjAHV57Ei8dZ2x8KVfQb3RgKu8Pxir04BXEFPElS7qA7PwYcMippjEYEuVvvA-yesnbi4AuPnVz315q4SQiH-lNuuRmNEgA/s640/Dblogtracking.JPG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/1551077908515710235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/08/simplify-tracking-changes-with.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1551077908515710235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1551077908515710235'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/08/simplify-tracking-changes-with.html' title='Simplify tracking changes with sysDatabaseLog on field-level'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_eySE8GsGxt1ugxX9_a32b-QIM5jrHQ0RN50MB4YAPUU8ZjAHV57Ei8dZ2x8KVfQb3RgKu8Pxir04BXEFPElS7qA7PwYcMippjEYEuVvvA-yesnbi4AuPnVz315q4SQiH-lNuuRmNEgA/s72-c/Dblogtracking.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-3262827493152103828</id><published>2011-08-06T04:25:00.000-07:00</published><updated>2011-08-15T12:18:31.339-07:00</updated><title type='text'>Using ADO.Net with X++</title><content type='html'>X++ is, as you know, a powerful language which allows you to do almost all reasonable things with your data. But, sometimes you need to use the full power of your SQL-Server, or access an &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ee677510.aspx&quot;&gt;external database&lt;/a&gt;. This can be done with &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ee677510.aspx&quot;&gt;ODBC&lt;/a&gt;&amp;nbsp;or &lt;a href=&quot;http://olondono.blogspot.com/2008/08/using-ado-for-interfacing-ax-with_04.html&quot;&gt;ADO&lt;/a&gt;. But ODBC is not enabling you the full capacities of your database and ADO is not the most &lt;a href=&quot;http://www.rt.db.erau.edu/655s08/655webADO/index.html&quot;&gt;performant &lt;/a&gt;way to access databases. Instead of these two&amp;nbsp;possibilities it is in most situation handier to use the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/904fck4k(v=vs.71).aspx&quot;&gt;ADO.Net&lt;/a&gt; instead of ADO (I &lt;a href=&quot;http://blogs.msdn.com/b/floditt/archive/2008/11/04/axapta-3-ado-instead-of-odbc-or-install-the-sp6.aspx&quot;&gt;posted an example&lt;/a&gt; in 2008 on msdn). The only thing to do in Dynamics Ax 2009 is to reference the System.Data assembly, which inclued the SQL-Server client implementation. The .Net framework includes a client for &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.data.oracleclient.aspx&quot;&gt;Oracle&lt;/a&gt; and &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/f0tse5zk.aspx&quot;&gt;ODBC&lt;/a&gt;. Using the Oracle-client requires the assembly&amp;nbsp;System.Data.OracleClient, the ODBC is part of the System.Data assembly, like the SqlServer-client. Other providers can be found &lt;a href=&quot;http://msdn.microsoft.com/en-us/data/dd363565&quot;&gt;here&lt;/a&gt;.&lt;br /&gt;
This sample gives you a&amp;nbsp;pretty&amp;nbsp;good idea of how to implement this on your own:&lt;br /&gt;
&lt;pre class=&quot;CSharp&quot; name=&quot;code&quot;&gt;public static server void ExecuteADONETQuery()
{
    str serverName;
    str catalogName;
    str ConnectionString;
    str sqlQuery;
    //ADO.Net via CLR objects. Requires referenced System.Data
    System.Data.SqlClient.SqlConnectionStringBuilder connectionStringBuilder;
    System.Data.SqlClient.SqlConnection connection;
    System.Data.SqlClient.SqlCommand command;
    System.Data.SqlClient.SqlParameterCollection parameterCollection;
    System.Data.SqlClient.SqlDataReader dataReader;
    ;
    new InteropPermission( InteropKind::ClrInterop ).assert();

    //Defining any SQL-Server 200x query....
    //use parameter instead of variables, so that the database can precompile it
    //and estimate an optimal execution plan
    sqlQuery = &quot;SELECT DISTINCT TOP 3 PDT.ACCOUNTRELATION, PDT.ITEMRELATION,  PDT.DATAAREAID FROM PRICEDISCTABLE PDT&quot; +
                     &quot;   LEFT OUTER JOIN INVENTTABLE  ON (PDT.ITEMRELATION = INVENTTABLE.ITEMID &quot; +
                     &quot;       AND PDT.ITEMCODE = 0 &quot; +
                     &quot;       AND PDT.DATAAREAID = INVENTTABLE.DATAAREAID) &quot; +
                    &quot; WHERE PDT.DATAAREAID = @DATAAREAID &quot;;

    //ceating the ConnectionString dynamically, based on the current connection
    serverName = SysSQLSystemInfo::construct().getLoginServer();
    catalogName = SysSQLSystemInfo::construct().getloginDatabase();
    connectionStringBuilder = new System.Data.SqlClient.SqlConnectionStringBuilder();
    connectionStringBuilder.set_DataSource(serverName);
    //here it becomes interesting. The current execution context will be used to
    //establish a conection. If this is executed by a batch, this is the user 
    //configured for the batch
    connectionStringBuilder.set_IntegratedSecurity(true);
    connectionStringBuilder.set_InitialCatalog(catalogName);
    //all this to prevent working with a fixed string...
    //on my computer, this would be equal to
    //&quot;Data Source=DYNAMICSVM;Initial Catalog=DynamicsAx1;Integrated Security=True&quot;
    ConnectionString = connectionStringBuilder.get_ConnectionString();

    //initializing connection and command
    connection = new System.Data.SqlClient.SqlConnection(ConnectionString);
    command = new System.Data.SqlClient.SqlCommand(sqlQuery);
    command.set_Connection(connection);

    //initializing the parameter @DATAAREAID with AddWithValue
    //http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlparametercollection.addwithvalue.aspx
    //To prevent using the System.Data.DBTypes. These might not work on the server.
    //This will automatically set the correct DBType during the runtime and prevent running
    //into this pitfall...
    parameterCollection = command.get_Parameters();
    parameterCollection.AddWithValue(&quot;@DATAAREAID&quot;, &quot;CEE&quot;);

    //executing SQL-query
    try
    {
        //open within catch, so that the object can correcly be disposed
        //all these try-catch are quite ennoying in X++, but this because 
        //X++ does not know finally...
        connection.Open();
        try
        {
            //All code after the open must be in a seperate catch, so that the
            //open connection-object can correcly be disposed.
            dataReader = command.ExecuteReader();

            while(dataReader.Read())
            {
                //use the named columns instead of index.
               info( dataReader.get_Item(&quot;ITEMRELATION&quot;));
            }
            //Dispose ADO.Net objects ASAP
            dataReader.Dispose();
        }
        catch //should be more precise in a real-world application
        {
            //if exception occures while reading, DataReader need to be
            dataReader.Dispose();
        }
        catch(Exception::CLRError) //CLR exception need to be handled explicitely
        //otherwise they might be &#39;lost&#39;. Happy copy&amp;amp;pasteing
        {
            //if exception occures while reading, DataReader need to be
            dataReader.Dispose();
        }
        connection.Dispose();
    }
    catch //should be more precise in a real-world application
    {
        connection.Dispose(); //disposing connection if it fails before opening it
    }
    catch(Exception::CLRError)
    {
        connection.Dispose();
    }
    command.Dispose();
    CodeAccessPermission::revertAssert();
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/3262827493152103828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/08/using-adonet-with-x.html#comment-form' title='34 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/3262827493152103828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/3262827493152103828'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/08/using-adonet-with-x.html' title='Using ADO.Net with X++'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>34</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-215761933581786369</id><published>2011-07-17T08:13:00.000-07:00</published><updated>2012-01-21T12:01:45.322-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>Redefining (mapping) Dynamics Ax EventLogs</title><content type='html'>Ever tried to monitor Dynamics Ax events with a monitoring tool that does only work with EventIds? Dynamics Ax does unfortunately writes nearly all relevant events with the eventId 110 (&lt;a href=&quot;http://floditt.blogspot.com/2011/07/dynamics-ax-eventids.html&quot;&gt;here&lt;/a&gt; a complete list). It is possible to &lt;a href=&quot;http://floditt.blogspot.com/2011/07/windows-eventlogs-with-x.html&quot;&gt;create your own events&lt;/a&gt;, but it isn&#39;t possible to change the standard events. &lt;br /&gt;
For that reason &lt;a href=&quot;https://skydrive.live.com/redir.aspx?cid=173a12e34673a860&amp;resid=173A12E34673A860!496&amp;parid=173A12E34673A860!135&amp;authkey=!AMPtEGpQ44sI2HM&quot;&gt;I scripted a small tool&lt;/a&gt; that collects the events that are&amp;nbsp;defined in a list (by EventId, EventType and a fragment of the EventMessage)&amp;nbsp;from a list of servers (SourceServers) &amp;nbsp;and writes them locally based on mapping rules defined in the Xml-configuration file. so that it is now possible to create fine grained eventLogs. The scripts creates for each SourceServers a cookie to store the creation-DateTime of the last message, so that the script just reads out all newly created messages. Here&#39;s an example for an configuration&lt;br /&gt;
&lt;pre class=&quot;xml&quot; name=&quot;code&quot;&gt;&lt;eventpackages&gt;
    &lt;eventpackage name=&quot;AxAOS110-Live&quot;&gt;
        &lt;sourceservers&gt;
              &lt;server address=&quot;HOSTNAME&quot; logname=&quot;Application&quot;&gt;
        &lt;/server&gt;&lt;/sourceservers&gt;
     &lt;events destinationeventlog=&quot;Custom Events&quot; destinationeventsource=&quot;CustomEventSource&quot;&gt;
      &lt;event descriptionpart=&quot;RPC exception&quot; id=&quot;180&quot; transformedid=&quot;32470&quot; transformedtype=&quot;Error&quot; type=&quot;Information&quot;&gt;
     &lt;/event&gt;&lt;/events&gt;
    &lt;/eventpackage&gt;
&lt;/eventpackages&gt;
&lt;/pre&gt;The XmlElement &lt;b&gt;SourceServers&lt;/b&gt; does define the list of servers with its &lt;i&gt;logName&lt;/i&gt; (for standard Ax EventLogs it is &quot;Application&quot;). The XmlElement &lt;b&gt;Events&lt;/b&gt; does define the mapping-rules with:&lt;br /&gt;
&lt;li&gt;EventId (id)&lt;/li&gt;&lt;li&gt;The part of the message (no wildcard character)&lt;/li&gt;&lt;li&gt;EventType (Information, Warning, Error)&lt;/li&gt;&lt;br /&gt;
&lt;br /&gt;
The local eventSource (defined with the attribute &lt;i&gt;destinationEventSource&lt;/i&gt; on the XmlElement Events) is automatically created if it does not already exist. The eventSource needs to be unique on the machine (1), so you can only define it once and not use it with another eventLog. You need to run the script with the EventPackage-name as argument (see documentation in the script) as with Administrator rights for the &lt;a href=&quot;http://en.wikipedia.org/wiki/User_Account_Control&quot;&gt;UAC&lt;/a&gt;. Please be aware that the local path is actually security reasons hardcoded for:&lt;br /&gt;
&lt;pre class=&quot;CSharp&quot; name=&quot;code&quot;&gt;$scriptPath = &quot;C:\Scripts\MapEventIds\&quot;;
&lt;/pre&gt;This script is just an example. Feel free to customize it for your needs.&lt;br /&gt;
&lt;br /&gt;
Update: (23/07/11)  Refactored the code so that it is now using the pipeline instead of referenced arguments. Please use the FQN instead of the IP to avoid issues with the machine name resolution. (hope that the cache on the WebServer refreshes the next hours...)</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/215761933581786369/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/redefining-mapping-dynamics-ax.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/215761933581786369'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/215761933581786369'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/redefining-mapping-dynamics-ax.html' title='Redefining (mapping) Dynamics Ax EventLogs'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-6805520624661875261</id><published>2011-07-17T02:06:00.000-07:00</published><updated>2011-07-17T13:02:45.776-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>Dynamics Ax EventIds</title><content type='html'>The only information Google finds about Dynamics Ax EventIds from Microsot &lt;a href=&quot;http://support.microsoft.com/kb/888455/it&quot;&gt;is in Italian&lt;/a&gt; and very old (2005). &lt;a href=&quot;http://babelfish.yahoo.com/translate_url?doit=done&amp;amp;tt=url&amp;amp;intl=1&amp;amp;fr=bf-home&amp;amp;trurl=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F888455%2Fit&amp;amp;lp=it_en&amp;amp;btnTrUrl=Translate&quot;&gt;Translationg it with BabelFish&lt;/a&gt; gives at least the chance to understand it (for a non Italian-speaking person). Would be great if Microsoft could at least publish this document in English, which shouldn&#39;t be a big deal, since this is the same text as in the original message definition file and publish it for Ax 2009 and 2012, too.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/6805520624661875261/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/dynamics-ax-eventids.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6805520624661875261'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6805520624661875261'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/dynamics-ax-eventids.html' title='Dynamics Ax EventIds'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-2186138276662678221</id><published>2011-07-16T11:40:00.000-07:00</published><updated>2011-07-31T00:30:02.842-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>AOS service does not stop and stays pending (what happens when the AOS stops)</title><content type='html'>In &lt;a href=&quot;http://floditt.blogspot.com/2011/07/powershell-script-to-restart-windows.html&quot;&gt;my article&lt;/a&gt; about stopping AOS services via PowerShell, I implemented a&amp;nbsp;timeout&amp;nbsp;for stopping the AOS gracefully before killing that service. In that script I set the timeout to 60 sec, which should be more then enough under normal&amp;nbsp;circumstances. If this timeout needs to be different for you, just change that. But at the end, you need to be&amp;nbsp;sure&amp;nbsp;that the AOS service is stopped, and if it isn&#39;t, the service needs to be stopped by&amp;nbsp;killing the process.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoCjVBEU9OHM8QL1LjC451GX5pBy0S4H1TIklTpS0S1Nox0nGMtwxoNr80_40ZemYmFZJSHvCVBb6Qm68KDPIoPot89UAbEtUU7E6Di2sHA6iYwPtvkBK04H4T62_VjNvd0TaeGQMqCIU/s1600/servicestopping.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;56&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoCjVBEU9OHM8QL1LjC451GX5pBy0S4H1TIklTpS0S1Nox0nGMtwxoNr80_40ZemYmFZJSHvCVBb6Qm68KDPIoPot89UAbEtUU7E6Di2sHA6iYwPtvkBK04H4T62_VjNvd0TaeGQMqCIU/s320/servicestopping.JPG&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;i&gt;Why can an AOS stuck in a pending state?&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
First an&amp;nbsp;explanation&amp;nbsp;what the AOS does when it is stopped: The AOS is managed by the service control manager&amp;nbsp;(&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms685150(v=vs.85).aspx&quot;&gt;MSDN&lt;/a&gt;/&lt;a href=&quot;http://en.wikipedia.org/wiki/Service_Control_Manager&quot;&gt;Wiki&lt;/a&gt;) (SCM). This SCM does send the messages STOP, PAUSE, CONTINUE and SHUTDOWN to the AOS, which does react on these messages. In my script, I&#39;m using the .Net class&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller(v=VS.90).aspx&quot;&gt;ServiceController&lt;/a&gt;&amp;nbsp;to work with the SCM in a very&amp;nbsp;comfortable&amp;nbsp;way because the .Net class wraps the Win32 API (&lt;a href=&quot;http://pinvoke.net/default.aspx/advapi32.OpenSCManager&quot;&gt;PInvoke&lt;/a&gt;) and&amp;nbsp;guarantees&amp;nbsp;you a safe way to work with windows services. By calling the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.serviceprocess.servicecontroller.stop(v=VS.90).aspx&quot;&gt;Stop&lt;/a&gt;&amp;nbsp;method, the script just sends a STOP message via SCM to the AOS and, if the main-thread of the AOS service does have time to handle that message, it will set the first set the service in a pending state and then trigger the Shutdown. The shutdown of an AOS does first interrupt all user sessions (you might find this message in the event-log: &quot;Object Server 01: RPC error: Client provided an invalid session ID 9&quot;) , then terminates the server session (&quot;Object Server 01: Server main session is being destroyed.&quot;) and once all these sessions are closed, it will then &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa378446(v=vs.85).aspx&quot;&gt;remove the RPC&lt;/a&gt; interface from the RPC run-time library registry and then &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa375793(v=vs.85).aspx&quot;&gt;stop listening to the RPC&lt;/a&gt; calls. Only then the SCM sets the status of the AOS to stopped. (&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa378687(v=vs.85).aspx&quot;&gt;This article on MSDN&lt;/a&gt; shows in a very simple example what the AOS does for disposing the RPC, too).&lt;br /&gt;
So there shouldn&#39;t be any problem when stopping the AOS, but unfortunately the AOS does sometimes not succeed to stop the service gracefully and this happens only from time to time when the AOS is under stress and it is therefore difficult to reproduce. But because the&amp;nbsp;shutdown waits until the &lt;a href=&quot;http://sysserversessions/&quot;&gt;ServerSession&lt;/a&gt; is terminated, it is enough to freeze the thread of the AOS session with a &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa867595.aspx&quot;&gt;sleep&lt;/a&gt;.&lt;br /&gt;
&lt;pre class=&quot;c-sharp&quot; name=&quot;code&quot;&gt;public server static void FreezeAOSSessionThread()
{
    ;
    sleep(60000);
}
&lt;/pre&gt;Calling the sleep on the client wouldn&#39;t work, because the client-sessions are killed. In no case, the client can prevent the AOS to stop and hold him in a pending state (In all cases I could track back, the situation on the AOS was similar: The AOS-session could not be terminated). If you are looking for the cause, take a &lt;a href=&quot;http://support.microsoft.com/kb/286350/en-us&quot;&gt;dump with ADPlus&lt;/a&gt; from the AOS and check the &lt;a href=&quot;http://blogs.msdn.com/b/emeadaxsupport/archive/2011/04/10/finding-the-x-call-stack-that-caused-a-crash.aspx&quot;&gt;X++ call stack&lt;/a&gt;. Once again, thank you Tariq... Attach AdPlus to the process and kill the process with the task-manager. The dump will then automatically taken.&lt;br /&gt;
Killing the AOS might terminate open connections to the SQL-Server as well. But because CUD (create, update and delete) operations are done within transactions, killing the AOS-service shouldn&#39;t break the &lt;a href=&quot;http://en.wikipedia.org/wiki/Database_integrity&quot;&gt;database integrety&lt;/a&gt; - if no custom code breaks this best-practice. Just keep in mind that you will loose all data of non-committed transactions.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/2186138276662678221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/aos-service-does-not-stop-and-stays.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/2186138276662678221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/2186138276662678221'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/aos-service-does-not-stop-and-stays.html' title='AOS service does not stop and stays pending (what happens when the AOS stops)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoCjVBEU9OHM8QL1LjC451GX5pBy0S4H1TIklTpS0S1Nox0nGMtwxoNr80_40ZemYmFZJSHvCVBb6Qm68KDPIoPot89UAbEtUU7E6Di2sHA6iYwPtvkBK04H4T62_VjNvd0TaeGQMqCIU/s72-c/servicestopping.JPG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-7987942444525492065</id><published>2011-07-14T14:21:00.000-07:00</published><updated>2011-07-17T13:03:12.583-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="divers"/><title type='text'>My first AIF project is finally flying :-)</title><content type='html'>Finishing a project is always the most thrilling moment in a project. Seeing finally the application been used by customers and colleagues is just magic and the major&amp;nbsp;reason&amp;nbsp;for me&amp;nbsp;to work in the IT...&lt;br /&gt;
7 months of hard work and the new &lt;a href=&quot;http://en.wikipedia.org/wiki/Electronic_Data_Interchange&quot;&gt;EDI &lt;/a&gt;platform for the purchase and sales process is finally flying. The publicly visible part of the &lt;a href=&quot;http://en.wikipedia.org/wiki/Electronic_commerce&quot;&gt;eCommerce &lt;/a&gt;is the &lt;a href=&quot;http://webshop.de.camfilfarr.net/start&quot;&gt;WebShop&lt;/a&gt; which is a custom &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ywdtth2f(v=VS.90).aspx&quot;&gt;.Net Web-application &lt;/a&gt;that is communicating via &lt;a href=&quot;http://en.wikipedia.org/wiki/Microsoft_BizTalk_Server&quot;&gt;BizTalk &lt;/a&gt;with the AIF framework. Because of the quite disappointing &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/bb496530(v=AX.50).aspx&quot;&gt;standard AIF-services&lt;/a&gt;, I decided to create a complete new EDI-platform on top of AIF. The platform is now online for the German subsidiary of &lt;a href=&quot;http://www.camfilfarr.com/corporate/Camfil-Farr---Global/&quot;&gt;Camfil&lt;/a&gt;, but it will be soon rolled out in most other European countries.&amp;nbsp;I hope I will find the time to blog about some of the strategic key elements of that architecture in the next weeks (why not using the Enterprise Portal or the standard AIF services, how to prevent performance bottle necks, testing AIF services and integrating EDI smoothly into standard processes)&lt;br /&gt;
A big thank you, Mathias, Alex, Sebastian, Markus, Peter and Bettina,&amp;nbsp;for all your great work&amp;nbsp;:-)</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/7987942444525492065/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/my-first-aif-project-is-finally-flying.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7987942444525492065'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7987942444525492065'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/my-first-aif-project-is-finally-flying.html' title='My first AIF project is finally flying :-)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-1458112520919678989</id><published>2011-07-13T11:41:00.000-07:00</published><updated>2011-07-17T13:03:32.033-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="divers"/><title type='text'>Windows PowerShell Cookbook</title><content type='html'>Because I already &lt;a href=&quot;http://floditt.blogspot.com/2011/07/powershell-script-to-restart-windows.html&quot;&gt;blogged about PowerShell-scripts&lt;/a&gt; for administration tasks, &lt;a href=&quot;http://www.pavleck.net/powershell-cookbook/&quot;&gt;here a link to great online-book&lt;/a&gt; from Lee Holmes about everything you need to know about programming PowerShell and much, much more. You can order it on &lt;a href=&quot;http://www.amazon.com/gp/product/0596801505?ie=UTF8&amp;amp;tag=preciscomput-20&amp;amp;linkCode=as2&amp;amp;camp=1789&amp;amp;creative=9325&amp;amp;creativeASIN=0596801505&quot;&gt;Amazon&lt;/a&gt;, too.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/1458112520919678989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/windows-powershell-cookbook.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1458112520919678989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1458112520919678989'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/windows-powershell-cookbook.html' title='Windows PowerShell Cookbook'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-6277943188249096026</id><published>2011-07-12T13:23:00.000-07:00</published><updated>2012-01-21T11:59:32.880-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="architecture"/><title type='text'>Windows EventLogs with X++</title><content type='html'>&lt;a href=&quot;https://skydrive.live.com/redir.aspx?cid=173a12e34673a860&amp;resid=173A12E34673A860!500&amp;parid=173A12E34673A860!135&amp;authkey=!AP8svx-BP94bwUU&quot;&gt;Here&#39;s a very small and simple class&lt;/a&gt; that makes it very easy to use the &lt;a href=&quot;http://en.wikipedia.org/wiki/Event_Viewer&quot;&gt;Windows EventLogs&lt;/a&gt; with X++. It creates, if necessary, a new log/source and logs the events there:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-_L1nv6LKZYISiTJIHIrsDFQ7GC9V-ukJzey3mYmoPdQsJPbxC-T9_QCODan4hU3hSK_4IyrDmUaTgseM0f5ZrcoOu8FaVQSjfHxN6jlpq6_fTbPu2WYb9r7G7mdhGbWBSTNVYrvrWdA/s1600/Events.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;106&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-_L1nv6LKZYISiTJIHIrsDFQ7GC9V-ukJzey3mYmoPdQsJPbxC-T9_QCODan4hU3hSK_4IyrDmUaTgseM0f5ZrcoOu8FaVQSjfHxN6jlpq6_fTbPu2WYb9r7G7mdhGbWBSTNVYrvrWdA/s400/Events.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Just derive from the abstract base-class &quot;WinEventLogsBase&quot; (as&amp;nbsp;it is done in WinEventLogs_Batches)&amp;nbsp;and overwrite the log/source and messageId, so that your events are unique.&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggGrFmX21R9ywbI9l35HINqrOdPByoWwc-kFyAvDM-Gd6zKliToE4HNpedqaELs3_uzuf5PobIg92xeGbb5T5wzN_I3rH6onaVDSM2DKTzWFjiBYDugd_87u6oO8izyvbMn8TJwaBeb68/s1600/XppEventLogs.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggGrFmX21R9ywbI9l35HINqrOdPByoWwc-kFyAvDM-Gd6zKliToE4HNpedqaELs3_uzuf5PobIg92xeGbb5T5wzN_I3rH6onaVDSM2DKTzWFjiBYDugd_87u6oO8izyvbMn8TJwaBeb68/s400/XppEventLogs.png&quot; width=&quot;268&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
The job TestEventLogs is an example how to write EventLogs:&lt;br /&gt;
&lt;pre class=&quot;c-sharp&quot; name=&quot;code&quot;&gt;static void TestEventLogs(Args _args)
{
    WinEventLogsBase logs;
    System.Diagnostics.EventLogEntryType type = System.Diagnostics.EventLogEntryType::Error;
    System.Int32 eventId = 110;
;
    //Works well, but in the EventLog for Workflow events
    SysWorkflowHelper::writeEventLogEntry(&quot;Test simple error from Workflow.&quot;);

    //uses the EventSource for the Dynamics Server with the instance suffix to write a message
    System.Diagnostics.EventLog::WriteEntry(&quot;Dynamics Server 01&quot;, &quot;Test simple error with WriteEntry.&quot;);
    //will result in:
    //The description for Event ID ( 0 ) in Source ( Dynamics Server 01 ) cannot be found.
    //because this source is linked to the ressource:
    //C:\Program Files\Microsoft Dynamics AX\50\Server\DynamicsAx1\Bin\Ax32Serv.exe
    //in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\Dynamics Server 01
    //which doesn&#39;t know how to handle that EventId

    //now by selecting the Dynamics Ax standard EventId 110:
    System.Diagnostics.EventLog::WriteEntry(&quot;Dynamics Server 01&quot;, &quot;Test simple error with WriteEntry.&quot;, type, eventId);
    //Works pretty fine, but: always the same EventSource and EventId, which is not possible to track for many
    //monitoring tools like for example Heroix Longitude which do only interpret the EventId.

    //now that little tool:
    logs = new WinEventLogs_Batches(); //specialization for logs

    //WinEventLogs_Batches uses an EventSource and EventLog on its own
    logs.writeError(&quot;Test simple error&quot;);  //uses a default EventId
    logs.writeInfo(&quot;Test simple info&quot;, 4711); //uses an explicit EventId
    logs.writeWarning(&quot;Test simple warning&quot;);

    logs = new WinEventLogs_Test(); //specialization that uses the Eventlog &quot;Application&quot; for the source

    //WinEventLogs_Test uses its own EventSource but &quot;Application&quot; as EventLog
    logs.writeError(&quot;Test simple error&quot;);
    logs.writeInfo(&quot;Test simple info&quot;, 4712);
    logs.writeWarning(&quot;Test simple warning&quot;);
    //because this tool links the registered EventSource to:
    //c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\EventLogMessages.dll
    //it is now possible to use any custom EventId which is not predifined in the resource like in the
    //first example.
}
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/6277943188249096026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/windows-eventlogs-with-x.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6277943188249096026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6277943188249096026'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/windows-eventlogs-with-x.html' title='Windows EventLogs with X++'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-_L1nv6LKZYISiTJIHIrsDFQ7GC9V-ukJzey3mYmoPdQsJPbxC-T9_QCODan4hU3hSK_4IyrDmUaTgseM0f5ZrcoOu8FaVQSjfHxN6jlpq6_fTbPu2WYb9r7G7mdhGbWBSTNVYrvrWdA/s72-c/Events.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-3884851625205952292</id><published>2011-07-10T10:14:00.001-07:00</published><updated>2011-07-27T10:24:57.063-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="architecture"/><title type='text'>Authenticating a user with user-name and password against Windows with X++</title><content type='html'>The &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement(v=VS.90).aspx&quot;&gt;AccountManagement &lt;/a&gt;Namespace was introduced with .Net 3.5 and provides some very useful classes which are, by&lt;a href=&quot;http://www.axaptapedia.com/.NET_Integration&quot;&gt; referencing this assembly&lt;/a&gt;, available with X++, as well. At least if you&#39;ve installed .Net 3.5.&lt;br /&gt;
&lt;br /&gt;
Here&#39;s an example how to authenticate a username and password against Windows with the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.principalcontext(v=VS.90).aspx&quot;&gt;PrincipalContext &lt;/a&gt;class and the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.principalcontext.validatecredentials(v=VS.90).aspx&quot;&gt;ValidateCredentials&lt;/a&gt;-method. &lt;br /&gt;
&lt;pre class=&quot;c-sharp&quot; name=&quot;code&quot;&gt;boolean isAuthenticated = false;
System.DirectoryServices.AccountManagement.PrincipalContext principalContext;
;

principalContext = new System.DirectoryServices.AccountManagement.PrincipalContext(System.DirectoryServices.AccountManagement.ContextType::Domain, &quot;contoso.com&quot;);
isAuthenticated = principalContext.ValidateCredentials(&quot;username&quot;, &quot;password&quot;);
principalContext.Dispose();

if (isAuthenticated)
{
    //do something
}
else
{
    //do something
}
&lt;/pre&gt;&lt;br /&gt;
Update: (15/07/11) And bcause of the Google search keywords: The username and password for the contoso.com VPC are Administrator and Passw0rd (or pass@word1 depends on the vpc) ... ;-)</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/3884851625205952292/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/authenticating-user-with-user-name-and.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/3884851625205952292'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/3884851625205952292'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/authenticating-user-with-user-name-and.html' title='Authenticating a user with user-name and password against Windows with X++'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-6433203022044787908</id><published>2011-07-09T03:28:00.000-07:00</published><updated>2011-07-26T09:20:22.334-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="architecture"/><title type='text'>Authentication of the different components in Ax 2009</title><content type='html'>One of the most&amp;nbsp;annoying&amp;nbsp;subjects in Ax2009 is &lt;a href=&quot;http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=2960&quot;&gt;installing and configuring the&amp;nbsp;huge&amp;nbsp;number of components&lt;/a&gt;&amp;nbsp;which do need to&amp;nbsp;authenticate&amp;nbsp;each other. There are &lt;a href=&quot;http://en.wikipedia.org/wiki/SQL_Server_Reporting_Services&quot;&gt;Reporting Services&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/Microsoft_Analysis_Services&quot;&gt;Analysis Services&lt;/a&gt;, &lt;a href=&quot;http://en.wikipedia.org/wiki/SharePoint_Services&quot;&gt;SharePoint Services&lt;/a&gt; (or &lt;a href=&quot;http://en.wikipedia.org/wiki/Microsoft_Office_SharePoint_Server&quot;&gt;MOSS&lt;/a&gt;) on &lt;a href=&quot;http://en.wikipedia.org/wiki/Internet_Information_Services&quot;&gt;IIS&lt;/a&gt;, AIF &lt;a href=&quot;http://en.wikipedia.org/wiki/MSMQ&quot;&gt;MSMQ&lt;/a&gt;, AIF WebServices, AIF &lt;a href=&quot;http://en.wikipedia.org/wiki/Microsoft_BizTalk_Server&quot;&gt;BTS&lt;/a&gt;, the Ax AOS, &amp;nbsp;Internet&amp;nbsp;Explorer, &lt;a href=&quot;http://en.wikipedia.org/wiki/Server_Message_Block&quot;&gt;SMB &lt;/a&gt;for the application file-share and the Ax client (some do have BC.Net applications as well). If they are all installed &lt;a href=&quot;http://technet.microsoft.com/en-us/library/dd309706(AX.50).aspx&quot;&gt;on one box&lt;/a&gt;, this is quite easy to maintain. But a &lt;a href=&quot;http://technet.microsoft.com/en-us/library/dd309710(AX.50).aspx&quot;&gt;distributed installation&lt;/a&gt; (especially &lt;a href=&quot;http://technet.microsoft.com/en-us/library/dd309620(AX.50).aspx&quot;&gt;on a large scale&lt;/a&gt;) is&amp;nbsp;extremely&amp;nbsp;complicated and requires a profound understanding of &lt;a href=&quot;http://en.wikipedia.org/wiki/Kerberos_(protocol)&quot;&gt;Kerberos &lt;/a&gt;authentication. &amp;nbsp;Because I recently had to find an issue on my erroneous installation, here&#39;s a nice schema of my current Ax 2009 configuration which might help you as well:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8JcO7C9kN8zdDaTjiF3UgAryLPF7M3MRLzvm1mH4L3-sx4QHOisakG4VTFWKt7eFxB5zZoef_vRg64QoQl9TNEAS3PLMFjs9K01zZGpgxSt6AffEsPy0G5sZhsxZ6z5kVQdzb8NKum28/s1600/Axapta+2009.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8JcO7C9kN8zdDaTjiF3UgAryLPF7M3MRLzvm1mH4L3-sx4QHOisakG4VTFWKt7eFxB5zZoef_vRg64QoQl9TNEAS3PLMFjs9K01zZGpgxSt6AffEsPy0G5sZhsxZ6z5kVQdzb8NKum28/s1600/Axapta+2009.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/6433203022044787908/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/authentication-of-different-components.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6433203022044787908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6433203022044787908'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/authentication-of-different-components.html' title='Authentication of the different components in Ax 2009'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh8JcO7C9kN8zdDaTjiF3UgAryLPF7M3MRLzvm1mH4L3-sx4QHOisakG4VTFWKt7eFxB5zZoef_vRg64QoQl9TNEAS3PLMFjs9K01zZGpgxSt6AffEsPy0G5sZhsxZ6z5kVQdzb8NKum28/s72-c/Axapta+2009.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-1054467415372439173</id><published>2011-07-06T15:07:00.000-07:00</published><updated>2012-01-21T12:05:35.897-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>PowerShell script to restart Windows (AOS) services remotely</title><content type='html'>&lt;div style=&quot;margin: 0cm;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Just a small script to restart a list of Windows-services (&lt;a href=&quot;https://skydrive.live.com/redir.aspx?cid=173a12e34673a860&amp;resid=173A12E34673A860!498&amp;parid=173A12E34673A860!135&amp;authkey=!AG35_r72QWzErgY&quot;&gt;download here&lt;/a&gt;). It checks that they are stopped and kills them if they cannot be stopped and then starts them. If there are any errors, an email is sent and the user is informed about the progress in the tray-bar. All this is configurable in an Xml-file. It&#39;s a small script and should only be used as an example of how the PowerShell can be useful for the daily business (please understand that I don&#39;t publish the final version):&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;stopping and starting services remotely&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;killing a process remotely&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;getting ProcessId from service-name&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;sending a mail&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;executing WMI queries on remote machines&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;pinging machines&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;Info-bubble in the tray bar&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;creating and writing into EventLogs&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;handling exceptions&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;working with Xml-files&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;passing parameter to a function&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;working with ref-variables&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: #fefdfa; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Update: (09/07/11) Updated script with some fixes and changes in the behavior.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;Update: (10/07/11)&amp;nbsp; As this was my first experience with PowerShell scripting, I rewrote the script with all what I learned during these days. The script does now restart remotely in a controlled way the services and tracks all info about the executed&amp;nbsp;activities&amp;nbsp;and anomalies during this process.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px;&quot;&gt;Update: (23/07/11)&amp;nbsp; Still novice with PowerShell... :-( Refactored the code so that it is now using the pipeline instead of referenced arguments.&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/1054467415372439173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/powershell-script-to-restart-windows.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1054467415372439173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1054467415372439173'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/powershell-script-to-restart-windows.html' title='PowerShell script to restart Windows (AOS) services remotely'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-2294228100315958574</id><published>2011-07-02T13:44:00.000-07:00</published><updated>2011-07-17T13:04:22.463-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Batch"/><title type='text'>Links about the Ax 2009 batch-framework</title><content type='html'>Some interesting links:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Tariq wrote on the &lt;a href=&quot;https://blogs.msdn.com/b/emeadaxsupport/&quot;&gt;EMEA DAX support blog&lt;/a&gt; &lt;a href=&quot;https://blogs.msdn.com/b/emeadaxsupport/archive/2011/02/22/how-batch-processing-works-under-the-hood-ax2009.aspx&quot;&gt;an interesting article&lt;/a&gt; about how batches are processed in Ax2009. Thanks a lot for that, Tariq :-)&lt;/li&gt;
&lt;li&gt;A nice &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc588679.aspx&quot;&gt;How-To about debugging batches&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Processing &lt;a href=&quot;http://blogs.msdn.com/b/emeadaxsupport/archive/2009/06/16/how-to-run-client-batches-on-ax-2009.aspx&quot;&gt;batches on clients&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;Tom Stumpf (&lt;a href=&quot;http://blogs.msdn.com/b/axinthefield/&quot;&gt;Ax in the field&lt;/a&gt;) on Ax &lt;a href=&quot;http://blogs.msdn.com/b/axinthefield/archive/2011/03/25/optimizing-ax-batch-performance-using-batch-group-configurations.aspx&quot;&gt;batch performance tuning&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;How to &lt;a href=&quot;http://axforum.info/forums/showthread.php?t=15116&quot;&gt;start a specific Batch Group during Startup&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;http://www.artofcreation.be/2010/10/03/batch-multithreading/&quot;&gt;Multithreading in Batches&lt;/a&gt; on&amp;nbsp;&lt;a href=&quot;http://www.artofcreation.be/&quot;&gt;Art Of Creation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/2294228100315958574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/07/links-about-ax-2009-batch-framework.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/2294228100315958574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/2294228100315958574'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/07/links-about-ax-2009-batch-framework.html' title='Links about the Ax 2009 batch-framework'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-7076562608226511029</id><published>2011-06-26T05:35:00.000-07:00</published><updated>2012-01-21T12:06:54.833-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>Batchable AxdSend-class in Ax2009 and Ax2012</title><content type='html'>The &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa628527.aspx&quot;&gt;AxdSend&lt;/a&gt;-class is a very easy to implement class, that helps you writing outbound services for Dynamics Ax 2009 and 2012. The &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc556413.aspx&quot;&gt;AxdSendExchangeRates&lt;/a&gt;-class from Ax 2009 (not existing in Ax 2012 anymore) gives you an idea of how to use this class. Unfortunately there are some reasons why the AxdSend-class cannot run as-is in batches:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;The base class: The AxdSend-class needs to derive from &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa864002.aspx&quot;&gt;RunBaseBatch&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;The dialog: The dialog is built on the&amp;nbsp;axdSend-form which does not provide the &#39;tab&#39;-control for the RunBaseBatch-dialog. This form needs to be modified by adding a new tab-control named &#39;tab&#39;. Otherwise you would get an exception from the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa657588.aspx&quot;&gt;buildControl&lt;/a&gt;-method in the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa605480.aspx&quot;&gt;DialogForm&lt;/a&gt;-class. Btw: The name &#39;tab&#39; is hardcoded in the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa847469.aspx&quot;&gt;tabName&lt;/a&gt;-method of the same class.&lt;/li&gt;
&lt;li&gt;The method&amp;nbsp;sendMultipleDocuments: calling this method results in calling the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa678813.aspx&quot;&gt;run&lt;/a&gt;-method, and, as you know, batches are executed by calling the run-method...&lt;/li&gt;
&lt;/ol&gt;&lt;div&gt;Changing this would let the AxdSend-class be &#39;batchable&#39;, but unfortunately the class wouldn&#39;t be executable in the interactive mode anymore. This, because the dialog form from the AxdSend, which is opened by calling the &lt;a href=&quot;http://msdn.microsoft.com/en-US/library/aa879577.aspx&quot;&gt;prompt&lt;/a&gt;-method, requires these members being initialized:&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;aifDocumentClassId&lt;/li&gt;
&lt;li&gt;serviceClassId&lt;/li&gt;
&lt;li&gt;aifConstraintList&lt;/li&gt;
&lt;li&gt;aifSendMode&lt;/li&gt;
&lt;li&gt;sendActionType&lt;/li&gt;
&lt;li&gt;aifActionId&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;My suggestion here is to create a new base-class for batchable AxdSend-classes to isolate these modifications as much as possible. You can &lt;a href=&quot;https://skydrive.live.com/redir.aspx?cid=173a12e34673a860&amp;resid=173A12E34673A860!499&amp;parid=173A12E34673A860!135&amp;authkey=!AJParnK6bp33sZ8&quot;&gt;download a private project&lt;/a&gt;&amp;nbsp; that contains my modifications/new classes&amp;nbsp;for Ax2009&amp;nbsp;in all concerned AOT-objects:&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;AxdSend-class&lt;/li&gt;
&lt;li&gt;axdSend-form&lt;/li&gt;
&lt;li&gt;AxdBatchableSend-class (custom base-class)&lt;/li&gt;
&lt;li&gt;AxdSendExchangeRates as an example how to use the&amp;nbsp;AxdBatchableSend class&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;The batch will use the endpoint that is stored in the usage-data. So the batch needs to be executed at least once in the interactive mode.&lt;br /&gt;
Important&amp;nbsp;note:&lt;br /&gt;
Importing this project will overwrite these objects and overwrite all modifications in the same layer, too. Please be careful when importing the project.&lt;br /&gt;
These modifications are not compatible with Ax2012, but it requires only slight changes to adapt this to Ax2012. I will upload a project for Ax2012 once Ax2012 is released.&lt;br /&gt;
&lt;br /&gt;
Update: (30/06/11) I fixed an issue with the&amp;nbsp;initialization&amp;nbsp;of the endpoint-list.&lt;br /&gt;
Update: (02/07/11) Ups, fixed an issue with the dialog&amp;nbsp;initialization.&lt;br /&gt;
Update: (04/07/11) Sends only message if query returns more than one element.&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/7076562608226511029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/06/batchable-axdsend-class.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7076562608226511029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7076562608226511029'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/06/batchable-axdsend-class.html' title='Batchable AxdSend-class in Ax2009 and Ax2012'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-2818817522782517325</id><published>2011-06-19T08:43:00.000-07:00</published><updated>2011-07-17T13:04:41.853-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BC.Net"/><title type='text'>The BC.Net in Dynamics Ax 2012</title><content type='html'>I&#39;ve never been a fan of using the BC.Net in client applications. It&#39;s true that this is a very easy to use interface, but in most use-cases the Ax-client or the AIF are a better choice. The BC.Net is in fact a regular Ax-client without UI (user interface) and this means that it requires such an installation with the application that has been written - with all the constraints of the Ax-client plus some BC.Net specific ones:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Local BC.Net installation (not easily maintainable when deploying on a larger scale)&lt;/li&gt;
&lt;li&gt;Dynamics Ax 2009 doesn&#39;t support side-by-side installations of clients (inflexible architecture)&lt;/li&gt;
&lt;li&gt;RPC-protocol (constraint for the infrastructure: Firewall)&lt;/li&gt;
&lt;li&gt;No multi-threading (lousy performance). Using multi-threading with the BC.Net results always in exceptions.&lt;/li&gt;
&lt;li&gt;No session-management. Only one session at a time. (no scalability) A very complex session-management needs to be written.&lt;/li&gt;
&lt;li&gt;No contract for the method and its signature (difficultly&amp;nbsp;maintainable when application changes over the time) as it is available with the AIF (service+Xsd or Wsdl with AIF-WebServices)&lt;/li&gt;
&lt;li&gt;BC.Net requires the Enterprise Portal license when hosted by the IIS (this&amp;nbsp;constraint&amp;nbsp;is hardcoded in the BC.Net)&lt;/li&gt;
&lt;/ol&gt;I wasn&#39;t surprised when I read that &lt;a href=&quot;http://dynamics-ax.blogspot.com/2011/05/net-business-connector-not-recommend.html&quot;&gt;the BC.Net is no longer recommended&lt;/a&gt; to be used directly. The future is services + WCF. I would even say, that the use of the BC.Net should already be avoided&amp;nbsp;whenever possible today. The AIF does offer you many possibilities for doing it today and&amp;nbsp;the standard Ax client is&amp;nbsp;for most other situations good-enough...&lt;br /&gt;
&lt;br /&gt;
PS: And don&#39;t forget that there is no COM.BC available with Dynamics Ax 2012.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/2818817522782517325/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/06/bcnet-in-dynamics-ax-2012.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/2818817522782517325'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/2818817522782517325'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/06/bcnet-in-dynamics-ax-2012.html' title='The BC.Net in Dynamics Ax 2012'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-7669744124638058435</id><published>2011-06-19T06:09:00.000-07:00</published><updated>2011-07-17T13:04:50.475-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>Exporting AIF endpoints with Dynamics Ax 2012</title><content type='html'>What a good news in Dynamics Ax 2012! The nightmare while deploying AIF endpoints has finally an end and you do&amp;nbsp;obviously&amp;nbsp;not need to be worried about changed classIDs and RefRecIds (AifDataPolicy does reference AifDocumentField by the RecId) anymore. &lt;a href=&quot;http://technet.microsoft.com/en-us/library/aa834357(AX.60).aspx&quot;&gt;Here&#39;s a guide&lt;/a&gt; how to export the endpoints by definition groups in Ax 2012 on Msdn.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/7669744124638058435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/06/exporting-aif-enpoints-with-dynamics-ax.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7669744124638058435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7669744124638058435'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/06/exporting-aif-enpoints-with-dynamics-ax.html' title='Exporting AIF endpoints with Dynamics Ax 2012'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-7213927633795244958</id><published>2011-06-19T04:11:00.000-07:00</published><updated>2011-07-17T08:56:31.525-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BC.Net"/><title type='text'>.Net 4.0 client profile not enough for the Dynamics Ax BC.Net</title><content type='html'>On &lt;a href=&quot;http://daxdilip.blogspot.com/&quot;&gt;Dilip&#39;s blog on Dynamics Ax&lt;/a&gt;, Dilip suggests in &lt;a href=&quot;http://daxdilip.blogspot.com/2011/06/tip-visual-studio-2010-ultimate-and.html&quot;&gt;his article&lt;/a&gt;&amp;nbsp;on BC.Net compatibility settings, to switch from .Net Framework 4.0 Client Profile to .Net Framework 3.5 with the argument, that this makes sense because the BC.Net is compiled on top of the .Net 3.5 Framework.&lt;br /&gt;
&lt;div&gt;I was surprised reading this, because Microsoft promised&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ff602939.aspx&quot;&gt;backward compatibility and the .NET Framework 4&lt;/a&gt;:&lt;/div&gt;&lt;blockquote&gt;The .NET Framework 4 is backward-compatible with applications that were built with the .NET Framework versions 1.1, 2.0, 3.0, and 3.5. In other words, applications and components built with previous versions of the .NET Framework will work on the .NET Framework 4.&lt;/blockquote&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;The errormessage when compiling the BC.Net application against the .Net 4.0 client was:&lt;/span&gt;&lt;/div&gt;&lt;blockquote&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Segoe UI&#39;, Verdana, Arial; font-size: 13px;&quot;&gt;...could not be resolved because it has a dependency on &quot;System.Web....&lt;/span&gt;&lt;/blockquote&gt;&lt;div&gt;So why do BC.Net projects don&#39;t compile with client profiles ? To answer this, browse through the BC.Net assembly with the &lt;a href=&quot;http://www.reflector.net/&quot;&gt;.Net Reflector&lt;/a&gt; or, because it&#39;s open-source and free:&amp;nbsp;&lt;a href=&quot;http://wiki.sharpdevelop.net/ILSpy.ashx&quot;&gt;ILSpy&lt;/a&gt;&amp;nbsp;and you will notice that the BC.Net does reference for the BC.Net 2012 &#39;Microsoft.Dynamics.AX.ManagedInterop&#39; and this references the &#39;System.Web&#39; assembly. The BC.Net 2009 does directly reference the &#39;System.Web&#39;-assembly.&lt;/div&gt;&lt;div&gt;Now, having a look on &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc656912.aspx&quot;&gt;Msdn for the .Net 4.0 client profile&lt;/a&gt;, it is documented:&lt;/div&gt;&lt;div&gt;&lt;blockquote&gt;The .NET Framework 4 Client Profile does not include the following features. You must install the .NET Framework 4 to use these features in your application:&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;ASP.NET&lt;/li&gt;
&lt;li&gt;Advanced Windows Communication Foundation (WCF) functionality&lt;/li&gt;
&lt;li&gt;.NET Framework Data Provider for Oracle&lt;/li&gt;
&lt;li&gt;MSBuild for compiling&lt;/li&gt;
&lt;/ul&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;div&gt;The &#39;System.Web&#39; assembly, which is part of the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/gg145018.aspx&quot;&gt;System.Web-namespace&lt;/a&gt;&amp;nbsp;and so not part of the reduced .Net framework runtime, requires the &lt;a href=&quot;http://www.microsoft.com/net/download.aspx&quot;&gt;full .Net 4.0 Framework&lt;/a&gt;. Now select the full .Net 4.0 Framework for compatibility and compile it again. It will work.&amp;nbsp;Selecting the .Net 3.5 client profile will, of course, result in the same error.&amp;nbsp;As I mentioned, this is true for the BC.Net of Dynamics Ax 2009 AND 2012.&lt;br /&gt;
&lt;br /&gt;
UPDATED 02/07/2011: Dilip updated his article with a very interesting information about the runtime-compatibility of applications referencing the BC.Net assembly: It requires the&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: Georgia, serif; font-size: 13px; line-height: 20px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/bbx34a2h.aspx&quot;&gt;useLegacyV2RuntimeActivationPolicy &lt;/a&gt;attribute to be set to true. But read his article fur further information.&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/&quot;&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
UPDATED 17/112011: Dilips first article was about the error message during the compilation and I was referring to the compile-time compatibility that .Net4 guaranties. The updated article now is talking about the runtime-compatibility.&lt;br /&gt;
Anyway, the useLegacyV2RuntimeActivationPolicy is, despite of its name, not executing the application in a different CLR context (CLR2), but does translate some legacy &lt;a href=&quot;http://en.wikipedia.org/wiki/Shim_(computing)&quot;&gt;shim APIs&lt;/a&gt; to the current CLR4, as explained in &lt;a href=&quot;http://www.marklio.com/marklio/PermaLink,guid,ecc34c3c-be44-4422-86b7-900900e451f9.aspx&quot;&gt;this great article&lt;/a&gt; about this attribute. So even by using this attribute we are, as promised by Microsoft, fully .Net 4 :-)</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/7213927633795244958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/06/net-40-client-profile-not-enough-for.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7213927633795244958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7213927633795244958'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/06/net-40-client-profile-not-enough-for.html' title='.Net 4.0 client profile not enough for the Dynamics Ax BC.Net'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-5656069166576285526</id><published>2011-02-08T06:22:00.000-08:00</published><updated>2011-02-08T06:22:12.405-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><category scheme="http://www.blogger.com/atom/ns#" term="Ax2009"/><title type='text'>Aif changes implicitly document schema when changing underlying table</title><content type='html'>Changing the mandatory property of fields&amp;nbsp;in&amp;nbsp;tables that are used in Aif-documents does change implicitly the document schema. The table FDI_AifModTest_CF does have the following fields: PK, opt, opt1, mand and mand1. The mandatory fields are flaged aith &quot;m&quot;:&lt;br /&gt;
﻿ &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibAsAy-BDnFKisVbxFoY-mdrq8IJWDNtHULOZ2tOo6bAQT6n2z92p7V5omNUrhEm7Azhr5TkuYsqoUf8e47ko8WImiNUYRix11r9iSg-YDyyUF-463Xy-vqpvh5ShGdbSLx5NRsQYn-9c/s1600/Table.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; h5=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibAsAy-BDnFKisVbxFoY-mdrq8IJWDNtHULOZ2tOo6bAQT6n2z92p7V5omNUrhEm7Azhr5TkuYsqoUf8e47ko8WImiNUYRix11r9iSg-YDyyUF-463Xy-vqpvh5ShGdbSLx5NRsQYn-9c/s1600/Table.PNG&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Mandatory fields in version 1 and 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;﻿ &lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;In the beginning the mandatory fields of the table are: PK, mand and mand1.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;After having created and configured &amp;nbsp;the Aif-service, the document schema looks like this:&lt;/div&gt;﻿﻿﻿﻿﻿ &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9qhROQzfQYSGtXWeSEqIQarvXeQooMbLv7XBmugvEuhUrVCr2sVtM2GtxZu9G8HHc85IN8tIgaXZMtmh2nqNqp4g2jfyppjl4hf_MX3dUg_ljNtIss4UK-uJBe2fxqgP2N5AtZNB9Fv8/s1600/SchemaVS1.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; h5=&quot;true&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9qhROQzfQYSGtXWeSEqIQarvXeQooMbLv7XBmugvEuhUrVCr2sVtM2GtxZu9G8HHc85IN8tIgaXZMtmh2nqNqp4g2jfyppjl4hf_MX3dUg_ljNtIss4UK-uJBe2fxqgP2N5AtZNB9Fv8/s640/SchemaVS1.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Document schema according the version 1&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;﻿﻿﻿﻿﻿ Then, in a second step, the mandatory field is changed as descibed in the first graphic.&amp;nbsp;After refreshing the&amp;nbsp;Aif-services the document schema changed without any notification: &lt;br /&gt;
﻿﻿﻿ &lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPiI72Dpq3cpowz3LTrargplZsEdZt855W4f8Z8-sxnGPxtPwzW2gaTQJxRHLAINYi-SBwdKOdyMflcfOJYkMxGk1FZesjDn36ayxCcTEgoeM77CycIigzUhaQ1ZBtX4wZWm93-6PM2rk/s1600/SchemaVS2.PNG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; h5=&quot;true&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPiI72Dpq3cpowz3LTrargplZsEdZt855W4f8Z8-sxnGPxtPwzW2gaTQJxRHLAINYi-SBwdKOdyMflcfOJYkMxGk1FZesjDn36ayxCcTEgoeM77CycIigzUhaQ1ZBtX4wZWm93-6PM2rk/s640/SchemaVS2.PNG&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Document schema according the version 2&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;So this shows that changing the &lt;/span&gt;﻿﻿﻿﻿&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;field to mandatory changes the schema, but changing&amp;nbsp;from mandatory to optional does not change the schema. The schema change does make sense but unfortunately&amp;nbsp;this is done completely transparent to the user and there is by default no possibility to get notified by this.&amp;nbsp;So, doing an Aif-service refresh can&amp;nbsp;cause regressions and has to be done with precaution.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/5656069166576285526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/02/aif-changes-implicitly-document-schema.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/5656069166576285526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/5656069166576285526'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/02/aif-changes-implicitly-document-schema.html' title='Aif changes implicitly document schema when changing underlying table'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEibAsAy-BDnFKisVbxFoY-mdrq8IJWDNtHULOZ2tOo6bAQT6n2z92p7V5omNUrhEm7Azhr5TkuYsqoUf8e47ko8WImiNUYRix11r9iSg-YDyyUF-463Xy-vqpvh5ShGdbSLx5NRsQYn-9c/s72-c/Table.PNG" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-561484505803929900</id><published>2011-01-15T14:55:00.000-08:00</published><updated>2011-07-17T13:05:08.133-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>Specific order of fields in Aif messages</title><content type='html'>Aif-messages require the data to be defined in a specific order. This is why in the schema file, the Aif data-types (declared as &lt;a href=&quot;http://www.w3.org/TR/xmlschema-1/#Complex_Type_Definitions&quot;&gt;complex types&lt;/a&gt;) are declared with the &lt;a href=&quot;http://www.w3schools.com/schema/schema_complex.asp&quot;&gt;xs:sequence indicator&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
Example from the DirAddressService:&lt;br /&gt;
...&lt;br /&gt;
&lt;pre class=&quot;xml:nocontrols&quot; name=&quot;code&quot;&gt;&lt;complextype name=&quot;AxdEntity_Address&quot;&gt;
    &lt;sequence&gt;
      &lt;element minoccurs=&quot;0&quot; name=&quot;_DocumentHash&quot; nillable=&quot;true&quot; type=&quot;xs:string&quot;&gt;&lt;/element&gt;
      &lt;element minoccurs=&quot;0&quot; name=&quot;Address&quot; nillable=&quot;true&quot; type=&quot;AxdExtType_Addressing&quot;&gt;&lt;/element&gt;
            ...
    &lt;/sequence&gt;
    &lt;attribute fixed=&quot;entity&quot; name=&quot;class&quot; use=&quot;required&quot;&gt;&lt;/attribute&gt;
    &lt;attribute name=&quot;action&quot; type=&quot;AxdEnum_AxdEntityAction&quot;&gt;&lt;/attribute&gt;
  &lt;/complextype&gt;
&lt;/pre&gt;...&lt;br /&gt;
&lt;br /&gt;
This is particularly surprising, as the elements in an entity are always ordered alphabetically... :-\</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/561484505803929900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/01/specific-order-of-fields-in-aif.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/561484505803929900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/561484505803929900'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/01/specific-order-of-fields-in-aif.html' title='Specific order of fields in Aif messages'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-8824416529695846107</id><published>2011-01-15T08:44:00.000-08:00</published><updated>2011-07-17T13:05:16.337-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>Aif message header editor (reloaded)</title><content type='html'>&lt;strike&gt;I blogged some weeks ago about my very simple tool to change &lt;/strike&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa872025(v=AX.50).aspx&quot;&gt;&lt;strike&gt;Aif header-information&lt;/strike&gt;&lt;/a&gt;&lt;strike&gt; in Xml-files&lt;/strike&gt;. (Article deleted)&lt;br /&gt;
I reviewed the code and made it now usable &quot;as is&quot;. So it is now more then just a proof of concept :-) &lt;a href=&quot;http://amhe.codeplex.com/&quot;&gt;The project&lt;/a&gt; is hosted on &lt;a href=&quot;http://www.codeplex.com/&quot;&gt;CodePlex&lt;/a&gt; under the &lt;a href=&quot;http://amhe.codeplex.com/license&quot;&gt;new GNU license&lt;/a&gt; (so that you can do whatever you like to do with the code without restrictions).&lt;br /&gt;
This tool makes it now possible to modify the content of the Aif-message and to change the file-owner, which is used by Aif to authenticate messages by comparing the file-owner with the source endpoint user.&lt;br /&gt;
&lt;div&gt;The tool has a graphical user interface and a simple comand-line interface, so that you can include this tool in scripts which makes it easier to automize creating messages.&lt;/div&gt;&lt;div&gt;The Guid looks like this:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7AteBYzM2rG_8NcA_NbkSqoKyWN3juKEGKryRxVHxcT4UnUrnpiJY0rO3M2MGOWap6LAl2DrN2Nybk2QIv5Zg4i273t8Pqs0lGcXyEP938Red4IvtncwBhLjM67AqqbP3NiEzpw9CC-M/s1600/amhe.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;351&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7AteBYzM2rG_8NcA_NbkSqoKyWN3juKEGKryRxVHxcT4UnUrnpiJY0rO3M2MGOWap6LAl2DrN2Nybk2QIv5Zg4i273t8Pqs0lGcXyEP938Red4IvtncwBhLjM67AqqbP3NiEzpw9CC-M/s400/amhe.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;It is very easy to use: just open the valid Xml-file with the &quot;...&quot;-button. If the Xml-files are associated with this tool, a double-click will work, too. Then choose your destination directory. This will be probably the directory that you configured for the incoming messages in Dynamics Ax and&amp;nbsp;choose the same user for the file owner and the &quot;&lt;a href=&quot;http://technet.microsoft.com/en-us/library/ee355069.aspx&quot;&gt;source endpoint user&lt;/a&gt;&quot;. The Aif authenticates the &lt;a href=&quot;http://technet.microsoft.com/en-us/library/ee355069.aspx&quot;&gt;Aif-user&lt;/a&gt; by comparing the &quot;source endpoint user&quot; in the header with the &lt;a href=&quot;http://technet.microsoft.com/en-us/library/cc780020(WS.10).aspx&quot;&gt;document owner&lt;/a&gt;.&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;A new functionality is the command-line interface:&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0Kwqa_bw7xYghlGp3S7zO1JeJ1MuD4N3aY7enIW9YzuXJMfkZrB1hxubFNfxGikL59oTHpXYM_RyoAgToxogE5eOc0_ce7aZ6X-yMX8kK3BX8XQTKbOB4sOxT0l1VW6rySFqD9MFB3UA/s1600/amhe-cmd.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;353&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0Kwqa_bw7xYghlGp3S7zO1JeJ1MuD4N3aY7enIW9YzuXJMfkZrB1hxubFNfxGikL59oTHpXYM_RyoAgToxogE5eOc0_ce7aZ6X-yMX8kK3BX8XQTKbOB4sOxT0l1VW6rySFqD9MFB3UA/s400/amhe-cmd.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Type &quot;-help&quot; for a simple &quot;how-to&quot; use this tool and include this in your cmd-script for an automized file-creation...&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;This tool is provided &quot;as-is&quot;, and nobody (including me), will be responsable for any damage this tool might cause... ;-)&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;Please feel free to report any issues on &lt;a href=&quot;http://amhe.codeplex.com/workitem/list/basic&quot;&gt;the project homepage&lt;/a&gt;&amp;nbsp;or just drop me a mail.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/8824416529695846107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2011/01/aif-message-header-editor-reloaded.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/8824416529695846107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/8824416529695846107'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2011/01/aif-message-header-editor-reloaded.html' title='Aif message header editor (reloaded)'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7AteBYzM2rG_8NcA_NbkSqoKyWN3juKEGKryRxVHxcT4UnUrnpiJY0rO3M2MGOWap6LAl2DrN2Nybk2QIv5Zg4i273t8Pqs0lGcXyEP938Red4IvtncwBhLjM67AqqbP3NiEzpw9CC-M/s72-c/amhe.jpg" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-1818422724293987947</id><published>2010-12-15T02:01:00.000-08:00</published><updated>2011-01-03T05:44:32.561-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><category scheme="http://www.blogger.com/atom/ns#" term="Ax2009"/><title type='text'>Namespaces in Aif Xml-messages</title><content type='html'>In a &lt;a href=&quot;http://floditt.blogspot.com/2010/11/here-is-simple-schema-of-aif-message.html&quot;&gt;previous&amp;nbsp;posting&lt;/a&gt; I described the structure of a Dynamics Ax 2009&amp;nbsp;Aif message. Here now some information about &lt;a href=&quot;http://en.wikipedia.org/wiki/Namespace_(computer_science)&quot;&gt;Namespaces&lt;/a&gt; in Aif Xml-messages:&lt;br /&gt;
&lt;br /&gt;
An Aif Xml message is identified by namespaces on 3 locations:&lt;br /&gt;
- the Xml-envelope (1)&lt;br /&gt;
- the Aif-service (2)&lt;br /&gt;
- the Xml-messageparts (3) + (4)&lt;br /&gt;
&lt;br /&gt;
According to my &lt;a href=&quot;http://floditt.blogspot.com/2010/11/here-is-simple-schema-of-aif-message.html&quot;&gt;previous&amp;nbsp;posting&lt;/a&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsqtEhHLc5oCQrXA5x_g51f4f19NQdd604y011fZa-FrSgp8hE0WeduP1uehgly3uG447l9CqwqngjuceMzESIbZofQHM2pzjKG6FXkvzEfHPdT0IZQcrf3sywqQO65EuTFdIY2AmYtsg/s1600/Aif-namespaces.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsqtEhHLc5oCQrXA5x_g51f4f19NQdd604y011fZa-FrSgp8hE0WeduP1uehgly3uG447l9CqwqngjuceMzESIbZofQHM2pzjKG6FXkvzEfHPdT0IZQcrf3sywqQO65EuTFdIY2AmYtsg/s1600/Aif-namespaces.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
These information are defined in Ax&amp;nbsp;in the following places:&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Macros&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;em&gt;Aif:&lt;/em&gt; (1) + (3)&lt;br /&gt;
#define.MessageNamespace (&#39;http://schemas.microsoft.com/dynamics/2008/01/documents/Message&#39;)&lt;br /&gt;
#define.EntityKeyNamespace (&#39;http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKey&#39;)&lt;br /&gt;
#define.EntityKeyListNamespace (&#39;http://schemas.microsoft.com/dynamics/2006/02/documents/EntityKeyList&#39;)&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Axd:&lt;/em&gt; (3) used as standard namespace for all Axd-documents by default:&lt;br /&gt;
#define.DocumentNameSpace(&#39;http://schemas.microsoft.com/dynamics/2008/01/documents&#39;)&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;Services nodes&lt;/u&gt;&lt;/strong&gt;&amp;nbsp;(2) &lt;a href=&quot;http://msdn.microsoft.com/en-US/library/bb629443.aspx&quot;&gt;as described on msdn&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS09UtaW-2jGVcWVRqZfw_UmclNApqKpWV1vSTa16vaHrEJvCmLVEpOa63bidX6e-f0K4JyR4N-RHIdsUIvuHsHZ3ODjVrMFFFcf1qy4-PTExDTPDcjxxG2Txr2EozE-QHbY7DMrCWj7o/s1600/Aif-service-namespace.png&quot; imageanchor=&quot;1&quot; style=&quot;height: 117px; margin-left: 1em; margin-right: 1em; width: 695px;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;130&quot; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS09UtaW-2jGVcWVRqZfw_UmclNApqKpWV1vSTa16vaHrEJvCmLVEpOa63bidX6e-f0K4JyR4N-RHIdsUIvuHsHZ3ODjVrMFFFcf1qy4-PTExDTPDcjxxG2Txr2EozE-QHbY7DMrCWj7o/s640/Aif-service-namespace.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;strong&gt;&lt;u&gt;X++&lt;/u&gt;&lt;/strong&gt; (4)&amp;nbsp;the default Axd-document namespace&amp;nbsp;in the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa847839.aspx&quot;&gt;AxdBase&lt;/a&gt;-class by the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc519029.aspx&quot;&gt;getNamespace()&lt;/a&gt;-method&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirPUq_YZB_svSTvWnbi_i5kBIMsR9ilP5Cg72dX32gd5gBwBNU-slhF5N4fbEvqLs2SI2XJMCKNvBChafoLvRbhtVdTrIVt5ow41ptz1OjK-ekLxwx2WIrI1oXQ7edVPfS4XyE6XmdFdw/s1600/Aif-document-default-namespace.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;173&quot; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirPUq_YZB_svSTvWnbi_i5kBIMsR9ilP5Cg72dX32gd5gBwBNU-slhF5N4fbEvqLs2SI2XJMCKNvBChafoLvRbhtVdTrIVt5ow41ptz1OjK-ekLxwx2WIrI1oXQ7edVPfS4XyE6XmdFdw/s640/Aif-document-default-namespace.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
(4) if the Axd-document namespace&amp;nbsp;can be overridden in the Axd-class:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZiTDMnWHo7nql6kGEzZ7FJgrMz4e4I4sMwMH7NnOq20SWnjRJEq6pUirRnUJ4oTmBPAnJxeosUwUBPIoG3c1ybBcWDm_jDcUoT9T2HU4M0cKEA0kqeJNbcl0BqutLNjoILHBpQn5V52M/s1600/Aif-document-namespace.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; n4=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZiTDMnWHo7nql6kGEzZ7FJgrMz4e4I4sMwMH7NnOq20SWnjRJEq6pUirRnUJ4oTmBPAnJxeosUwUBPIoG3c1ybBcWDm_jDcUoT9T2HU4M0cKEA0kqeJNbcl0BqutLNjoILHBpQn5V52M/s400/Aif-document-namespace.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/1818422724293987947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2010/12/namespaces-in-aif-xml-messages.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1818422724293987947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/1818422724293987947'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2010/12/namespaces-in-aif-xml-messages.html' title='Namespaces in Aif Xml-messages'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsqtEhHLc5oCQrXA5x_g51f4f19NQdd604y011fZa-FrSgp8hE0WeduP1uehgly3uG447l9CqwqngjuceMzESIbZofQHM2pzjKG6FXkvzEfHPdT0IZQcrf3sywqQO65EuTFdIY2AmYtsg/s72-c/Aif-namespaces.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-6266424608486361388</id><published>2010-11-11T07:01:00.000-08:00</published><updated>2011-07-17T13:05:27.722-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>AIF surprises with verbose responses...</title><content type='html'>The title could also be &quot;AIF security whole&quot;, but I choosed the understatement ;-)&lt;br /&gt;
&lt;br /&gt;
Using QueryCriteria to filter can result in returning all data it you do an error in your request. To describe this, lets take the standard AddressService and do a find request by using the FileSystemAdapter. Here&#39;s a correct requst example:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml:nocontrols&quot; name=&quot;code&quot;&gt;&lt;envelope xmlns=&quot;http://schemas.microsoft.com/dynamics/2008/01/documents/Message&quot;&gt;
 &lt;header&gt;
  &lt;messageid&gt;{DD112222-0306-1220-0001-DD33444455DD}&lt;/messageid&gt;
  &lt;sourceendpointuser&gt;DYNAMICS\Administrator&lt;/sourceendpointuser&gt;
  &lt;sourceendpoint&gt;Sample&lt;/sourceendpoint&gt;
  &lt;destinationendpoint&gt;Contoso&lt;/destinationendpoint&gt;
  &lt;action&gt;http://schemas.microsoft.com/dynamics/2008/01/services/AddressService/find&lt;/action&gt;
  &lt;conversationid&gt;&lt;/conversationid&gt;
 &lt;/header&gt;
 
  &lt;messageparts xmlns=&quot;http://schemas.microsoft.com/dynamics/2008/01/documents/Message&quot;&gt;
&lt;querycriteria xmlns=&quot;http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria&quot;&gt;
 &lt;criteriaelement&gt;
  &lt;datasourcename&gt;Address&lt;/datasourcename&gt;
  &lt;fieldname&gt;Name&lt;/fieldname&gt;
  &lt;operator&gt;Equal&lt;/operator&gt;
  &lt;value1&gt;Sit*&lt;/value1&gt;
  &lt;value2&gt;&lt;/value2&gt;
 &lt;/criteriaelement&gt;
&lt;/querycriteria&gt;
  &lt;/messageparts&gt;
 
&lt;/envelope&gt;
&lt;/pre&gt;&lt;br /&gt;
Now the QueryCriteria does contain an error (I removed the CriteriaElement):&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml:nocontrols&quot; name=&quot;code&quot;&gt;&lt;envelope xmlns=&quot;http://schemas.microsoft.com/dynamics/2008/01/documents/Message&quot;&gt;
 &lt;header&gt;
  &lt;messageid&gt;{DD112222-0306-1220-0001-DD33444455DD}&lt;/messageid&gt;
  &lt;sourceendpointuser&gt;DYNAMICS\Administrator&lt;/sourceendpointuser&gt;
  &lt;sourceendpoint&gt;Sample&lt;/sourceendpoint&gt;
  &lt;destinationendpoint&gt;Contoso&lt;/destinationendpoint&gt;
  &lt;action&gt;http://schemas.microsoft.com/dynamics/2008/01/services/AddressService/find&lt;/action&gt;
  &lt;conversationid&gt;&lt;/conversationid&gt;
 &lt;/header&gt;
 
  &lt;messageparts xmlns=&quot;http://schemas.microsoft.com/dynamics/2008/01/documents/Message&quot;&gt;
&lt;querycriteria xmlns=&quot;http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria&quot;&gt;
  &lt;datasourcename&gt;Address&lt;/datasourcename&gt;
  &lt;fieldname&gt;Name&lt;/fieldname&gt;
  &lt;operator&gt;Equal&lt;/operator&gt;
  &lt;value1&gt;Sit*&lt;/value1&gt;
  &lt;value2&gt;&lt;/value2&gt;
 &lt;/querycriteria&gt;
  &lt;/messageparts&gt;
 
&lt;/envelope&gt;
&lt;/pre&gt;&lt;br /&gt;
Normally this cannot be validated because it is not conform to the schema &lt;br /&gt;
defined in the QueryCriteria.xsd. The QueryCriteria elemet riquires to have at least one CriteriaElement:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;xml:nocontrols&quot; name=&quot;code&quot;&gt;&lt;schema elementformdefault=&quot;qualified&quot; targetnamespace=&quot;http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria&quot; xmlns:xsd=&quot;http://www.w3.org/2001/XMLSchema&quot; xmlns=&quot;http://schemas.microsoft.com/dynamics/2006/02/documents/QueryCriteria&quot;&gt;


    &lt;element name=&quot;QueryCriteria&quot; type=&quot;QueryCriteria&quot;&gt;&lt;/element&gt;            
    
    &lt;complextype name=&quot;QueryCriteria&quot;&gt;
        &lt;sequence maxoccurs=&quot;unbounded&quot; minoccurs=&quot;1&quot;&gt;
            &lt;element name=&quot;CriteriaElement&quot; type=&quot;CriteriaElement&quot;&gt;&lt;/element&gt;
        &lt;/sequence&gt;
    &lt;/complextype&gt;

    &lt;complextype name=&quot;CriteriaElement&quot;&gt;
        &lt;sequence&gt;
            &lt;element name=&quot;DataSourceName&quot; type=&quot;xsd:string&quot;&gt;&lt;/element&gt;
            &lt;element name=&quot;FieldName&quot; type=&quot;xsd:string&quot;&gt;&lt;/element&gt;
            &lt;element name=&quot;Operator&quot; type=&quot;Operator&quot;&gt;&lt;/element&gt;
            &lt;element name=&quot;Value1&quot; type=&quot;xsd:string&quot;&gt;&lt;/element&gt;
            &lt;element minoccurs=&quot;0&quot; name=&quot;Value2&quot; type=&quot;xsd:string&quot;&gt;&lt;/element&gt;
        &lt;/sequence&gt;
    &lt;/complextype&gt;

    &lt;simpletype name=&quot;Operator&quot;&gt;
        &lt;restriction base=&quot;xsd:string&quot;&gt;
            &lt;enumeration value=&quot;Equal&quot;&gt;&lt;/enumeration&gt;
            &lt;enumeration value=&quot;NotEqual&quot;&gt;&lt;/enumeration&gt;
            &lt;enumeration value=&quot;Greater&quot;&gt;&lt;/enumeration&gt;
            &lt;enumeration value=&quot;GreaterOrEqual&quot;&gt;&lt;/enumeration&gt;
            &lt;enumeration value=&quot;Less&quot;&gt;&lt;/enumeration&gt;
            &lt;enumeration value=&quot;LessOrEqual&quot;&gt;&lt;/enumeration&gt;
            &lt;enumeration value=&quot;Range&quot;&gt;&lt;/enumeration&gt;
        &lt;/restriction&gt;
    &lt;/simpletype&gt;

&lt;/schema&gt;
&lt;/pre&gt;&lt;br /&gt;
But instead of not validating the document of the request, AIF decides to return all data. This behavior can be reproduced on any standard or custom AIF document service.&lt;br /&gt;
&lt;br /&gt;
It is very likely that the Aif-services do not validate incoming Xml messages (as it is configurable for outgoing messages!) for performance reasons, but it should be possible to configure this nevertheless.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/6266424608486361388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2010/11/aif-surprises-with-verbose-responses.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6266424608486361388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6266424608486361388'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2010/11/aif-surprises-with-verbose-responses.html' title='AIF surprises with verbose responses...'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-8753924396727007521</id><published>2010-11-08T12:46:00.000-08:00</published><updated>2011-07-17T13:05:34.480-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>Dyanmics Ax 2009 AIF message</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;Here is a simple schema of the&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa627117.aspx&quot;&gt;AIF message structure&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;based on the&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/bb629440.aspx&quot;&gt;Dynamics Ax 2009 AIF Xsd-schemas&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;:&lt;/span&gt;&lt;img alt=&quot;&quot; border=&quot;0&quot; id=&quot;BLOGGER_PHOTO_ID_5537278044957229618&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzN9uR4FvYSAQPs4PG_RqdyNIPxHDevAjxOj4s5qYEsJijyLE3BrK9TUVoHZsfu6hHyipA6VwCfeHJg6qmY1k0m_0vvqXmtZQ3ptn39HgI3fkFAXYNlJM1czcd-BchusX3UIaZ2-CWT2A/s400/AIF+-+Message.jpg&quot; style=&quot;cursor: pointer; display: block; font-family: Georgia, serif; font-size: 16px; height: 368px; margin: 0px auto 10px; text-align: center; width: 390px;&quot; /&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;The two principle elements of an AIF message are the&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa872025.aspx&quot;&gt;message header&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;and the&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa865166.aspx&quot;&gt;message body&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;All elements in the schema with exception of the &quot;any&quot; element (part of the message body) are explicitly defined by a Microsoft namespace (like http://schemas.microsoft.com/dynamics/...). The custom schema (by default deduced from the document underlying query) need to be explicitly defined by its own namespace. A namespace will define the service by default by its editor (like schemas.microsoft.com), its version (defined by its creation date: yyy/mm) and its purpose: the name of the service. This might be for example: http://yourcompany.com/2010/11/services/YourCustomService&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;The&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa864923.aspx&quot;&gt;AIF actions&lt;/a&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Georgia, serif; font-size: 16px;&quot;&gt;are associated to the namespace of the message. A message header might for example look like this:&lt;/span&gt;&lt;br /&gt;
&lt;pre class=&quot;xml:nocontrols&quot; name=&quot;code&quot;&gt;&lt;header&gt;
        &lt;messageid&gt;{3B7C23AB-B0EF-4C35-8DC6-481574080F62}&lt;/messageid&gt;
        &lt;sourceendpoint&gt;Default&lt;/sourceendpoint&gt;
        &lt;destinationendpoint&gt;Default&lt;/destinationendpoint&gt;
        &lt;action&gt;http://yourcompany.com/2010/11/services/YourCustomService/read&lt;/action&gt;
        &lt;requestmessageid&gt;{C8111B69-9786-4BB4-9A03-D0BE847F4C3C}
            &lt;/requestmessageid&gt; 
&lt;/header&gt;
&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/8753924396727007521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2010/11/here-is-simple-schema-of-aif-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/8753924396727007521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/8753924396727007521'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2010/11/here-is-simple-schema-of-aif-message.html' title='Dyanmics Ax 2009 AIF message'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzN9uR4FvYSAQPs4PG_RqdyNIPxHDevAjxOj4s5qYEsJijyLE3BrK9TUVoHZsfu6hHyipA6VwCfeHJg6qmY1k0m_0vvqXmtZQ3ptn39HgI3fkFAXYNlJM1czcd-BchusX3UIaZ2-CWT2A/s72-c/AIF+-+Message.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-58801177364758502</id><published>2010-10-11T06:30:00.001-07:00</published><updated>2011-07-17T13:05:47.198-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="troubleshooting"/><title type='text'>Listing changed objects in a rollup</title><content type='html'>Once a rollup archive has been decompressed, a manifest file is accessible in the root-directory of the extracted files. In the RU5 for the SP1 (KB982812) this file is called “dynamicsax2009-kb982812-sp1-manifest.xml”. So far so good. Unfortunately this manifest file can be very large and is over 1GB for the RU. This because the file contains not only the changes, but also all dependencies, with makes this file so verbose.&lt;br /&gt;
&lt;a href=&quot;http://www.dittgen.net/florian/TransformTool.zip&quot;&gt;The TransformTool&lt;/a&gt; is very simple tool and might help you working with these data by transforming the original manifest data into a much less verbose xml-file:&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTeMQbK5oBqZSZwvzC5Fd4Ks8NylhJEFoBCcfo80uumMHtgqA3Pi4tTaq4Jqrerm8tefVKpA1hgpeFailpWGd4PQ3Y16baLY0T4MMKsPPdlJw95HhhmQR62b4q19n6PxFx41J9FCFC4ug/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline; margin-left: auto; margin-right: auto;&quot; title=&quot;image&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Screenshot of the tool&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;The transformed xml-data do not contain the dependencies and can now be opened in Excel. The Xslt-file that is used for the transformation is:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:stylesheet&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;version&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;2.0&quot;&lt;/span&gt; 
&lt;span class=&quot;attr&quot;&gt;xmlns:xsl&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;http://www.w3.org/1999/XSL/Transform&quot;&lt;/span&gt; 
&lt;span class=&quot;attr&quot;&gt;xmlns:xs&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;http://www.w3.org/2001/XMLSchema&quot;&lt;/span&gt; 
&lt;span class=&quot;attr&quot;&gt;xmlns:fn&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;http://www.w3.org/2005/xpath-functions&quot;&lt;/span&gt; 
&lt;span class=&quot;attr&quot;&gt;exclude-result-prefixes&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;xs fn xsl&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:output&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;method&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;xml&quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;encoding&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;utf-8&quot;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;omit-xml-declaration&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;yes&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:template&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;match&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;/&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;changes&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;//manifest&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;hotfix&quot;&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:variable&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&#39;kb&#39;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;./@id&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;changes&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;layer&quot;&lt;/span&gt; &lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:variable&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&#39;layerId&#39;&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;./@id&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;change&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;change&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;   
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;kb&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:value-of&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;$kb&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;layer&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:value-of&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;$layerId&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;object&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:value-of&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;./@object&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:if&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;test&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;./@method&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;method&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:value-of&lt;/span&gt; &lt;span class=&quot;attr&quot;&gt;select&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;=&quot;./@method&quot;&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;/&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:attribute&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;                            
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:if&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;change&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:for-each&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;changes&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:template&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;
&lt;span class=&quot;kwrd&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;html&quot;&gt;xsl:stylesheet&lt;/span&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre class=&quot;csharpcode&quot;&gt;&lt;span class=&quot;kwrd&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhu2laJU6-T4z3ewbYLRhvlcks7iRF2tzrqu9rPuvMuhm05z97A9KiaDAWMTEsX8ucV9TJZItbs3t_5w8JQUCyuH9l5l3qaddPiZVZ1s0lPzN5TCLGpa-rzq2jnPKgfgXVRjsNiiTCzV1M/?imgmax=800&quot; style=&quot;border: 0px none; display: inline; margin-left: auto; margin-right: auto;&quot; title=&quot;image&quot; width=&quot;614&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The generated Xml-file&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiArbHFBozyQKv0waxeJ8f0248Fnp45Bi7k4GyGTlbECj0CogiA3TiAflxQj2GpdC5bF5rUAMYCjaWdY_01q8m1TOsQ3x_MMvAhkQKv_6CbpIul0V-xWE55ylxV5EGUX3i2r75wRrWA3DE/s1600-h/image%5B4%5D.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
Opening this Xml-file in Excel will look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; height=&quot;297&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgViZvucW_ThXxfWf8t54TQ78lBdfxRuoqZQ5gNEQm1TGHzC4EAwfdxrL-1KYpq7O1cZ0RuAwj7PraU6I_UWFepNLrkmS4anGmu2y7onA2EZjE_7QFy7mBZEB4-8KRnarlqQHpggPyUxnM/?imgmax=800&quot; style=&quot;border-width: 0px; display: inline; margin-left: auto; margin-right: auto;&quot; title=&quot;image&quot; width=&quot;529&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The Xml data imported in Excel&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;pre&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju4tBmRs83RBDUWlsAiYsGTlycZemBXi8iCnqFAvkkggeWSRY_f9N1qqoIM8G4ICBF0BbQlBxRuetHjv_ppo2uyU8UixFmaGt2Sc6dM5GhN4L_zEfAFRxtdl-hrPj8fkCVm4oTkO98BXQ/s1600-h/image%5B7%5D.png&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt; &lt;/pre&gt;&lt;br /&gt;
which makes it now possible to filter, sort…&lt;br /&gt;
&lt;br /&gt;
Hope this might help ;-)&lt;br /&gt;
&lt;br /&gt;
PS (01/10/2010):&lt;br /&gt;
Excel needs the meta-tag:&lt;br /&gt;
&lt;br /&gt;
to display the Xml-data correctly formatted. If you need the Xml in a formatted, easy to read format, open the Xml in Visual Studio, select the whole content (Ctrl+A) and format the Xml (Ctrl+K+F). Just keep the Ctrl button pressed and press first &quot;K&quot; and then &quot;F&quot;.</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/58801177364758502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2010/10/listing-changed-objects-in-rollup.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/58801177364758502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/58801177364758502'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2010/10/listing-changed-objects-in-rollup.html' title='Listing changed objects in a rollup'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjTeMQbK5oBqZSZwvzC5Fd4Ks8NylhJEFoBCcfo80uumMHtgqA3Pi4tTaq4Jqrerm8tefVKpA1hgpeFailpWGd4PQ3Y16baLY0T4MMKsPPdlJw95HhhmQR62b4q19n6PxFx41J9FCFC4ug/s72-c?imgmax=800" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-7495460893525165554</id><published>2010-07-02T08:03:00.001-07:00</published><updated>2011-07-17T13:05:55.156-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><title type='text'>Configuring AIF WebServices with mapped x.509 certificates</title><content type='html'>&lt;p&gt;AIF WebServices needs to be authenticated with a Windows user that is configured in Ax. This can be done &lt;a href=&quot;http://floditt.blogspot.com/2010/06/cross-domain-access-to-aif-webservices.html&quot;&gt;with Ntlm authentication&lt;/a&gt;. If the Ntlm-authentication is not an option, the X.509 authentication can be an alternative. &lt;a href=&quot;http://en.wikipedia.org/wiki/X.509&quot;&gt;X.509&lt;/a&gt; certificates can be mapped easily to a windows account and so makes it possible for the client to authenticate as an Windows-user. &lt;/p&gt;&lt;p&gt;The following snapshots can serve as a simple “how-to”-setup the X.509 certificates for the AIF-WebServices.&lt;/p&gt;&lt;h2&gt;The IIS-configuration&lt;/h2&gt;&lt;p&gt;The anonymous access need to be activated:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguycFAhUMWmbSbg8K3gn9ncIG2hOjy8BEsSAmYaa5heuns84y6yLdi0IYJ6D0s9n2gA6ySnQSUEXKzhnL-qYAK1llaWHZiEgsOj5kYmIbqj0QhPhUorBf2_aicchcPNcjJnpPdlSILcwc/s1600-h/image%5B3%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu7kJmLqhZjCMsXFPqR5cQBvaypHGERxCCmLxXqxOO2w20h7LKY6Ku0Ov-qsiFUJC2dIGvA8K5VePDnawOzKXBlyBrCj2O8xvIOI4HPAI3fgUn6nIQGfxLzUStNivKP8jUFZCUida1f2k/?imgmax=800&quot; width=&quot;270&quot; height=&quot;322&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;The client certificate mapping needs to be activated:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPQsqvVsdNuTU06JWGFxPDvqKSXB37nheGSj0sy2B4ptqQPfx84qV9MdKR-Ucu5be-I2idVMwj8avPwQ7qaA7B6FsEG5Cd-KZui1SCfzEm4zACkXB9wp6xbS94zorsw2-Sx6HgPC1GUyw/s1600-h/image%5B7%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi11DS5HEpuWShvVP8k0BUOSwQWI4OAzsnxuTc4WN1bS9QxSLTBGi6j3DjQ6kjq_w4gXP3w96KvSnSEfNpkQ9OVI58sn-zcUVFz2PlAdZnKeJwwJGE5DfgSoEKxWNijA1Eh2MQIHCjG1x8/?imgmax=800&quot; width=&quot;347&quot; height=&quot;327&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;After selecting the certificate, the certificate needs to be mapped to the Windows-account:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiukn07pkNU4NZ77zIYcfgVjUR2ZPnHF3GwjxW0W6jUfm4tqFg2cYis0zbk7oRiMuxGz16JASU9j9UcbSnEspo-eSoVtjX-Ro827Vo8MVd8bW7ffVIB_nlFUmYCbYdZ1Bxbyl94Hq24i9I/s1600-h/image%5B11%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEip6MwBfZJbnta1y1Gb34S0458l0VWjC1Nik8idgIDcAuKOgMjy__pg-FUkYKOoMprpi5A4zI0mp0WY06lUXchcbZovmUgpQsQwdEsIjUMbM6kYZmP-bkXhj_DATchTJwUmZ9xWZZuJydw/?imgmax=800&quot; width=&quot;363&quot; height=&quot;313&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA4NDCgaV-teha_kiP8yzRlhoU9-z0K7BBXLs5qRnHN9n_6gQZKEq93QhvU4Y2Q3jpfh1brdvIYTCMJVt6TuQYAtLA7zG2u1ZSAgDPpnO3MWeOvVvrVBJc2m6k7HROSBperlX5SnDfQjw/s1600-h/image%5B15%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0ZSXNvlb2kY0jIR3SY9-NDa7MbfRaTPMBZyd6wn8MYfN7Hk1_cx18PrAIc32-SPLYoS7kJd6JwL8xYoku_BRXgKYoiwnmWdWiG_9gyxceTqPUe50YBJFDw82NKwj45RHmNAGg59G_wpQ/?imgmax=800&quot; width=&quot;381&quot; height=&quot;291&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;The service configuration:&lt;/h2&gt;&lt;p&gt;The service configuration is configured to authenticate on the transport level:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjH1MijgSWUupNfB_uAjgHyloZv_Bls-DmVx_pNfvw_PrYEg8vu349dMH7EYwNmFKj-rYmz50VlAOgEmuROqrfOYveRDLF-VMkhZJSGsUKrlKDG39ISJ7O95wDGAdJ_xb8wIhg0scAaSGQ/s1600-h/image%5B25%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcidacRdYcpHFtOHGIwPmBajGZJgL7ZtflY3qOYAtP2Rs3UpN-vzn33iPQJgy6M645bEF4e6BY_djpQmk_rPox5zLFaD7fDFpJ97oDqNO_SR8PWT1yjACTTptXa-tkWgb4EJ-f3gyCTDc/?imgmax=800&quot; width=&quot;443&quot; height=&quot;178&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;and the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.servicemodel.security.x509clientcertificateauthentication.mapclientcertificatetowindowsaccount.aspx&quot;&gt;MapClientCertificateToWindowsAccount&lt;/a&gt; attribute is activated:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiN5Mjj3x9VHJO0HgvgqZ106T3ndLpFt_zwaSCdqtm4a1LOvWDpRuywvSJR1zB8BOWQzaxz3mD859HVLWW0GQZ77dPvZfMTPWjxNtBgWQXoLu3GJkhA8eTg6QsiLzxePIl7JqjO_M8lwX8/s1600-h/image%5B19%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSDQQf1PNKQJmu5IiFIt6Cqo0KtZ33136MnZzVfSouMZ7V3nRHrKASKphfhv_RmLShMXXmkFWV64VN8UeaVU-FtxhBfaBSUxvA6vC5G9B47r4dFh5vYQKZgXXKDt24YS_qOTayhE_OWTs/?imgmax=800&quot; width=&quot;439&quot; height=&quot;138&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;h2&gt;The client configuration:&lt;/h2&gt;&lt;p&gt;The client authentication is configured for transport:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVVjg3YD7IChxRKX1KT3PSG52ljlbEghM-DvmbH4rvoijJHk1a8KE1jeHk8bnGFW-jW6-2taOgt9G_rixT_1tGuCFKWdG3Yek6MXP1LTdsKls4GQuV1Mp3CIUDyqq6aGndvwgQ4IJDV5g/s1600-h/image%5B30%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5GY_ZYtHFrNvjIdlEzukytVybdrehxCCKxyTz-Z8t5JoZoWQqA57sjdICeYG910_Hb7_fd00dASy4_uT65_mWg4_PHcT7D479tCAM_TZofUrIiL_owseZBIR6UsuAzFw2VImQqY45WWw/?imgmax=800&quot; width=&quot;526&quot; height=&quot;150&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;And the configuration points to the X.509 certificate. The clientCertificate-element is &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms576346.aspx&quot;&gt;documented on msdn&lt;/a&gt;.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3kC8wtP5oxsBJGjcvhf02B-nU7-8uJWxffz7iFeIJxN2slB_Oue1E4fZTbGC959wWOK_i4Q6VcEMK43frpiVsgkTpRs6IvvNpDYueo_VmG6LAgKQEGxyZvgFd_yYuGb3WE09ogJ1OpII/s1600-h/image%5B34%5D.png&quot;&gt;&lt;img style=&quot;border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px&quot; class=&quot;wlDisabledImage&quot; title=&quot;image&quot; border=&quot;0&quot; alt=&quot;image&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqtMQO9qFS14xaUSRWYbzb9cBXKoBxMKqUl3Y11PLsWxq8TnHBF3N1PFeiOVQZ_IW-v9Lzm9qpBMzjBv_8Hrs6_QOnzycWl4nujJuZ4s5qFTcNTo1vwhwSFKuNDodFA2AfPLQtaqft1LI/?imgmax=800&quot; width=&quot;524&quot; height=&quot;156&quot;&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;If your are using a dummy-certificate, you need to implement the &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/system.net.security.remotecertificatevalidationcallback.aspx&quot;&gt;RemoteCertificateValidationCallback&lt;/a&gt; in the client application as described &lt;a href=&quot;http://floditt.blogspot.com/2010/06/consuming-aif-webservices-wshttpbinding.html&quot;&gt;in this article&lt;/a&gt;.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/7495460893525165554/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2010/07/configuring-aif-webservices-with-mapped.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7495460893525165554'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/7495460893525165554'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2010/07/configuring-aif-webservices-with-mapped.html' title='Configuring AIF WebServices with mapped x.509 certificates'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiu7kJmLqhZjCMsXFPqR5cQBvaypHGERxCCmLxXqxOO2w20h7LKY6Ku0Ov-qsiFUJC2dIGvA8K5VePDnawOzKXBlyBrCj2O8xvIOI4HPAI3fgUn6nIQGfxLzUStNivKP8jUFZCUida1f2k/s72-c?imgmax=800" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5105267482422907994.post-6137198078408584504</id><published>2010-07-01T07:22:00.001-07:00</published><updated>2016-01-23T00:54:25.988-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIF"/><category scheme="http://www.blogger.com/atom/ns#" term="architecture"/><title type='text'>Testing AIF-WebServices with soapUI</title><content type='html'>The open-source project &lt;a href=&quot;http://sourceforge.net/projects/soapui/&quot;&gt;soapUI&lt;/a&gt; (from &lt;a href=&quot;http://www.eviware.com/soapUI/soapui-products-overview.html&quot;&gt;eviware&lt;/a&gt;) is probably the most complete and easiest to use soap testing suite and it’s free. It is a great tool to test AIF-WebServices, too. &lt;br /&gt;
Authenticating AIF-Services is in most cases configured to be authenticated with Windows credentials and so with NTLM. So far soapUI only supports NTLMv1 and because of this you need to be sure that your server does support the NTLMv1 which is configured with the &lt;a href=&quot;http://technet.microsoft.com/en-us/library/cc960646.aspx&quot;&gt;LmCompatibilityLevel&lt;/a&gt; property in the HKLM\SYSTEM\CurrentControlSet\Control\Lsa hive.&lt;br /&gt;
Configuring soapUI for authenticating with Ntlm is quite easy and &lt;a href=&quot;https://www.soapui.org/soap-and-wsdl/authenticating-soap-requests.html&quot;&gt;well documented&lt;/a&gt;. &lt;br /&gt;
To authenticate with Ntlm to an AIF-WebService you just need to configure the username, password and domain:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBDKpf7k6s66sKoJdwvi1yc1XVTkAVEkIvev0T1oakVnaOK_dgzb04TJAj4Z57yVldrFD-LU5X9D1VFQsJ9hlZux0xej9sO38p90vvOVeYnQBvuKv7MN0-DAixAx0rpKa0v3-CwcKY-5g/s1600-h/image%5B8%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; class=&quot;wlDisabledImage&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwHFhOk0xOLXNHWQwlC_etU9_B0NNOaAiVazuhX0qNaEzFvHH1yhMlaxUcgJj6A3YYybi1ly5lAE8dVrm7c8XZcCdBs0QknTYtAzSEiPEko59EK2ZaRigPjMXCoQ3RRUxRRqamlbi54xY/?imgmax=800&quot; height=&quot;181&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;367&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
and the WS-A the default wsa:To:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMoES-_WqF24cL3b47L7RnktnyptJWDj34b3vPRbd55ATT5wMQmyt-9I-FyK2YRkqjC4YIMvr92E1kSoNxO1PN1-_H6chcn9KPL05gfsknGcm_W0_TIND9kO6x02m_2AljONqJHh5g9gM/s1600-h/image%5B13%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; class=&quot;wlDisabledImage&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgt4sOcpkmiZUXSgDNbG3WrL4MLFv2WePFfIHfhq8ktFfhNHk3IAKFeqnXo4_mImCQCsinqNda2zzy5S1Kvjx3bs1Hi6XESp0q8RqzKNJ7E0_AzOvxwzn2-Q0P8P-7KnmQlLHf3Kufys0w/?imgmax=800&quot; height=&quot;185&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;367&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
On the server side the binding needs to be configured for Ntlm-authentication on transport level. This is by default set to “Windows”:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhjfIiaFPaCzlYbHwgaa3QczgOrmQkNSbgTGVgvEuS9YVhVuYpIWr4lp2xw631_gWsJwUi3FfNM6kuw23ZIfTFFifRWlzDnZOL7w-jG37Z0kUMGPjBU5AXhrpcoAPttenSzf8m5BN5RKIw/s1600-h/image%5B4%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; class=&quot;wlDisabledImage&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj97jbs0kSiff_v1DOELVdfFe4FnZsELt5HuyI2AWnkAQSQ7Dv7NQvQQqkGiRBkeVVdKsVWLJFJCMSlQSJhqkKwCfHKBuNQNRZ-D-3oHGkSLN84ywa3TkhAgQUVAQJFFZHG20OPkYRVZdk/?imgmax=800&quot; height=&quot;174&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;393&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
Now soapUI can consume the AIF-WebService:&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2ipGbsAAFF5hpFX62x9STXEdkSJEkXcCOeVY9tVmiA6Hl9MIwiLvvOdAWnf1qfAWrO2f229fbapp1ABSDusia3m5rlFuXwqBTSJ55-UWfhCi8o4w0P3waPRxcO8rWCja5CIk7MIt5dX4/s1600-h/image%5B18%5D.png&quot;&gt;&lt;img alt=&quot;image&quot; border=&quot;0&quot; class=&quot;wlDisabledImage&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdsnQTMIcpsZZRPjK_0N-LD5j_-4GCTF3DFbVX5oPLZVp7JWYBoK_XpKSa5vRd0BHIKXGxGVdYcrrCxLRJ4kvPIMTpgCAt-7USCrNUjoWUYUdw8i6ZtHQfKoPjOYEueHiwiyj34v_EyOg/?imgmax=800&quot; height=&quot;297&quot; style=&quot;border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;&quot; title=&quot;image&quot; width=&quot;792&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://floditt.blogspot.com/feeds/6137198078408584504/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://floditt.blogspot.com/2010/07/testing-aif-webservices-with-soapui.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6137198078408584504'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5105267482422907994/posts/default/6137198078408584504'/><link rel='alternate' type='text/html' href='http://floditt.blogspot.com/2010/07/testing-aif-webservices-with-soapui.html' title='Testing AIF-WebServices with soapUI'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/15472395080068179790</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiwHFhOk0xOLXNHWQwlC_etU9_B0NNOaAiVazuhX0qNaEzFvHH1yhMlaxUcgJj6A3YYybi1ly5lAE8dVrm7c8XZcCdBs0QknTYtAzSEiPEko59EK2ZaRigPjMXCoQ3RRUxRRqamlbi54xY/s72-c?imgmax=800" height="72" width="72"/><thr:total>15</thr:total></entry></feed>