Intuit.Ipp.Data.Qbo.CustomerQuery query with & in the name

假如想象 提交于 2019-12-11 13:12:44

问题


How do you use Intuit.Ipp.Data.Qbo.CustomerQuery to query a name like:

Tom & Jerry's

This case has 2 special characters that are causing the query to fail. One being & and the other being '. I've tried to use Uri.EscapeDataString and it doesn't work. Any advice?


回答1:


The SDK does not encode the ampersand correctly, so you will need to use DevDefined and deserialize the response with the SDK. Code sample: https://gist.github.com/IntuitDeveloperRelations/6024616




回答2:



you would need to xml encode the string.

thanks
Jarred



来源:https://stackoverflow.com/questions/16329777/intuit-ipp-data-qbo-customerquery-query-with-in-the-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!