This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Exception while UNmarshalling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Exception while UNmarshalling" Watch "Exception while UNmarshalling" New topic
Author

Exception while UNmarshalling

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
Hi ranchers

I am getting following exception while UNMarshalling amy XML string.

javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"RequestType"). Expected elements are <{http://www.i2c.com/fc/services/XML/Request}Request>

Can any one please help me on this. Below is the schema and the XML

Schema is


XML is


"Know where to find the solution and how to use it - that's the secret of success."
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception while UNmarshalling
 
Similar Threads
XSD Conditional
Problem related to XML validation using XSD
What's wrong with this simpleType!
extending a complexType
Web Service message level Encryption Decryption through public and private key