I am calling a REST API in a commercial-off-the-shelf application to search for customers by phone number. These phone numbers are formatted like this: "(888) 888-8888"
My problem is the space " " after the right parenthesis. The BizTalk 2013 R2 WCF-WebHttp adapter seems to encode the URL after I build it, and it replaces the space with a plus sign "+". The COTS application does not decode this back to space, so my search always fails.
If I call the COTS application from a REST request using SoapUI it encodes the space as "%20" and the COTS app decodes this properly and returns the result.
I am using WCF-WebHttp Transport Properties URL Mapping to substitute the phone number from the message into the URL. Excerpt:
I've tried substituting the space in the phone number with the following, but here is the result for each trial (as logged by a test IIS web site):
Sent (097) 579-8888, end result was (097)+579-8888
Sent (097)+579-8888, end result was (097)%2b579-8888
Sent (097)%20579-8888, end result was (097)%2520579-8888
Send (097) 579-8888, end result was (097)%26nbsp%3b579-8888
How can I prevent the WCF-WebHttp adapter from encoding my URL? I will take responsibility for encoding it myself.