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.