Hi All
I'm busy writing an Application that makes extensive use of Web Services. Everything seems to be working fine, aside from "non-standard" characters appearing as question marks depending on the size of the return object.
I can see a value come through containing an apostrophe. In Wireshark it shows as "\342\200\231", and when pulled through to my application it shows an apostrophe correctly. However, when I get a bigger set of data through the web service, it seems to improperly "decode" the value such as "Photo's" as "Photo???s"...
The exact same data is shown in Wireshark though, which leads me to believe that C# somehow incorrectly converts the response?
I removed the DebuggerStepThroughAttribute from Reference.cs to debug the actual web service code and I placed a breakpoint on the method that I invoke to get the return data, and adding the Output object to the QuickWatch also shows the data containing question marks instead of the correct data as well.
I can copy and paste the raw XML directly into an XML editor and the data shows correctly.
The method that I invoke returns an array of a Complex type. (see below) Could this be the cause of it?
The "Complex Type" array that I get out only has four fields and is basically defined as follows:
Unfortunately I can't control how the XML is encoded from the "host" Web Service, as this is "black box" functionality in our Host Application.Code:public partial class QueryResults { private string rowNumberField; private string fieldNameField; private string fieldValueField; private string fieldFormattedValueField; ... ... ... }
Any help anyone can offer will be greatly appreciated!![]()




Reply With Quote
