Calling a web method without use a typed return - HodStudio/XitSoap GitHub Wiki

Sometimes you want to call a web service, but for some reason (Xml provide with problems, as string, for example), you don't want to make the return as typed. In this cases, you just have to call with inform a type. In this case, you will have 3 types of information on the result: the SoapResponse, the XmlResult (an extraction from the SoapResponse) and StringResult (and extract from XmlResult).

var wsCon = new WebService("http://localhost/XitSoap/ProductService.asmx");
wsCon.AddParameter("Name", "product 01");
var result = wsCon.Invoke("SearchProduct");
var soapR = result.SoapResponse;
var xmlR = result.XmlResult;
var stringR = result.StringResult;