cancel
Showing results for 
Search instead for 
Did you mean: 

FaultString - Illegal semicolon, not in group

Highlighted
Occasional Visitor

FaultString - Illegal semicolon, not in group

Hi All,

i am having soap Webservice , in which i have to pass special characters like (&,;,>,<).

When i use these characters in request .i am getting below error
<faultstring>Illegal semicolon, not in group</faultstring>

 

Critical Request attribute
<link>"http=test.test.com&amp;csf=1&amp;web=1&amp;e=abcd"</link>

 

Could you please suggest how to resolve the error 

1 REPLY 1
Highlighted
Community Hero

Re: FaultString - Illegal semicolon, not in group

Hey @chinthasantosh

The characters you tried to use are reserved in xml (so reserved in SOAP messages) as these characters are actually entity placeholders.
There are 5 defined xml entities
Double quot (")
Single quote (')
Greater than (>)
Less than (<)
Ampersand (&)

So you need to escape these characters so instead of using the character, e.g. '&' as part of a tag value you need to use the escape sequence

So instead of
<element>&</element>

You use
<element>&amp;</element>

Escape sequences are as follows:

Double quot (") == &quot;
Single quote (') == &apos;
Greater than (>) == &gt;
Less than (<) == &lt;
Ampersand (&) == &amp;

Hope ive been clear,

Rich
if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the Subject header field of the post to something more descriptive? This will help people when searching for problems. Ta
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors