Anki
Anki

Reputation: 589

Removes the special character from password in SoapRequest

In My app I am using Soap request,

In that Soap request I need to Send Password to Authenticate,

My Password Contain Special Character, ABC%1cf#+l6A98,D

When I am sending the password with Soap request, It Removes % character from Password.

IN NSLOG, Password shows Like this ABC1cf#+l6A98,D

So, On Soap request my Passsword going like this ABC1cf#+l6A98,D

How to set the % in Password Field,

How can i do that?

Upvotes: 0

Views: 448

Answers (1)

Devang
Devang

Reputation: 11338

Try Following Code before sending password to SOAP service :

NSString *outputString = [passwordString stringByReplacingOccurrencesOfString:@"%" withString:@"%%"];

Upvotes: 1

Related Questions