MarkLogic version - 9.0-6.2
I have a custom REST end point that accepts phone number as a parameter. My requirement is to read this input phone number from the URL, compare with a phone number in the database and return Match/NoMatch.
When I call the URL through SoapUI tool with phone number value as +1-800-723-1800, I see that soapUI tool is sending the GET request to MarkLogic as &PhoneNo=%2B1-800-723-1800. When I compare (using === in javascript) this value with the value in database, I am getting expected result.
However, when the same call is made through IIB (IBM Integration Bus), I see in MarkLogic logs that the GET request is made as &PhoneNo=+1-800-723-1800 (+ not encoded). Now this comparision result is coming as NoMatch even though I have the exact same value in the database.
Is this as issue with encoding? How can I handle encoding in MarkLogic?