Add reference to WSDLFlattener to you project and use it like this:

XmlTextReader xmlreader;
if (webServiceUri.AbsoluteUri.Contains(".svc"))
{
xmlreader = new XmlTextReader(WSDLFlattener.WSDLFlattener.Flatten(webServiceUri.ToString() + "?wsdl"), XmlNodeType.Document, null);
}
else
{
xmlreader = new XmlTextReader(webServiceUri.ToString() + "?wsdl");
}

ServiceDescriptionImporter descriptionImporter = BuildServiceDescriptionImporter(xmlreader);

Last edited Feb 3, 2012 at 5:32 PM by Eugene_Mikhaylov, version 2

Comments

No comments yet.