viernes, 1 de agosto de 2014

AIF new enumaration field value

In the Microsoft MSDN document How to: Update a Service After Adding a Table Field it details the process as to how...  Well, update the AIF web service after adding a new table field.

Adding a new enumeration value, however, this process is thankfully unnecessary.
A shiney new Enum value
No AX classes are required to be updated, therefore just the published service requires to reflect the change.

Navigate to Basic > Setup > Application Integration Framework > Services and click Generate to create the necessary artefacts of all of the selected services that are published.  Don't forget to take a copy of the web.config file beforehand should you have made any necessary changes (example 2).

As a side note, I've been suffering a lot due to the AIF framework recently, and would recommend that if you are considering the option of AIF versus direct access to the database for read-only operation, in AX 2009, go for the latter in many use cases.  I'd recommend a proxy web service to handle the database calls (that includes pagination for example), just like AIF.  AIF isn't bad, it's just not of the same quality code as we're used to - some excellent examples.

No hay comentarios:

Publicar un comentario