Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to Apply Proerty in Control Pin
dasblinkenlight5-May-11 0:29
dasblinkenlight5-May-11 0:29 
AnswerRe: How to Apply Proerty in Control Pin
Ravi Sant5-May-11 0:36
Ravi Sant5-May-11 0:36 
QuestionAdd virtual device Pin
Pranit Kothari4-May-11 23:43
Pranit Kothari4-May-11 23:43 
AnswerRe: Add virtual device Pin
Dave Kreskowiak5-May-11 1:47
mveDave Kreskowiak5-May-11 1:47 
GeneralRe: Add virtual device Pin
Pranit Kothari5-May-11 1:57
Pranit Kothari5-May-11 1:57 
GeneralRe: Add virtual device Pin
fjdiewornncalwe5-May-11 3:00
professionalfjdiewornncalwe5-May-11 3:00 
AnswerRe: Add virtual device Pin
jschell5-May-11 8:14
jschell5-May-11 8:14 
QuestionWeb Service Returns Null, No Exceptions Pin
GlobX4-May-11 17:26
GlobX4-May-11 17:26 
I'm having a problem with a web service in my C# code. I've consumed the web service by adding a web reference and all is good, the reference is consumed correctly I'm getting all my proxy types flow through etc. etc.

When I run a method on the service, however, the returned object is null and no exceptions are thrown:
C#
// after this line, response is null
MethodResponse response = service.Method(methodRequest);

I'm running Fiddler in the background (HTTPS decryption is turned off, even though I'm simply running on HTTP) and I'm getting a legitimate XML response back - it maps perfectly to my response types. I've added some code where I can manually copy the XML response from Fiddler into the code, use an XmlDeserializer, and it works just fine.

I have noticed one thing, though. The request I send has an XML declaration at the beginning of it, whereas the response does not. If I set up Fiddler's auto-responder with the legit response and add an XML declaration to it, I get an exception:
There is an error in XML document (120, 15).
Unexpected end of file while parsing Name has occurred. Line 120, position 15.

That line and position are a bit of a red-herring, as they don't point to anything useful in particular (not even the EOF), and as I said before, the XML is valid. Also, there is no Name element in the XML at all, so I'm assuming it means that it's trying to parse a tag name (which one it doesn't say), not finding the end of it for whatever reason and then passing the EOF.

Any ideas as to what's going on or where I should look next?


Typical n-tiered architecture:
DB <-> Junk(0) <-> ... <-> Junk(n-1) <-> Pretty

Questionhow to add the values from controls to class to read it in xml Pin
Rocky234-May-11 7:42
Rocky234-May-11 7:42 
QuestionConversion of List to DataTable Pin
Ankit Rajput4-May-11 0:45
Ankit Rajput4-May-11 0:45 
AnswerRe: Conversion of List to DataTable Pin
Peter_in_27804-May-11 0:59
professionalPeter_in_27804-May-11 0:59 
GeneralRe: Conversion of List to DataTable Pin
Ankit Rajput4-May-11 1:02
Ankit Rajput4-May-11 1:02 
GeneralRe: Conversion of List to DataTable Pin
Dave Kreskowiak4-May-11 1:14
mveDave Kreskowiak4-May-11 1:14 
GeneralRe: Conversion of List to DataTable Pin
Ankit Rajput4-May-11 1:22
Ankit Rajput4-May-11 1:22 
AnswerRe: Conversion of List to DataTable Pin
Blue_Boy4-May-11 1:13
Blue_Boy4-May-11 1:13 
JokeRe: Conversion of List to DataTable Pin
wizardzz4-May-11 7:39
wizardzz4-May-11 7:39 
AnswerRe: Conversion of List to DataTable Pin
wizardzz4-May-11 7:39
wizardzz4-May-11 7:39 
QuestionHow to axAcroPdf automatically perform click on save button Pin
cigara93933-May-11 22:05
cigara93933-May-11 22:05 
Question64 bit Console linked to 32 bit dll? Pin
devvvy3-May-11 16:59
devvvy3-May-11 16:59 
AnswerRe: 64 bit Console linked to 32 bit dll? Pin
Luc Pattyn3-May-11 17:30
sitebuilderLuc Pattyn3-May-11 17:30 
QuestionAsynchronous Response to a Synchronous TCPClient Pin
Octantis3-May-11 13:09
Octantis3-May-11 13:09 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
Luc Pattyn3-May-11 13:25
sitebuilderLuc Pattyn3-May-11 13:25 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
BobJanova4-May-11 1:53
BobJanova4-May-11 1:53 
AnswerRe: Asynchronous Response to a Synchronous TCPClient Pin
jschell4-May-11 8:37
jschell4-May-11 8:37 
GeneralRe: Asynchronous Response to a Synchronous TCPClient Pin
Octantis4-May-11 9:22
Octantis4-May-11 9:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.