Microsoft Dynamics AX 2012 Services
eBook - ePub

Microsoft Dynamics AX 2012 Services

  1. 196 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Microsoft Dynamics AX 2012 Services

Book details
Book preview
Table of contents
Citations

About This Book

In Detail

Because an ERP system like Microsoft Dynamics AX 2012 plays a central role in an organization, there will always be the need to integrate it with other applications. In many cases, services are the preferred way of doing this, and Microsoft Dynamics AX 2012 is now more flexible than ever when it comes to the creation and use of these services. Understanding these services will help you identify where they can be used, and do so effectively.

"Microsoft Dynamics AX 2012 Services" is a hands-on guide that provides you with all the knowledge you will need to implement services with Microsoft Dynamics AX 2012. The step-by-step examples will walk you through many of the tasks that you need to perform frequently when creating and using services.

"Microsoft Dynamics AX 2012 Services" provides detailed and practical examples for creating and using services that will make it a resource you will consult many times during your implementations

This book helps you to identify situations where services can be used for your implementations. By providing step-by-step instructions for many of the common tasks, you will gain practical know-how on to get the job done.

Easy to follow instructions are provided for all types of services you will encounter. You will learn how to create document services using the AIF Document Service Wizard and how to use X++ to create custom services. You will also learn how to deploy services and web services and how you can consume them in both X++ and .NET. The services are also put to use in the SysOperation framework, which uses services to run business logic and is the new way to create batch processes in Microsoft Dynamics AX 2012.

Approach

It's a tutorial guide that provides all the knowledge needed to implement services with Microsoft Dynamics AX 2012.

Who this book is for

This book is aimed at Dynamics AX developers, both new and experienced with services and Microsoft Dynamics AX 2012. A basic understanding of MorphX and X++ is assumed, but the step-by-step instructions are easy to follow even for beginners. Some examples use C#.NET, so experience with Visual Studio is a plus but not a must.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Microsoft Dynamics AX 2012 Services by Klaas Deforche, Kenny Saelen in PDF and/or ePUB format, as well as other popular books in Computer Science & Entreprise Applications. We have over one million books available in our catalogue for you to explore.

Information

Year
2012
ISBN
9781849687546
Edition
1

Microsoft Dynamics AX 2012 Services


Table of Contents

Microsoft Dynamics AX 2012 Services
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why Subscribe?
Free Access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Getting Started with Microsoft Dynamics AX 2012 Services
What are services and SOA?
Example implementations
Bing API
Mobile application
Business Process Modeling (BPM)
Architecture overview
What's new?
AOS WCF service host
WCF adapters
Integration ports
IIS hosting without Business Connector
Non-XML support
AIF change tracking
Custom services
The SysOperation framework
Types of services
Document services
Custom services
System services
Query service
Metadata service
User session service
The right service for the right job
Complexity
Flexibility
Summary
2. Service Architecture and Deployment
What is WCF?
Existing technologies
The ABC of WCF
Service deployment
Service operations
Inbound versus outbound ports
Inbound ports
Outbound ports
Basic versus enhanced ports
Basic ports
Creating a basic port
Enhanced ports
Creating an enhanced port
Adapters
Service operations
Data policies
Transforms
Pipelines
Value mapping
Document filters
Troubleshooting
Security
Bindings
Adapters
NetTcp adapter
HTTP adapter
File system adapter
MSMQ adapter
Custom adapters
Service generation – under the hood
Generated artifacts
Service contract and implementation
Message contracts
WCF configuration storage
The power of CIL
CIL output
Summary
3. AIF Document Services
What are document services?
Key components
Document query
Document class
Responsibilities of a document class
XSD generation
XML serialization and deserialization
Cross-table business logic
Validation and business rule enforcement
AxBC classes
Responsibilities of an AxBC class
Validation
Field sequencing
Value mapping
Default values
Service class
Service node
Creating a document service
Setting the compiler level
Creating the query
Running the AIF Document Service Wizard
Selecting document parameters
Selecting code generation parameters
Generating code
Finishing up
Fixing compiler errors
ClassDeclaration
The cacheObject method
The cacheRecordRecord method
Fixing tasks
Labels
Generating an XSD job
Constraints
Validation
Updating the service contract
Fixing best practice errors
Privileges
Setting mandatory fields
Updating an existing document service
Adding service operations
Updating supporting classes
Deploying a document service
Consuming a document service
Create
Find
Creating query criteria
Using Find
Read
FindKeys
Update
Delete
GetKeys
Document filter
Using GetKeys
GetChangedKeys
Asynchronous communication
Send service framework
Batch processing
Summary
4. Custom Services
Key components
Attributes
Custom services attributes
Data contracts
Service contracts
Collection types
Creating custom services
The Title service
The Title data contract
The Title list data contract
The Title service class
The Title list service operation
The Title list service operation
The Title service contract
Deploy the service
The rental service
Rental header and line tables
Rental service operations
Rental data contracts
The createRental service operation
Consuming the service
Example 1 – Retrieving titles
Adding the service reference
Consuming the service
Example 2 – Register a rental
Creating the service reference – Advanced
Always generate message contracts
Collection type
Consuming the service
Summary
5. The SysOperation Framework
SysOperation versus RunBaseBatch
Creating a SysOperation service
Data contract
Declaration and members
Query helper methods
Service and service operation
Menu item
Testing
Validation
Defaulting
Running a SysOperation service
Service and service operation
Execution modes
Synchronous
Asynchronous
Reliable asynchronous
Scheduled batch
Custom controllers
Usage scenarios
Initializing the data contract
Dialog overrides
Creating a controller
Declaration
The main method
Constructor
Menu item
Testing
Custom UI Builders
Creating a UI Builder
Declaration
The override method
The postBuild method
One more attribute
Testing
Multithreading
Individual task approach
Helper approach
Enabling multithreading
Summary
6. Web Services
Installing the Visual Studio Tools
Visual Studio development
Introducing the USA zip code service
Creating the Visual Studio proxy library
Adding the service reference
X++ development
Managed code deployment
Deploy to Server
Deploy to Client
Consuming the web service
First attempt
Fixing configuration issues
Deploying between environments
Final result
Summary
7. System Services
What are system services?
A demo application
Metadata service
Filling the combobox
Query service
Fetching data for the grid
Paging the results
User session service
Retrieving user information
Summary
Index

Microsoft Dynamics AX 2012 Services

Copyright © 2012 Packt Publishing
All rights reserved. No part of this book may be reprod...

Table of contents

  1. Microsoft Dynamics AX 2012 Services