• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JiBX for marshal/unMarshal Framework

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 "{http://www.xpegs.com/v2001Q3/HotelML}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="http://www.xpegs.com/v2001Q3/HotelML"/>
<!-- some more tags -->
</binding>

actual xml after marshalling for request is:
<HotelML xmlns="http://www.xpegs.com/v2001Q3/HotelML">
<Head>[\n]"
<Process DataPath="/hotelML/Form/PropertySearch" Function="TI_PropertySearchV1_1" Token="1218615278033"/>
</Head>
</HotelML>

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 -->
</mapping></binding>

after unmarshall

<HotelML xmlns="http://www.xpegs.com/v2001Q3/HotelML">
<Head>
<Route Destination="OT" Source="00">
</Head></HotelML>
</binding>
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,
Sangam
reply
    Bookmark Topic Watch Topic
  • New Topic