aspose file tools*
The moose likes XML and Related Technologies and the fly likes error in Bypassing the Special Characters in JBoss (in xsd) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "error in Bypassing the Special Characters in JBoss (in xsd)" Watch "error in Bypassing the Special Characters in JBoss (in xsd)" New topic
Author

error in Bypassing the Special Characters in JBoss (in xsd)

Sibbala Sreenath
Greenhorn

Joined: Jul 17, 2012
Posts: 4
Hi,

We(Java project) have a xsd document and for which we have created a wsdl file and shared the same to other team(Dot Net), They have a field called notes , in which they are entering the junk data (Special Characters) . These special characters are not accepted by the Jboss and it is throwing an error as below.. The other team ie Dot net team is not ready to do any changes from their side to validate the special characters. Could any one help us in bypassing the special Characters .. Do we need to do any thing in JBOSS ? Please help me.

Error:

04:20:43,521 ERROR [STDERR] [Fatal Error] :1:488: Character reference "" is an invalid XML character.

04:20:43,522 ERROR [SOAPFaultHelperJAXWS] SOAP request exception

org.jboss.ws.core.CommonSOAPFaultException: org.xml.sax.SAXParseException: Character reference "" is an invalid XML character.

at org.jboss.ws.core.soap.EnvelopeBuilderDOM.build(EnvelopeBuilderDOM.java:93)


Thanks,
Sri
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18154
    
    8

Well, first of all I recommend you should choose your terminology better. In XML there is no such thing as a "junk" character. Nor is there any such thing as a "special" character. There are certain characters which are not allowed in XML documents, but those characters are not ones which can normally be typed in a "field" -- assuming I am guessing correctly what you meant by that.

Now, the XML Recommendation describes precisely which characters are allowed to be in XML documents. In section 2.2 of the XML Recommendation. So what character are you receiving from that field which is not in that list?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error in Bypassing the Special Characters in JBoss (in xsd)
 
Similar Threads
XML Parsing exception: org.w3c.dom.ls.LSException
Problem in handling special characters using FOP generating pdf
Exception in XML Parsing
ERROR in Bypassing the Special Characters in JBOSS(in xsd)
Error while consuming .Net webservice