Microsoft Dynamics AX 2012 R2 Services


Microsoft Dynamics AX 2012 R2 Services
eBook: $32.99
Formats: PDF, PacktLib, ePub and Mobi formats
$28.05
save 15%!
Print + free eBook + free PacktLib access to the book: $87.98    Print cover: $54.99
$83.04
save 6%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Learn about the Dynamics AX 2012 service architecture
  • Create your own services using wizards or X++ code
  • Deploy your services in a variety of ways using High Availability

Book Details

Language : English
Paperback : 264 pages [ 235mm x 191mm ]
Release Date : March 2014
ISBN : 1782176721
ISBN 13 : 9781782176725
Author(s) : Klaas Deforche, Kenny Saelen
Topics and Technologies : All Books, Enterprise Products and Platforms, Enterprise


Table of Contents

Preface
Chapter 1: Getting Started with Microsoft Dynamics AX 2012 Services
Chapter 2: Service Architecture and Deployment
Chapter 3: AIF Document Services
Chapter 4: Custom Services
Chapter 5: The SysOperation Framework
Chapter 6: Web Services
Chapter 7: System Services
Chapter 8: High Availability
Chapter 9: Tracing and Debugging
Appendix: Installing the Demo Application
Index
  • Chapter 1: Getting Started with Microsoft Dynamics AX 2012 Services
    • Introducing services and SOA
      • Example implementations
        • Bing API
        • Mobile application
        • Business Process Modeling (BPM)
    • Architectural overview
    • New and enhanced features
      • The 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
        • The query service
        • The metadata service
        • The user session service
        • The OData query service
      • Choosing the right service for the job
        • Complexity
        • Flexibility
    • Summary
  • Chapter 2: Service Architecture and Deployment
    • Introducing 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
        • Enhanced ports
    • Bindings
    • Adapters
      • The NetTcp adapter
      • The HTTP adapter
      • The filesystem adapter
      • The MSMQ adapter
      • The Windows Azure Service Bus 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
  • Chapter 3: AIF Document Services
    • Introducing document services
    • Key components
      • The document query
      • The document class
        • Responsibilities of a document class
      • AxBC classes
        • Responsibilities of an AxBC class
      • The service class
      • The 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
        • Fixing tasks
        • 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
    • The send service framework
    • Batch processing
    • Summary
  • Chapter 4: Custom Services
    • Key components
      • Attributes
        • Custom services attributes
      • Data contracts
      • Service contracts
      • Collection types
    • Creating custom services
      • The Title service
        • Creating the Title data contract
        • Creating the Title list data contract
        • Creating the Title service class
        • Creating the Title service operation
        • Creating the Title list service operation
        • Creating the Title service contract
    • Deploying services
    • The rental service
      • Rental header and line tables
      • Rental service operations
      • Rental data contracts
      • The createRental service operation
    • Consuming services
      • Example 1 – retrieving titles
        • Adding the service reference
        • Consuming the service
      • Example 2 – registering a rental
        • Creating the service reference – advanced
    • Summary
  • Chapter 5: The SysOperation Framework
    • SysOperation versus RunBaseBatch
    • Creating a SysOperation service
      • The 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
        • ReliableAsynchronous
        • ScheduledBatch
    • 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
        • Linking the UI Builder to the data contract
        • Testing
    • Multithreading
      • The individual task approach
      • The helper approach
      • Enabling multithreading
    • Summary
  • Chapter 6: Web Services
    • Installing Visual Studio tools
    • Visual Studio development
      • Introducing the USA zip code service
      • Creating the Visual Studio proxy library
      • Adding a service reference
    • X++ development
      • Deploying managed code
        • Deploy to Server
        • Deploy to Client
      • Consuming the web service
        • First attempt
        • Fixing configuration issues
        • Deploying between environments
        • Final result
    • Summary
  • Chapter 7: System Services
    • Introducing system services
      • Presenting a demo application
    • The metadata service
      • Filling the combobox
    • The query service
      • Fetching data for the grid
      • Paging the results
    • The user session service
      • Retrieving user information
    • The OData query service
      • Creating and publishing a data source
        • Creating a query
        • Setting up document data sources
      • Consuming the OData query service using Internet Explorer
      • Consuming the OData query service using Visual Studio
        • Adding a service reference
        • Fetching data for the grid
      • Consuming the OData query service using other applications
      • Limitations
    • Summary
  • Chapter 8: High Availability
    • Introducing high availability
      • Adding redundancy
      • Disaster recovery
    • Putting high availability into practice
      • The basic architecture
      • Application-level load balancing
        • Configuring the cluster
        • Adding a dedicated load balancer
      • Network Load Balancing
      • NLB for AX load balancers
      • NLB for services
    • Summary
  • Chapter 9: Tracing and Debugging
    • Installing development tools
    • Using the Microsoft Dynamics AX 2012 debugger
      • Debugging the SysOperation framework
      • Testing service operations
    • Using the Visual Studio debugger
      • Launching Visual Studio
      • Attaching the debugger to the AOS
      • Setting breakpoints
      • Debugging a service call
    • Using the Tracing cockpit
      • Collecting a trace
    • Using the integration port logging mode
      • Configuring the logging mode
      • Consulting the log
    • Using WCF message logging and tracing
      • Configuring message logging and tracing
      • Analyzing service traces
        • Analyzing message logging
        • Analyzing tracing
    • Summary
  • Appendix: Installing the Demo Application
    • Prerequisites
    • Dynamics AX 2012 models
      • Using PowerShell
      • Using AxUtil
    • Dynamics AX XPO file
    • Code snippets
    • Initializing number sequences
    • Visual Studio code
      • Opening the samples
      • Modifying the service references
    • Sample data

