Sample XML Files
The following sample XML files illustrate how to load the required object types in Windchill Supplier Management.
XML File for Importing a Vendor Part
This XML file is used to load a vendor part (suma_vendor_part_1).
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE VendorPart SYSTEM "standardX10.dtd">

<VendorPart>

<ObjectID/>

<number>SUMA_VP_000001</number>

<name>suma_vendor_part_1</name>

<defaultUnit>ea</defaultUnit>

<endItem>false</endItem>

<defaultTraceCode>0</defaultTraceCode>

<genericType>standard</genericType>

<partType>separable</partType>

<partSource>buy</partSource>

<domainName>/Default</domainName>

<folderPath>/Default</folderPath>

<view>((null))</view>

<versionInfo>

<versionId>A</versionId>

<iterationId>1</iterationId>

<versionLevel>1</versionLevel>

<series>wt.series.HarvardSeries</series>

</versionInfo>

<lifecycleInfo>

<lifecycleTemplateName>Default</lifecycleTemplateName>

<lifecycleState>INWORK</lifecycleState>

</lifecycleInfo>

<teamIdentity>Default</teamIdentity>

<externalTypeId>WCTYPE|com.ptc.windchill.suma.part.ManufacturerPart</externalTypeId>

<supplierName>My Vendor A</supplierName>

</VendorPart>
XML File for Importing a Manufacturer Part
This XML file is used to load manufacturer part (suma_manuf_part_1).
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE ManufacturerPart SYSTEM "standardX10.dtd">

<ManufacturerPart>

<ObjectID/>

<number>SUMA_MP_000001</number>

<name>suma_manuf_part_1</name>

<defaultUnit>ea</defaultUnit>

<endItem>false</endItem>

<defaultTraceCode>0</defaultTraceCode>

<genericType>standard</genericType>

<partType>separable</partType>

<partSource>buy</partSource>

<domainName>/Default</domainName>

<folderPath>/Default</folderPath>

<view>((null))</view>

<versionInfo>

<versionId>A</versionId>

<iterationId>1</iterationId>

<versionLevel>1</versionLevel>

<series>wt.series.HarvardSeries</series>

</versionInfo>

<lifecycleInfo>

<lifecycleTemplateName>Default</lifecycleTemplateName>

<lifecycleState>INWORK</lifecycleState>

</lifecycleInfo>

<teamIdentity>Default</teamIdentity>

<externalTypeId>WCTYPE|com.ptc.windchill.suma.part.ManufacturerPart</externalTypeId>

<supplierName>My Manufacturer A</supplierName>

</ManufacturerPart>
XML File for Importing a Sourcing Context
This sample XML file is used to load the sourcing context (in this example, context_x10).
* 
The AXLContext element represents the sourcing contexts that can be used by your organization.
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE AXLContext SYSTEM "standardX10.dtd">

<AXLContext>

<ObjectID/>

<name>context_x10</name>

<description>context_x10 in My Organization</description>

<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>

</AXLContext>
XML File for Importing an Entry in an AML and AVL
This sample XML file is used to load a relationship between an OEM part (in this example, suma_oem_part_1), a manufacturer part (in this example, SUMA_MP_000001) and a vendor part (in this example, SUMA_VP_000001), defined within the sourcing context "context_x10".
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE AXLEntry SYSTEM "standardX10.dtd">

<AXLEntry>

<ObjectID/>

<OEMPartAXLInfo>

<WTPartRef>

<ObjectID/>

<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary=MyProduct
</objectContainerPath>

<number>SUMA_OEM_0000001</number>

<name>suma_oem_part_1</name>

<endItem>false</endItem>

<defaultTraceCode>0</defaultTraceCode>

<genericType>standard</genericType>

<partType>separable</partType>

<partSource>make</partSource>

<versionInfo>

<versionId>A</versionId>

<iterationId>1</iterationId>

<versionLevel>1</versionLevel>

<series>wt.series.HarvardSeries</series>

</versionInfo>

</WTPartRef>

</OEMPartAXLInfo>

<AXLContextRef>

<ObjectID/>

<name>context_x10</name>

<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>

</AXLContextRef>

<ManufacturerPartAXLInfo>

<WTPartMasterRef>

<ObjectID/>

<className>com.ptc.windchill.suma.part.ManufacturerPartMaster</className>

<number>SUMA_MP_000001</number>

<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary
=MyLibrary</objectContainerPath>

</WTPartMasterRef>

<AXLPreferenceValue>20</AXLPreferenceValue>

</ManufacturerPartAXLInfo>

<VendorPartAXLInfo>

<WTPartMasterRef>

<ObjectID/>

<className>com.ptc.windchill.suma.part.VendorPartMaster</className>

<number>SUMA_VP_000001</number>

<objectContainerPath>/wt.inf.container.OrgContainer=
My Organization/wt.inf.library.WTLibrary=MyLibrary</objectContainerPath>

</WTPartMasterRef>

<AXLPreferenceValue>20</AXLPreferenceValue>

</VendorPartAXLInfo>

</AXLEntry>
XML File for Importing an Entry in an AVL
This sample XML file is used to load a relationship (defined by the AXLEntry element) between an OEM part (in this example, SUMA_OEM_0000001) and a vendor part (in this example, SUMA_VP_000001) in a defined context (in this example, context_x10).
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE AXLEntry SYSTEM "standardX10.dtd">

<AXLEntry>

<ObjectID/>

<OEMPartAXLInfo>

<WTPartRef>

<ObjectID/>

<objectContainerPath>/wt.inf.container.OrgContainer=My Organization/wt.inf.library.WTLibrary=MyProduct</objectContainerPath>

<number>SUMA_OEM_0000001</number>

<name>suma_oem_part_1</name>

<endItem>false</endItem>

<defaultTraceCode>0</defaultTraceCode>

<genericType>standard</genericType>

<partType>separable</partType>

<partSource>make</partSource>

<versionInfo>

<versionId>A</versionId>

<iterationId>1</iterationId>

<versionLevel>1</versionLevel>

<series>wt.series.HarvardSeries</series>

</versionInfo>

</WTPartRef>

</OEMPartAXLInfo>

<AXLContextRef>

<ObjectID/>

<name>context_x10</name>

<objectContainerPath>/wt.inf.container.OrgContainer=My Organization</objectContainerPath>

</AXLContextRef>

<VendorPartAXLInfo>

<WTPartMasterRef>

<ObjectID/>

<className>com.ptc.windchill.suma.part.VendorPartMaster</className>

<number>SUMA_VP_000001</number>

<objectContainerPath>/wt.inf.container.OrgContainer=My Organization/wt.inf.library.WTLibrary=MyLibrary</objectContainerPath>

</WTPartMasterRef>

<AXLPreferenceValue>20</AXLPreferenceValue>

</VendorPartAXLInfo>

</AXLEntry>
Isto foi útil?