2005-09-27 20:42:01 UTC
Hi,
I sent an email about this; here is an XML doc that we have as an XMLBean. The bean is recognized by the BeanResolver, but there are nested beans inside the bean (ie, Shipments->Shipment->Stops->Address, etc) How do we configure a dst.xml to transform?
TIA,
david norwood
------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<shipments:Shipments xmlns:shipments="
http://abc.com/int/shipments"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://abc.com/int/shipments D:/projects/shipment.xsd">
<shipments:sendingPartnerID>ACME</shipments:sendingPartnerID>
<shipments:receivingPartnerID>ACME_XYZTMS</shipments:receivingPartnerID>
<shipments:receivingMessageType>ACME_XYZTMS</shipments:receivingMessageType>
<shipments:Shipment ID="ACME00000001" Type="CREATE">
<shipments:CustomerID>ACME</shipments:CustomerID>
<shipments:BillToID></shipments:BillToID>
<shipments:FromAppointmentRequired>0</shipments:FromAppointmentRequired>
<shipments:ShipToAppointmentRequired>1</shipments:ShipToAppointmentRequired>
<shipments:DirectFreight></shipments:DirectFreight>
<shipments:FromPickupDate>200505020900</shipments:FromPickupDate>
<shipments:ToPickupDate>200505041600</shipments:ToPickupDate>
<shipments:FromDeliveryDate>200505050800</shipments:FromDeliveryDate>
<shipments:ToDeliveryDate>200505101800</shipments:ToDeliveryDate>
<shipments:CommodityCode></shipments:CommodityCode>
<shipments:CarrierID></shipments:CarrierID>
<shipments:ServiceID></shipments:ServiceID>
<shipments:FreightTerms></shipments:FreightTerms>
<shipments:INCOTerms></shipments:INCOTerms>
<shipments:INCOLoc></shipments:INCOLoc>
<shipments:EquipmentType></shipments:EquipmentType>
<shipments:Volume></shipments:Volume>
<shipments:LadenLength></shipments:LadenLength>
<shipments:WeightUOM>1</shipments:WeightUOM>
<shipments:DimensionUOM>2</shipments:DimensionUOM>
<shipments:DistanceUOM>1</shipments:DistanceUOM>
<shipments:Stops>
<shipments:StopAddress ID="00688" StopNumber="1">
<shipments:Block></shipments:Block>
<shipments:Street>Road #2</shipments:Street>
<shipments:Unit></shipments:Unit>
<shipments:City>SABANA HOYOS</shipments:City>
<shipments:State>PR</shipments:State>
<shipments:Country>USA</shipments:Country>
<shipments:PostalCode>00688</shipments:PostalCode>
<shipments:Notes></shipments:Notes>
<shipments:Name>Merck & Co., Inc.</shipments:Name>
<shipments:Latitude></shipments:Latitude>
<shipments:Longtitude></shipments:Longtitude>
</shipments:StopAddress>
<shipments:StopAddress ID="19702" StopNumber="2">
<shipments:Block></shipments:Block>
<shipments:Street>111 STAKE DRIVE</shipments:Street>
<shipments:Unit></shipments:Unit>
<shipments:City>NEWARK</shipments:City>
<shipments:State>DE</shipments:State>
<shipments:Country>USA</shipments:Country>
<shipments:PostalCode>19702</shipments:PostalCode>
<shipments:Notes></shipments:Notes>
<shipments:Name>XYZ SUPPLY C</shipments:Name>
<shipments:Latitude></shipments:Latitude>
<shipments:Longtitude></shipments:Longtitude>
</shipments:StopAddress>
</shipments:Stops>
<shipments:TOReferences>
<shipments:TOReference ID="CUSTOID" Value="MER0000001"/>
<shipments:TOReference ID="PO" Value="929031615"/>
<shipments:TOReference ID="REF2" Value="001"/>
<shipments:TOReference ID="REF3" Value="N"/>
<shipments:TOReference ID="REF4" Value=""/>
<shipments:TOReference ID="REF6" Value="0001811059"/>
<shipments:TOReference ID="REF7" Value="929031615"/>
<shipments:TOReference ID="REF9" Value="0000000003190455"/>
</shipments:TOReferences>
<shipments:PrintedMemo>Printed memo here</shipments:PrintedMemo>
<shipments:Non-PrintedMemo>Reefer Container</shipments:Non-PrintedMemo>
<shipments:Components>
<shipments:Component ID="000010">
<shipments:Quantity>56</shipments:Quantity>
<shipments:Pieces>56</shipments:Pieces>
<shipments:Pallets></shipments:Pallets>
<shipments:Length>4</shipments:Length>
<shipments:Width>4</shipments:Width>
<shipments:Height>4</shipments:Height>
<shipments:TrackingNumber></shipments:TrackingNumber>
<shipments:Description>ARCOXIA (etoricoxib)</shipments:Description>
<shipments:ComponentTypeID>PIECES</shipments:ComponentTypeID>
<shipments:StackHeight></shipments:StackHeight>
<shipments:StackFactor></shipments:StackFactor>
<shipments:StackGroup></shipments:StackGroup>
<shipments:Weight>15673.000</shipments:Weight>
<shipments:FreightClass>85</shipments:FreightClass>
<shipments:DeclaredValue>877688</shipments:DeclaredValue>
<shipments:ContainerReferences>
<shipments:ContainerReference ID="API" Value="000010"/>
<shipments:ContainerReference ID="REF2" Value="C/M"/>
<shipments:ContainerReference ID="REF1" Value="PJT0A"/>
</shipments:ContainerReferences>
</shipments:Component>
<shipments:Component ID="000020">
<shipments:Quantity>91</shipments:Quantity>
<shipments:Pieces>91</shipments:Pieces>
<shipments:Pallets></shipments:Pallets>
<shipments:Length>4</shipments:Length>
<shipments:Width>4</shipments:Width>
<shipments:Height>4</shipments:Height>
<shipments:TrackingNumber></shipments:TrackingNumber>
<shipments:Description>FOSAMAX PLUS D (alendronate sodium/cholecalciferol)</shipments:Description>
<shipments:ComponentTypeID>PIECES</shipments:ComponentTypeID>
<shipments:StackHeight></shipments:StackHeight>
<shipments:StackFactor></shipments:StackFactor>
<shipments:StackGroup></shipments:StackGroup>
<shipments:Weight>191.888</shipments:Weight>
<shipments:FreightClass>85</shipments:FreightClass>
<shipments:DeclaredValue>85</shipments:DeclaredValue>
<shipments:ContainerReferences>
<shipments:ContainerReference ID="API" Value="000020"/>
<shipments:ContainerReference ID="REF2" Value="C/M"/>
<shipments:ContainerReference ID="REF1" Value="PJT0A"/>
</shipments:ContainerReferences>
</shipments:Component>
</shipments:Components>
</shipments:Shipment>
</shipments:Shipments>