OK, please be gentle. This is my first attempt at using XML in Data Services, I have not understood any of the previous posts about this, and I don’t see where I can make the changes suggested in previous posts…
Data Services 14.2.5
I have imported an XSD, named LiteratureSampleRequest with the following format:
<?xml version="1.0" encoding="utf-8" ?><xs:schema targetNamespace=“Bing”
elementFormDefault=“qualified”
xmlns=“Bing”
xmlns:mstns=“Bing”
xmlns:xs=“XML Schema”
<xs:element name=“LiteratureSampleRequest”>
<xs:complexType >
xs:sequence
<xs:element name=“Primary” maxOccurs=“1” minOccurs=“1”>
xs:complexType
xs:all
<xs:element name=“Address_1” type=“xs:string”/>
<xs:element name=“Address_2” type=“xs:string”/>
<xs:element name=“City” type=“xs:string”/>
<xs:element name=“Zip” type=“xs:string”/>
<xs:element name=“Country” type=“xs:string”/>
<xs:element name=“State” type=“xs:string”/>
<xs:element name=“Company_Name” type=“xs:string”/>
<xs:element name=“Contact_Name” type=“xs:string”/>
<xs:element name=“Status” type=“xs:string”/>
<xs:element name=“Request_Type” type=“xs:string”/>
<xs:element name=“Reqestor” type=“xs:string”/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:element name=“Line” minOccurs=“1” maxOccurs=“unbounded”>
xs:complexType
xs:all
<xs:element name=“Line_Number” type=“xs:integer”/>
<xs:element name=“Quantity” type=“xs:integer”/>
<xs:element name=“Product_Code” type=“xs:string”/>
<xs:element name=“CMAT_Number” type=“xs:string”/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
I imported it as a new XML Schema named LiteratureSampleRequest. Namespace is as expected (Bing) with a root element name of LiteratureSampleRequest. I then attempted to use this in a data flow using the following XML as input:
<?xml version="1.0"?> 1 Main Street .. 01010 United States PA Won and Done Season Debutante Requested Sample John Smith 1 0 0001707Data Services is throwing an error of:
An element named present in the XML data input does not exist in the XML format used to set up this XML source in data flow <DF_Samp_Lit_RMA>. Validate your XML data.
What do I need to change to get this to work?
jamonwagner (BOB member since 2007-03-14)