Creating a service document type

To use the Dynamics GP Service framework, you need to add your document to the framework. To add a document type to the framework, there are several factors to consider.

First, select a type name for your document. The Dynamics GP Service framework uses the type name to identify components and resources related to your document. Select a type name that is unique and does not duplicate the name of an existing document type.

For example, the sample service included with the Web Services for Microsoft Dynamics GP SDK uses Lead as the type name of the service documents. If you look at the examples in the SDK, you will see the Lead type name used with classes, security metadata, policy metadata, and the XSLT files that the sample Leads service uses.

Next, define the structure and data members of the documents that the Dynamics GP Service framework requires.

  • Specify the data members that represent a single document. You need to identify the name and data type for each data member of the document.
  • Specify the most important data members of a document. Use these data members to define a summary document. You need to specify the name and data type for each data member of the summary document.
  • Specify the types of restrictions used to retrieve a list of summary documents. Identify the data members you want to be able to query when retrieving a list of summary documents.

For information about how to create a document type assembly, see Creating a Service Document Type.