In your XML StoreProducts is not within an XML namespace, just do.
Up vote 0 down vote favorite share g+ share fb share tw.
I've been trying to use the data from an API but I have not been able to read the XML Response from it. It cames in the form: And what I need is what is inside Products (for now). I was trying to use Using C# to parse a SOAP Response (and others to not flood this) without results.
My code: XDocument tst = XDocument. Load("Response. Xml"); XNamespace xmlns = "http://schemas.xmlsoap.org/soap/envelope/"; var tstr = from result in tst.
Descendants(xmlns + "StoreProducts") select result. Element("Products"). Value; I am almost sure that I am missing something basic.
Any clue will be really appreciated. Thank you. C# soap response link|improve this question asked Jul 27 '11 at 1:30Elder152 50% accept rate.
Stackoverflow.com/questions/2876012/… – Peyman Jul 27 '11 at 1:39.
In your XML StoreProducts is not within an XML namespace, just do : var tstr = from result in tst. Descendants("StoreProducts") select result. Element("Products").
Value; The example code you gave would have been successful if the inner XML looked like this.
Thank you. This worked just how I needed. – Elder Jul 27 '11 at 16:19.
. NET is very efficient to handle SOAP using c# proxy. Have you looked to svcutil.
Exe to generate a proxy?
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.