Click here to load reader
View
245
Download
5
Embed Size (px)
AIF Stuff
Table of Contents AIF Stuff .............................................................................................................................................................................................. 1
Creating Custom Dynamics AX Services ............................................................................................................................................ 2
How to: Add a Service Operation to a Service .................................................................................................................................... 5
Refresh the Service in the AOT .................................................................................................................................................. 6
Refresh the Service in the Services Form .................................................................................................................................. 6
Document Class Service Operations ................................................................................................................................................... 6
Document Services Classes ................................................................................................................................................................ 8
AIF Class Naming Conventions ......................................................................................................................................................... 11
About Service Classes ...................................................................................................................................................................... 12
Document Data Object Class ................................................................................................................................................... 14
Data Object Classes ................................................................................................................................................................. 14
Data Object Methods ................................................................................................................................................................ 14
About Axd Classes ........................................................................................................................................................ 15
Functions of Axd Classes ................................................................................................................................ 16
About Ax Classes ................................................................................................................................................................. 18
Schemas ........................................................................................................................................................................................... 20
Inbound Read Message ............................................................................................................................................................ 21
Inbound Update Message ......................................................................................................................................................... 22
Document XML Generation ............................................................................................................................................................... 24
String ........................................................................................................................................................................................ 26
Integer ...................................................................................................................................................................................... 27
Int64 .......................................................................................................................................................................................... 27
Real .......................................................................................................................................................................................... 27
Date .......................................................................................................................................................................................... 27
DateTime .................................................................................................................................................................................. 27
Enum ........................................................................................................................................................................................ 27
GUID ......................................................................................................................................................................................... 27
Container .................................................................................................................................................................................. 27
Guidelines for Adding Code to Document Service Classes ............................................................................................................... 28
Duplicates ................................................................................................................................................................................. 28
References ............................................................................................................................................................................... 28
Transaction Veracity ................................................................................................................................................................. 29
Outbound Exchange Business Logic ........................................................................................................................................ 29
Data Validation ......................................................................................................................................................................... 30
References ............................................................................................................................................................................... 30
Cache Methods ........................................................................................................................................................................ 30
AIF Messages ................................................................................................................................................................................... 30
Message Header ............................................................................................................................................................................... 31
Action and Data Policies ........................................................................................................................................................... 32
Tag: Service Class .................................................................................................................................................... 33
Tag: Service Operation .............................................................................................................................................. 33
Message Body ................................................................................................................................................................................... 34
Tags in the of Inbound ................................................................................................................................................. 34
Tags in the of Outbound .............................................................................................................................................. 35
Tag.................................................................................................................................................................. 36
Tag ....................................................................................................................................................................... 36
Tag .................................................................................................................................................... 37
Tag .................................................................................................................................................................... 37
Tag ................................................................................................................................................................. 37
Tag .............................................................................................................................................................. 37
General XSDs ........................................................................................................................................................................... 37
Entity-Specific XSDs ................................................................................................................................................................. 38
Query Criteria Overview ..................