This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JiBX for marshal/unMarshal Framework

raju sangam
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I facing weird issue with JiBX unMarshalling.
My requirement is, to marshal and unMarshal the request and response data using JiBX.
while marshalling its working fine, however in unMarshal I'm getting below exception.

Caused by: org.jibx.runtime.JiBXException: No unmarshaller for element "{}HotelML"

for Request I'm using binding.xml below:

<binding value-style="attribute">
<mapping class="com.octopus.adapters.supplier.pegasus.mapping.HotelML" name="HotelML">
<namespace default="elements" uri=""/>
<!-- some more tags -->

actual xml after marshalling for request is:
<HotelML xmlns="">
<Process DataPath="/hotelML/Form/PropertySearch" Function="TI_PropertySearchV1_1" Token="1218615278033"/>

Binding xml for Response:

<binding value-style="attribute">
<mapping class="com.octopus.adapters.supplier.pegasus.mapping.response.HotelMLResponse" name="HotelML">
<!-- no namespace tag here -->
<!-- some other tags -->

after unmarshall

<HotelML xmlns="">
<Route Destination="OT" Source="00">
I don't want 'xmlns' attribute in response.however its appearing because of mapping name is name...I guess.

Any help would be appreciate.

Thanks in Advance,
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!