Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem cxf with "& " caracter

 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I do not understand why I am having this problem when I try to search some data in my api using & as string in field:

In soapui, I have this values:



There is a owner with "&" in string. But when I try to search, my response is:

Mon Jan 30 13:37:52 BRST 2012:ERROR:An error occured [The entity name must immediately follow the '&' in the entity reference.], see error log for details


do someone have passed by this problem? any idea how to fix?

thanks
 
g tsuji
Ranch Hand
Posts: 656
3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<serviceFilterValue>Admin&strator </serviceFilterValue>

Ampersand in text node should be written in escaped form (no hyphen below):
<serviceFilterValue>Admin&-a-m-p;strator </serviceFilterValue>
Or, in cdata section, it can be in unescaped form.
<serviceFilterValue><![CDATA[Admin&strator ]]></serviceFilterValue>
 
camilo lopes
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi g tsuji
I got it . I used Admin&-a-m-p;strator. Now it is working.

thanks.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic