Question

Passing break line character in the service request

Hi,

How to pass break line character when we call a service?

Ex: Praveen Kumar needs to be saved in the DB as below once the request gets processed.

"

Praveen

Kumar

"

Tried passing 
 in the service request but the request which is being received at service end is @amp;#xA;

***Updated by moderator: Lochan to add Categories***

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
January 16, 2018 - 12:34am

which content type(Xml,json etc) your using for communication between the client and service .

If it's Json you can add below DSS to escape special characters 

Purpose : json/escapeSpecialCharacters 
Owning Ruleset : Pega-IntSvcs 
Value : true

Thanks,

Arun

Comments

Keep up to date on this post and subscribe to comments

January 16, 2018 - 12:34am

which content type(Xml,json etc) your using for communication between the client and service .

If it's Json you can add below DSS to escape special characters 

Purpose : json/escapeSpecialCharacters 
Owning Ruleset : Pega-IntSvcs 
Value : true

Thanks,

Arun

Pega
January 16, 2018 - 4:21am

Hi Praveen,

Thanks for posting on PSC.

You could achieve your requirement by configuring mapping mode for the element associated with the property containing the name(Praveen Kumar) as literal. Refer below,

There is one security drawback associated with it, the malicious user could inject script in the UI field associated with this property as it allows to hit the server with the content as literal value.

Hope it helps you in achieving your requirement. Kindly notify by marking as answered/helpful if it does.

Regards,

Asif