• 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

JAXB MArshalling not working with webservices

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Issue
Application migration to 12c and jaxb is not working on it

Description
The application is currently on Weblogic 10 and consumes some webservices. We post the XML directly to the webservice using HttpURLConnection. Before posting we marshal the request and after receiving the response we unmarshall them

The app needs to be migrated on 12c and when we tested the app on 12c , it was not working the same. The request that was sent to the webservice had a difference.Please see below the schema, java classes and marshalled request

Refund.xsd
----------
<!-- Request and DeliveryNumber attributes her -->

Generated the Refund.java and related classes using Eclipse-->Generate--> JAxB classes. am behind a firewall and in teh JAXB wizard it did ask me for a proxy. I didnt provide any poxy. Generted class

Refund.java



Am marshalling the object to XML(see below) and passing it to the web service . Web service returns "XML not well formed"

App Library



Code Snippet


Lookng at the logs , i could see the teh following marshalled request on weblogic 12c. There is an xmlns:ns0="" which i think is creating the problem

**Marshalled Request - not working one when tried in weblogic 12c jrockit160_29 .**

Need to get rid of the xmlns:ns0="" below




Marshalled Request in Weblogic 10 (existing working version in weblogic 10 jrockit160_29[/code]--------------------------------------------------------------------------------


when the Request does nto contain <RefundRequest xmlns:ns0=""> it works perfectly.
reply
    Bookmark Topic Watch Topic
  • New Topic