Search code examples
javaweb-servicesspringjibx

Spring web service using JiBX


I want to create Spring web services using JiBX. I already have my Java classes. How do I proceed? Can someone give me link to a good tutorial Thanks!


Solution

  • Hoshang,
    I don't have an example of exactly what you want, but this may help:

    • The JiBX documentation has instructions on how you can bind your java classes to an xml schema. You can find the documentation here.
    • Here is an actual example from our source repo.
    • Spring has and OXM mapper for JiBX Here (see section 8.8), but you will probably not use this.
    • This blog entry shows step-by-step how to create a xml web-service using blueprint, which is almost exactly the same as spring. (blueprint is the vendor-neutral spec authored by spring).
    • You can find a very simple web-services example here. The source code for this example is here.

    I hope this helps!
    Don