Questions tagged [jibx]

JiBX is a tool for binding XML data to Java objects.

JiBX is a tool for binding XML data to Java objects. It's extremely flexible, allowing you to start from existing Java code and generate an XML schema, start from an XML schema and generate Java code, or bridge your existing code to a schema that represents the same data. It also provides very high performance, outperforming all other Java data binding tools across a wide variety of tests.

Project Homepage: http://jibx.sourceforge.net/

Another useful resource: Jibx Tutorial Part 1 Jibx Tutorial Part 2

185 questions
0
votes
1 answer

set xmlschema in xml

I am using jibx lib to generate xsd to java code.I have created jar file as well using ant. Where we need to set xmlschemalocation so when we do marshalmessage as below we can get xsd location. public String marshalMessage(Object message) { …
user853341
  • 149
  • 2
  • 12
0
votes
1 answer

JibXvs XStream - when the Domain Object is yet to be constructed

I am working on a conversion between XML to Java Object work packet. Here, Java object type is not defined and hence I am thinking that XStream will not help me with marshalling. However, if I were to use JiBX I can easily code-generate the Java…
Sandeep
  • 586
  • 2
  • 6
  • 17
0
votes
1 answer

How to handle special characters like ampersand (&), present in attribute in JIBX binding

Jibx gives error if XML contains special characters like &. I need to correctly bind text in attributes to corresponding java property. I cannot use style="cdata" as its an attribute not child tag. my XML contains -
sameer59
  • 97
  • 11
0
votes
1 answer

How can i know whether CXF use JIBX Databinding or not?

I am working with Apache CXF for Web Service's Client app. I am intending to use JIBX Databinding for that. When I tested my application, I got the below log. I am confused whether my application use JIBX Databinding from the log due to the fact…
aspirant75
  • 127
  • 1
  • 2
  • 10
0
votes
1 answer

create pojo service interface from wsdl

I need to create a POJO service interface from a wsdl . I tried Axis and CXF. CXF generates the interface with jax-ws annotations. Axis , I believe has a different strategy for web service client and I could not find the service interface. Let me…
lives
  • 1,243
  • 5
  • 25
  • 61
0
votes
1 answer

Java to WSDL tool that supports enums/collections and custom marshalling?

I'm trying to create a web service out of existing Java code. I tried to use the Axis2 POJO technique, but that didn't work since Axis2 doesn't support enums or collections, which our code uses. Then I looked at the JiBX framework, which supports…
pacoverflow
  • 3,726
  • 11
  • 41
  • 71
0
votes
1 answer

Jibx root package name

I see that JibX uses a default binding.xml and it contains a package attribute in tag. Is there a way to override this value? Specifically, can we customize this in jibx-maven-plugin? Thanks, Gopal
Gopal
  • 1,292
  • 3
  • 19
  • 41
0
votes
1 answer

How to check in JIBX if element is nillable

I have xsd schema:
hudi
  • 15,555
  • 47
  • 142
  • 246
0
votes
2 answers

JIBX binding and Google Contacts with flexible=true

I have a simple binding:
Trick
  • 3,779
  • 12
  • 49
  • 76
0
votes
1 answer

JiBX: Ignore missing required elements

I'm using JiBX to unmarshall XML based on a XSD provided by external source; unfortunately, some of the 'required' fields are not always present in the XML, which is causing JiBX to throw 'org.jibx.runtime.JiBXException: Missing required element'. I…
JD White
  • 807
  • 1
  • 10
  • 15
0
votes
1 answer

JiBX unmarshalling exception in spring ws

I am new to Spring WS and JiBX. I have not used annotations. I am getting the following error while using Jibx in Spring WS. JiBX unmarshalling exception: No unmarshaller for element "{http://www.visu.com/pos/soapws/}orderRequest" (line 1, col 103);…
Visu
  • 1
  • 1
  • 1
0
votes
1 answer

Skipping unnecessary xml nodes in jibx mapping

I have a third party xml with me, which has many xml nodes that my application does not need to bother about. How skip such xml portions when binding with jibx. Regards, Praveen
praveenps
  • 77
  • 1
  • 9
0
votes
1 answer

How to read XML document with JiBX?

I try to do example code public class xml_class { /** * Unmarshal the sample document from a file, compute and set order total, then * marshal it back out to another file. * * @param args */ public static void…
Kliver Max
  • 5,107
  • 22
  • 95
  • 148
0
votes
1 answer

Jibx Codegen: customization file - package per schema

I'm using Jibx maven plugin in a project to generate Java source from XML schema (xsd) files. I've configured the plugin in the pom.xml to use a customization xml. In this xml, I define a Java package per schema, as presented here:
Alan Evangelista
  • 2,888
  • 6
  • 35
  • 45
0
votes
1 answer

Jibx Maven plugin: cross-reference among schemas when they are converted in different build executions

I use the jibx Maven plugin to convert some xsds to Java source codes. In a schema A, there is a reference to a type defined in a schema B. Before, I used this pom.xml configuration and everything worked fine:
Alan Evangelista
  • 2,888
  • 6
  • 35
  • 45