Chapter 9: XML document integration (1)-Overview

Source: Internet
Author: User

[Translation]
AIF is a very interesting stuff. I recently read some documents about AIF after work. <inside Mircrosoft dynamics ax 4.0> Chapter 9 of this book includes XML document integration, try to translate it. This chapter only describes how to use the XML document framework to provide XML document interfaces for ax, not all of which are provided by AIF.
This article is only intended for ax practitioners and fans to learn and communicate with each other. Please do not repost this article. Due to the limited level of the author, errors are inevitable and I hope you will not give me any further advice.
Content of this Chapter
Introduction
AIF Architecture Overview
XML structure
Axbase API
Axinternalbase API
Query
Axd wizard
Customize existing XML documents
Entity key
Sending framework
Summary
Purpose of this Chapter
Describes the level of the axdbase and axinternalbase classes.
Axd wizard Introduction
Describes how to customize an ax4.0xml document.
Explains how to send an XML document to a cooperator that is not known during encoding through the sending framework
Discuss the security issues involved in receiving and issuing XML documents in ax
Introduction
In ax4.0, AIF replaced the commerce gateway as a way to exchange e-commerce documents. To provide extensive support for B2B collaboration, AIF supports interaction with application inheritance platforms such as Microsoft BizTalk server2006. It can also integrate enterprise applications through various communication methods, including MSMQ and WebServices.
AIF relies on the XML document framework to provide XML document interfaces for ax. The XML document framework consists of two X ++ class levels:
1. Ax document class (axd class) presents data as electronic documents. They enable users not to understand the complex table structure and related business logic at the underlying layer, but also to escalate error handling from a single table and field to a document level. In addition, the axd class provides methods to serialize an object into an XML document and implement a document class in an XML document when performing value ing and data filtering. Axd can also automatically generate XML Schema Based on the query in AOT.
2. Ax <Table> has a relationship with the table in ax, so that you do not have to pay attention to the underlying business logic and complex default settings for the table. Ax <Table> makes the call Program You do not need to set fields in a certain order or repeat the business logic for the table. Therefore, the axd class always uses ax <Table> to operate ax database tables.
Overview of the AIF framework
As shown in Figure 9-1 of the AIF framework, there are two main components: transport and transaction logic exposure, it seems that it is not appropriate to translate the transaction logic to the customer, but it is strange to translate it into exposure ). This chapter focuses on transaction logic exposure. You need to modify new documents or default settings.

Figure 9-1: AIF architecture. The following section describes the business logic and the transport layer.
The Design of ax business logic mainly includes two types: axinternalbase and axdbase. The axinternalbase class hierarchy can be seen as an extension of table functions. Custom classes inherit the attributes and settings of the table. To meet your requirements, you must apply additional business logic and verification. Ax4.0 axinternalbase subclass mainly implements verification, Value Replacement and default value setting.
The new XML document class inherits the axdbase class, which can be serialized from ax or deserialized XML or serialized to ax. It is also a single entry point for ax to query, read, and create documents. axdbase implements the aifserviceable interface, which allows external access to the inheritance class through the transmission layer of web service or AIF. Figure 9-2 demonstrates the interaction between ax core business functions, XML APIs, XML APIs, And the AIF transport layer.

Figure 9-2 interaction between the document class and the surrounding environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.