Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap Exception due to special characters  RSS feed

 
Sangeeta Parikh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a web app where a user can enter some description. Right now, they are copying the description from a word document and pasting it to the web page. As a result, some special characters are getting inserted. When we try to read the data through a web service call we are getting SoapFaultException.
The character that caused it is .
Is there any way to escape this character so that the web service call does not fail. We are using EJB's which are converted to web service methods using weblogic servicegen (Ant) task.
 
Keith Naas
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On our project we have an App Server using ISO8859-15 that was throwing errors when communicating with a WebLogic Server. We've successfully used both methods specified in this link:
http://e-docs.bea.com/wls/docs81/webserv/i18n.html
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may be encountering those accursed "smart" quotes and "smart" apostrophes that MS word uses. They are illegal characters in XML. If that is true, your users can change the defaults in Word to not use the damn things. (You can probably tell I have been bit by this several times.)
Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!