Hi Pardeepta,
This is supported by the flexible=true attribute - see the tutorial at
http://jibx.sourceforge.net/tutorial/binding-extras.html#mixing for some
more details on using this. There are some limitations, and you need to
set this flag on every level of your binding where you want it
Hi Morgan,
Glad you got through this okay. Instead of using the factory method, you
can probably use the new (as of 1.1) create-type attribute on the
collection (see
http://jibx.sourceforge.net/details/binding-attributes.html#object).
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Hi Bernard,
It seems pretty simple - something along the lines of:
mapping name='entity-tree' class='EntityTree'
structure field='entity'/
collection field='children' item-type='EntityTree'/
/mapping
should get you started. What's giving you a problem?
- Dennis
Dennis M.
Hi Sunil,
No, this is not possible. Extensions can only add to the base mapping,
they cannot change it.
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117
Hi,
I think it is okay to use the jibx repository. The only thing is that
for Maven2 the POM files for the jars are missing there (for the 1.1
version).
Alex
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Dennis Sosnoski
Sent: Montag, 21. August
Hi Jeff,
You could perhaps do this using set-method rather than field, where you
have multiple set-methods for the different possible cases (which all
end up storing to the same field). However, your best bet is probably to
write a simple custom unmarshaller to handle this case. That's a
Hello Dennis,
Thanks for the reply. Could you please also clarify why we can't use
the combination of flexible=true ordered=false usage=optional at the
structure level in the jibx mapping file. It throws a
ArrayIndexOutOfBoundException while compiling the binding file. Thanks
Pradeepta
Sorry, Neeraja - the Xsd2Jibx code is a mess, and not maintained. I'm
working on getting out a replacement with full support for this type of
usage, but until that's done I don't have any good suggestions for you
other than to modify the generated binding by hand.
- Denins
Dennis M. Sosnoski
Sounds like a bug - can you submit a problem report in Jira, as
described at http://jibx.sourceforge.net/bugs.html If you include
everything I need to reproduce the problem I'll make sure it gets fixed
for the next release.
- Dennis
Dennis M. Sosnoski
SOA, Web Services, and XML
Training and
I'm not willing to take responsibility for maintaining Maven/Maven2
stuff (I've never liked Maven - I hate tools that force you to fit into
their structure, rather than adapting to how you like to do things), but
if someone wants to take this on I'll let them know when I do a new
release and
It is easy to deploy jar files to a remote repository (e.g.
http://jibx.sourceforge.net/maven2/)
mvn deploy:deploy-file
-DgroupId=org.jibx
-DartifactId=jibx-run
-Dversion=1.1
-Dpackaging=jar
-Dfile=path-to-file
Not really so easy, at least as I understand it. The process of getting
into the standard Maven repositories is spelled out here:
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html It
involves generating a jar in the proper format, then making a request in
the Maven Jira.
-
Sorry, but I was talking about deploying to the
jibx.sourceforge.net/maven2 repository even if you want to reduce work.
This approach is intended for artifacts which are not built with maven
(and hence the generated pom does not include the dependencies as long
as you don't create a pom for this
Thanks Dennis, your response was very helpful.
I do that before without luck. After uour confirmation, I find that I miss
the factory needed to create the Collection.
Bernard/
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dennis
Sosnoski
Sent: Monday,
14 matches
Mail list logo