Klaas Deforche

Klaas Deforche started working as a developer on Microsoft Dynamics AX in 2007 for the Belgian ICT company RealDolmen, primarily working with Dynamics AX 4.0. He gained experience with AX 2009 while working on projects for some well-known Belgian fashion retailers, especially on the integration side of things. He is currently working on AX 2012 projects for customers in the healthcare sector. Klaas likes to share his knowledge with the community, which is why he started his AX-oriented blog artofcreation.be in 2009. This is also why, in 2012, Klaas co-authored the book Microsoft Dynamics AX 2012 Services, Packt Publishing, to help spread knowledge on the subject.


Kenny Saelen

Kenny Saelen is a Dynamics AX MVP who works for the Belgian ICT company RealDolmen. He started as a developer on Microsoft Dynamics AX in 2004, primarily working on a European customer implementation with Dynamics AX 3.0. At RealDolmen, he gained experience with Dynamics AX 2009 while implementing AX internally, followed by an implementation at a book wholesale company. Currently, he is working as a technical architect for a worldwide customer implementation with Microsoft Dynamics AX 2012 R2, mainly working towards integrating Dynamics AX with other technologies such as SharePoint, BizTalk, and AgilePoint. He can be reached through his blog ksaelen.be.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Microsoft Dynamics AX 2012 R2 Services +    Microsoft Dynamics NAV 2009 Programming Cookbook =
50% Off
the second eBook
Price for both: $47.10

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Use the AIF Document Service Wizard
  • Create custom services in X++
  • Configure enhanced integration ports
  • Deploy services using a variety of protocols
  • Consume your services in .NET
  • Consume external web services in X++
  • Use the SysOperation framework to create batch processes
  • Set up tracing and debugging

In Detail

Enterprise Resource Planning (ERP) systems such as Microsoft Dynamics AX 2012 play a central role in an organization, and therefore, there will always be the need to integrate them with other applications. In many cases, services are the preferred way to do 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 effectively identify where they can be used.

Microsoft Dynamics AX 2012 R2 Services is a hands-on guide that provides you with all the knowledge you will need to implement services with Microsoft Dynamics AX 2012 R2. The step-by-step examples will walk you through many of the tasks that you need to perform frequently when creating and using services. This book has been updated to include features of the R2 release while staying relevant to previous version of Microsoft Dynamics AX 2012.

This book will help 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 face, you will gain practical know-how on to get the job done.

Easy-to-follow instructions are provided for all the 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. These 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.

Microsoft Dynamics AX 2012 R2 Services provides detailed and practical examples for creating and using services that will make it an invaluable resource that you will consult frequently during your implementations.

Approach

This book is a tutorial guide that covers each topic in depth with examples. The step-by-step approach will help you better understand each task as you will have to perform them frequently when utilizing the services.

Who this book is for

If you are a Dynamics AX developer, new or experienced who wants to implement services with Microsoft Dynamics AX 2012, then this book is for you. 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# and .NET, so experience with Visual Studio is a plus but not a must.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software