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
3
votes
0 answers

XSD/WSDL mapping in Smooks using WSO2 ESB

I am trying to map XSD to another XSD that has some different elements in Smooks. When I add both XSDs in Smooks it is not allowing me to map the elements. Is it possible in Smooks to map two different XSDs? XSD1:CDM
omer khalid
  • 855
  • 1
  • 12
  • 39
3
votes
1 answer

how to integrate mule and smooks for mule

I want to integrate smooks into the mule ide.We are trying to shift from webmethods to mule. We have a Edi transformation available in smmoks which we want to make use of.I found Smooks-for-Mule.jar that could be integrated to the mule. I searched…
3
votes
3 answers

Choice of technology for loading large CSV files to Oracle tables

I have come across a problem and am not sure which would be the best suitable technology to implement it. Would be obliged if you guys can suggest me some based on your experience. I want to load data from 10-15 CSV files each of them being fairly…
Vishal
  • 1,169
  • 2
  • 12
  • 20
2
votes
1 answer

Mapping csv to java in smooks programatically can't handle empty Double

I'm using smooks library to parse csv files fast and easy, mapping them programmatically to POJOs. But I have troubles handling empty fields on POJO's Double attributes. For example, the java object has: public class MulticashHeader { //…
Alfabravo
  • 7,493
  • 6
  • 46
  • 82
2
votes
1 answer

How to serialize Java class into XML with specified Schema

I have a Joo.java class and I want to serialize it into XML using the schema JooSchema.xsd. Is it possible with Smooks API, how to do it?
Abin Manathoor Devasia
  • 1,945
  • 2
  • 21
  • 47
2
votes
0 answers

Using Mapping Model to convert Smooks generated XML to EDI

I'm using smooks 1.7.1 with mapping model d06a-mapping-1.4 to generate Smooks XML but after that I I would like to revert that operation. Is there any way to use the same mapping model to get Edifact as in input before? Translating way EDI -->…
Jedrula
  • 21
  • 1
2
votes
2 answers

Date formatting Issue in freemarker template

I have date input as "20170101"(YYYYMMDD) , i just have to write freemarker template to convert or format the above date into "2017-01-01 00:00:00" (YYYY-MM-DD HH:MM:SS) as date-time above format. I have tried like <#assign createdOn = '20170101'>…
Naveen
  • 43
  • 2
  • 9
2
votes
0 answers

Convert EDI 214 and EDI 215 messages to XML using Smooks

I am very new to EDI. I am trying to write a Spring boot java program to convert EDI 214 (Shipment Status) and EDI 215 (Motor Carrier Pickup Manifest) messages to XML using Smooks. Looking at EDI 214 data elements, I couldn't figure out a easy way…
user1637487
  • 241
  • 1
  • 9
  • 17
2
votes
1 answer

does smooks support json output

Does smooks support json output or thirdparty plugin for json? For example, to do XML-to-JSON or EDI-to-JSON I see it has json reader/parser, but can't seem to find an output/writer. TIA!
dhartford
  • 1,125
  • 2
  • 12
  • 35
2
votes
1 answer

Unable to read EDI File

i'm able to read the EDI file using Smooks (1.5) when it is formatted for readablity ISA*SD* *DFDF* *SDFDSF*FHGFH *44*GHGHGHG *GHGH*GHGHGH*^*GHGHG*46345345*B*4*:~…
JToddler
  • 790
  • 1
  • 6
  • 16
2
votes
0 answers

Setting up WSO2ESB to send messages to WSO2MB

I am trying to get our proxy in wso2ESB to send messages to the wso2 Message Broker. I'm reading the article for integrating the ESB to MB which says to "Open /repository/conf/ JNDI.proerties file and point to the running Message Broker." Where can…
John
  • 73
  • 7
2
votes
1 answer

Smooks: Outputting EDI from Java

Inspired by the proposed solution in Smooks EDI writer, I have the following Java code: // Creates minimal EDI message with one field populated EdifactV3D98AMEDPID edi = new EdifactV3D98AMEDPID(); UNBInterchangeHeader header = new…
morsor
  • 1,263
  • 14
  • 29
2
votes
0 answers

Is it possible to define optional fields in a Smooks CSV reader

I want to read CSV entries with a Smooks CSV reader. But my problem is how to define a field as optional.
2
votes
2 answers

Freemarker get element from list

I am doing teplate which i will use in Smooks conversion. I need to get f.e. 2nd element of the list in freemarker but i have no idea how to do it. There is fragment of my code in freemarker template. <#list partnerList as PARTNER> …
mkuligowski
  • 1,544
  • 1
  • 17
  • 27
2
votes
0 answers

Smooks can't find custom decoders that are in a jar on the classpath

I have several custom Smooks DataDecoders that are set up in a project other than the one I'm working in. I've included the jar for that project on my classpath. Whenever I try to run a smooks config I'm getting this exception: DataDecoder Class…
JDiPierro
  • 802
  • 1
  • 9
  • 28
1
2
3
11 12