IBM InfoSphere Master Data Management, Version 11.3A request that will add spec values requires must include the AttributeValueBObj object.
The following XML request snippets shows the spec values in an add request in a product. The AttributeValueBObj object is wrapped in a ProductSpecValueBObj object along with the optional ProductSpecValueNLSBObj, which provides translations for the localized strings and complies with the localized XSD file. This internal spec value can be successfully validated against the spec (the internal XSD) as illustrated in Introduction to using spec values in runtime. Note that the localized XSD is not provided.
The following sample shows the XML request for when the add request is sent as part of the Value element by wrapping the XML CDATA section:
<ProductSpecValueBObj>
...
<ProductSpecValueNLSBObj>
<Locale>fr</Locale>
<Value><![CDATA[
<penspec:penSpec
xmlns="http://www.ibm.com/mdm/data/specs/penSpec /localized/00000001"
xmlns:penspec="http://www.ibm.com/mdm/data/specs/penSpec/localized/00000001">
<penDescription id="1">Elégant et stylé.</penDescription>
</ penspec:penSpec >
]]>
</Value>
</ProductSpecValueNLSBObj>
...
<AttributeValueBObj>
<Value>
<![CDATA[
<penspec:penSpec xmlns="http://www.ibm.com/mdm/data/specs/penSpec/internal/00000001"
xmlns:penspec="http://www.ibm.com/mdm/data/specs/penSpec/internal/00000001">
<penId>1</penId>
<penDescription id="1">Sleek and stylish.</penDescription>
<penPhysicalDimensions>
<diameter>10</diameter>
<length>100</length>
</penPhysicalDimensions>
<penType>Ballpoint</penType>
</penspec:penSpec>
]]&gt;
</Value>
</AttributeValueBObj>
</ProductSpecValueBObj>
<ProductSpecValueBObj>
...
<ProductSpecValueNLSBObj>
<Locale>fr</Locale>
<Value><![CDATA[
<penspec:penSpec
xmlns="http://www.ibm.com/mdm/data/specs/penSpec /localized/00000001"
xmlns:penspec="http://www.ibm.com/mdm/data/specs/penSpec/localized/00000001">
<penDescription id="1">Elégant et stylé.</penDescription>
</ penspec:penSpec >
]]>
</Value>
</ProductSpecValueNLSBObj>
...
<AttributeValueBObj>
<SpecValueXML>
<penspec:penSpec xmlns="http://www.ibm.com/mdm/data/specs/penSpec/internal/00000001"
xmlns:penspec="http://www.ibm.com/mdm/data/specs/penSpec/internal/00000001">
<penId>1</penId>
<penDescription id="1">Sleek and stylish.</penDescription>
<penPhysicalDimensions>
<diameter>10</diameter>
<length>100</length>
</penPhysicalDimensions>
<penType>Ballpoint</penType>
</penspec:penSpec>
</SpecValueXML>
</AttributeValueBObj>
</ProductSpecValueBObj>