SOAP XML sending special characters -

tkrishna29
Giga Guru

Hi,

I see it's problematic when sending special characters in the text that's sent across.

Checked other advises where they say to replace the text in the following way where I call the SOAP service.

add_info.replaceAll('&', '&'); I had to do the same for 

find_real_file.png

Is there a standard way that ServiceNow takes care of this instead of I writing this replace script on every text item I send across in SOAP XML? Thanks.

1 ACCEPTED SOLUTION

How are you calling webservice from business rule. make sure if you are using script than use setStringParameter instead of setStringParameterNoEscape

View solution in original post

4 REPLIES 4

Mike Patel
Tera Sage

On SOAP Message for variables you can do Escape xml for Escape type

find_real_file.png

tkrishna29
Giga Guru

As soon as I make the variable to Escape XML, my SOAP request is failing when called through business rule.

 

Please refer to https://blogs.msdn.microsoft.com/adpowershell/2010/01/20/addingremoving-members-from-another-forest-or-domain-to-groups-in-active-directory/

or powershell

Import-Module ActiveDirectory
$dn = Get-ADUser username -Server "different.domain.com"
Add-ADGroupMember -Identity YourDomainLocalGroup -Members $dn

How are you calling webservice from business rule. make sure if you are using script than use setStringParameter instead of setStringParameterNoEscape