Questions tagged [smooks]

Smooks is an extensible framework for building applications for processing XML and non XML data (CSV, EDI, Java etc) using Java.

Smooks is an extensible data integration Java framework for building XML and non-XML fragment-based applications.

178 questions
1
vote
1 answer

Exchange edifact message with smooks - error during response

I need to write osgi bundle to simple unmarshal edifact message (invoice), and persist invoice in database. I receive an exception during response My environment: - ServiceMix 5.0.0 I have following camel route
1
vote
1 answer

Smooks EDI Parsing - Repeated Segments

I'm trying to build a generic EDI parser that can handle when any situational segments are not present in a given file. This was easy enough using the minOccurs="0" attribute in the XML mapping, however I'm struggling to figure out how to handle…
cmcowart
  • 193
  • 1
  • 13
1
vote
0 answers

java: convert HashMap with dynamic keys to Bean

I'm trying to convert a large Map> to some JavaBean. The key of map corresponds to some property of JavaBean, and the value somehow is decoded to property value. So I decided to use some util for that, but don't know what will work. There are some…
1
vote
0 answers

Standard way of mapping EDI data in Cloud based application

Hi I am working with Cloud based application and I am researching on various ways of Mapping Electronic Data Interchange. In my scenario I have to map two external application attributes suppose: Application 1 : firstName , lastName Application 2…
Utsav
  • 1,593
  • 4
  • 22
  • 46
1
vote
3 answers

Camel: Renaming file from: xxx to: xxx failed due cannot delete from file: xxx after copy succeeded

System background: Windows/ServiceMix/Camel/Smooks I have a Camel route
tlum
  • 913
  • 3
  • 13
  • 30
1
vote
1 answer

How to set EnumDecoder in Smooks

I'm facing some issues when trying to set an enum decoder in Smooks, in order to decode values from a CSV file. I need an EnumDecoder and although I saw that you can instantiate it and set the configuration, I could not find where to set it in order…
1
vote
2 answers

WSO2 Smook response not write to file

I'm trying write the response from a proxy with Smooks Mediator on a file but nothing happens. The mediator get a csv file with vfs option, convert to xml output and send the csv to a out directory correctely. In console i see the…
Rafa Hernández
  • 468
  • 7
  • 19
1
vote
1 answer

How to correctly nest segmentGrop tags in Smooks

I am trying to make EDI to XML mapping with Smooks (1.5 version). I have 5 segments which can occur few times and i want to put them into group but some Error is rising: Caused by: org.xml.sax.SAXParseException; cvc-complex-type.2.4.a: Invalid…
mkuligowski
  • 1,544
  • 1
  • 17
  • 27
1
vote
1 answer

How to parse a string to Smooks beanpopulator

I'm new to Smooks and I want to achieve the following. May be I'm totally new to this and I don't see the answer yet, but this should be a basic thing. I'm taking an excerpt from the example shown in official document for…
dimuthu
  • 865
  • 11
  • 15
1
vote
1 answer

Smooks - How to map choices element from xml to java

is possible in smooks (version 1.5.1) map only one generated element from two choices element to java field? Example: xsd file:
1
vote
2 answers

Configuring Apache Camel Dead Letter Handler

I have the following route defined using Spring DSL:
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
1
vote
1 answer

how to get file from classpath using jboss7.x.1

I want to convert smooks xml-java, so that i need to load source file from mobeeadmin.war/WEB-INF/sample.xml. Smooks smooks = new Smooks("/WEB-INF/sample.xml"); It is throwing following exception: java.io.IOException: Failed to access data…
nag
  • 647
  • 6
  • 25
  • 43
1
vote
2 answers

Failed to access data stream for resource in jboss 7.1.1

I am using smooks api for java-xml and xml-java converting.this code is working in jboss4.2.2 but to migrate jboss7.1.1 getting exception is "Failed to access data stream for resource" Sample Code: private String runSmooksTransform(Object…
nag
  • 647
  • 6
  • 25
  • 43
1
vote
1 answer

Java to XML (SOAP) with Smooks using FreeMarker

Hey StackOverflow users, I'm currently working on a SOA Project. As an Application Server I use JBoss 5.1 with JBoss ESB 4.11 deployed. I try to implement a Web Service which recieves SOAP Messages from Clients and send responses as SOAP messages as…
Max Werner
  • 21
  • 1
  • 4
1
vote
1 answer

Simple ETL: Smooks or ETL product

I am fairly new to the subject and doing some research. I have an ESB (using WSO2 ESB) and want to extract master data from the passing messages (like Customers, Orders, etc) and store them in DB to keep as a reference data. Source data is in XML…
adnecs
  • 175
  • 1
  • 10