some changes
This commit is contained in:
27
test.txt
Normal file
27
test.txt
Normal file
@@ -0,0 +1,27 @@
|
||||
from("direct:pretty")
|
||||
.setBody(constant("<?xml version='1.0'?>" +
|
||||
"<material>\n" +
|
||||
" <material_number>7</material_number>\n" +
|
||||
" <material_type>A1</material_type>\n" +
|
||||
" <material_name>LEGO 17272</material_name>\n" +
|
||||
" <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</description>\n" +
|
||||
" <is_deleted>false</is_deleted>\n" +
|
||||
" <packages>\n" +
|
||||
" <package_number>11988</package_number>\n" +
|
||||
" <ean>80975098498590834</ean>\n" +
|
||||
" <unit_of_measure>pcs</unit_of_measure>\n" +
|
||||
" <dimension>17x17x17</dimension>\n" +
|
||||
" <description>Lorem ipsum dolor sit amet, consectetur adipiscing elit</description>\n" +
|
||||
" </packages>\n" +
|
||||
" <packages>\n" +
|
||||
" <package_number>118</package_number>\n" +
|
||||
" <ean>877854875843774</ean>\n" +
|
||||
" <unit_of_measure>pcs</unit_of_measure>\n" +
|
||||
" <dimension>20x20x20</dimension>\n" +
|
||||
" </packages>\n" +
|
||||
"</material>\n"))
|
||||
.unmarshal()
|
||||
.jaxb("generated")
|
||||
.bean(new DAO(), "getId")
|
||||
.to("activemq:queue:test")
|
||||
.to("log:?level=INFO&showBody=true");
|
||||
Reference in New Issue
Block a user