Go to primary content
Agile Product Lifecycle Management Web Services Guide
Release 9.3.6
E71166-01
  Go To Table Of Contents
Contents

Previous
Previous
 
Next
Next
 

12 Publishing Documents

During the life of a product, Agile PLM acquires, processes, and maintains an assortment of data related to the product. This data is used in many ways and for different requirements to expedite, manage, and control product development activities.

Agile PLM Document Publishing Web Services enables creating documents based on data maintained by Agile PLM. This PLM data also is used by content developers and authors to prepare documents such as Product Data sheets, Parts List, and Service Manuals.

Agile PLM supports the dynamic publication of these documents with embedded PLM data and triggers configured in PLM's Event Framework. The Dynamic Document Publishing solution can be used in the following instances:

12.1 Document Publishing Web Services Operations

Agile PLM Web Services exposes the following operations which enables you to create the necessary XML schema and data files.

12.1.1 Loading XML Schema of Objects

This Web Service API returns an XML package that fully describes the attributes of the object. Using this web service, you can create XML schema files, which the BI Publisher uses to create the Templates. For example, if you use this Web Service against a subclass like ECO, it will tell the BI Publisher all of the possible attributes for ECOs. This is useful to be able to work with all potential attributes for an object when creating a Template.

Example: Loading XML Schema of Objects

LoadXMLSchemaRequestType loadXMLSchemaRequestType =
new LoadXMLSchemaRequestType();
AgileLoadXMLSchemaRequestType[] agileLoadXMLSchemaRequestType =
    new AgileLoadXMLSchemaRequestType[1];
agileLoadXMLSchemaRequestType[0] = new AgileLoadXMLSchemaRequestType();
//set the API Names of the classes for which you want to load the schema
String[] classIds = new String[1];
classIds[0] = "Part";
agileLoadXMLSchemaRequestType[0].setClassIdentifiers(classIds);
loadXMLSchemaRequestType.setRequests(agileLoadXMLSchemaRequestType);

12.1.2 Loading XML Data of Objects

This Web Service API returns the actual data that is stored for an object in an XML package. Using this Web service you can retrieve the object data that is combined with the Template to create the output file. You can also use the saved output from this Web Service to test a Template in BI Publisher.

Example: Loading XML Data of Objects

DocPublishing_BindingStub agileAdminStub = getDocPublishingService();
LoadXMLDataRequestType loadXMLDataRequestType =
    new LoadXMLDataRequestType();
AgileLoadXMLDataRequestType[] agileLoadXMLDataRequestType =
    new AgileLoadXMLDataRequestType[1];
agileLoadXMLDataRequestType[0] = new AgileLoadXMLDataRequestType();
String[] filter = new String[1];
filter[0] = "DefaultPartFilter"; // APIName of the ACS filter
agileLoadXMLDataRequestType[0].setFilterName(filter);
ObjectReferentIdType[] objectRef = new ObjectReferentIdType[1];
objectRef[0] = new ObjectReferentIdType();
objectRef[0].setClassIdentifier("Part"); //APIName of the class
objectRef[0].setObjectIdentifier("P0001"); //Object Name of the class to be loaded
agileLoadXMLDataRequestType[0].setObjectReferent(objectRef);
loadXMLDataRequestType.setRequests(agileLoadXMLDataRequestType);