175 questions
0
votes
1
answer
274
views
Mscons SmooksException org.milyn.javabean.BeanInstanceCreator
I'm encountering a problem with the following (anonymized) mscons file, that I try to read with mylin-smooks:
UNB+UNOC:3+1111111111111:502+1111111111111:502+240102:1602+XXX12345678910++TL
'UNH+...
0
votes
1
answer
487
views
Parse error while converting edi to java?
I am trying to convert EDI data format to java.
The EDI data is as follows
HDR*1*0*59.97*64.92*4.95*Wed Nov 15 13:45:28 EST 2006
CUS*user1*Harry^Fletcher*SD
ORD*1*1*364*The 40-Year-Old Virgin*29.98
...
3
votes
1
answer
323
views
How do I skip headers in CSV file in WSO2 Micro Integrator
I am using smooks mediator to convert csv file to json using VFS. We have an option to skip header row while using the CSV connector/module. How do I skip the first row of headers while processing the ...
0
votes
1
answer
1k
views
Trying to use Apache Camel with Spring
I am currently learning to use Apache Camel. To serve my needs I am trying a project I downloaded from the internet but the whole thing seemed to be stuck on an error that I can't debug. It's been a ...
0
votes
1
answer
324
views
Smooks : return an OutputStream
I am currently writing a JAVA application that will input an EDI file and return an OutputStream using Smooks library for this purpose. I am struggling to return the output stream and use it without ...
0
votes
2
answers
296
views
NoSuchMethod during in-route EDIFACT unmarshal
I'm trying to make unmarshalling a file in a camel route work. I'm using the SmooksDataFormat to do so. Currently I have these things configured:
Route:
@Component
public class MyRoute extends ...
1
vote
1
answer
1k
views
EDIFACT-to-Java Compiler for Smooks v2
I am trying to create Java bindings for EDIFACT messages using Smooks. In particular, I want to automatically generate Java classes and corresponding mappings using Smooks. To this end, Smooks 1.x ...
-1
votes
1
answer
1k
views
How to convert a json to EDIFACT using smooks with java
The only way I found is edi not edifact but when i change the smooks-config.xml with edifact
<smooks-resource-list
xmlns="https://www.smooks.org/xsd/smooks-2.0.xsd"
xmlns:edifact=&...
1
vote
0
answers
177
views
Smooks Library - EDI message processing failed - expected to contain 2 fields. Actually contains 1 fields
Address_2 is optional but still getting error.
Below is Smook Config for N3 Segment.
<medi:segment segcode="N3" xmltag="address-information-stp" > <medi:field xmltag="...
2
votes
0
answers
319
views
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 ...
0
votes
1
answer
187
views
Get "error in opening zip file" on new Smooks()
I get an error when I try to generate a new Smooks instance:
Smooks smooks = new Smooks("conf/smooks-config.xml");
the smooks-config.xml:
<?xml version="1.0"?>
<smooks-...
0
votes
0
answers
81
views
Converting csv to json using smooks
I am converting csv to json using smooks. Output file is coming as expected but there is one trailing comma in last csv-record. In the end output is coming as this },] which will be invalid json ...
1
vote
0
answers
49
views
Hardcode XML Field While Converting from CSV Using Smooks
Hello stack overflow community,
I am using smooks in WSO2 EI 6.2.0 for converting csv to xml. I want to know if its possible to hardcode one of xml fields. For example my csv looks like this:
Name,Age,...
0
votes
1
answer
326
views
WSO2 Smooks mediator with a JSON input
I have a requirement to invoke an external REST service, which returns the response as a json, and write the response to a CSV file. I'm using WSO2 Smooks mediator for the conversion. I was able to ...
0
votes
1
answer
350
views
WSO2 Remove Blank Spaces from beginning of text file
I have written a WSO2 integration which calls an API, grabs the properties I want from that API call, puts together a payload, passes that payload to a smooks mediator, which right pads each value ...