2021年1月3日星期日

Unable to receive '\' character in post WCF request .NET C#

{ "string001Value":"LITTELFUSE \\/ 772291851034","string002Value":"772291851034","string003Value":"","string004Value":""... }  

When sending a Json object the WCF service receives it without the backslash '', the string001Value property receives the value of "LITTELFUSE / 772291851034".

How can I receive this type of characters in the service so that the value is "LITTELFUSE \ / 772291851034"?

this is the WebInvoke Method:

[OperationContract]  [WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare,              RequestFormat = WebMessageFormat.Json,              ResponseFormat = WebMessageFormat.Json,              UriTemplate = "warehouse_shipping_advice")]  _ResponseDetail WarehouseShippingAdvice(_WarehouseShipping newWarehouseShipping);  
https://stackoverflow.com/questions/65545474/unable-to-receive-character-in-post-wcf-request-net-c-sharp January 03, 2021 at 08:16AM

没有评论:

发表评论