public void ConfigViaFile() { SamcivicsPortTypeClient client = new SamcivicsPortTypeClient("CivicsForDoctor"); ParagraphRequestType request = new ParagraphRequestType(); request.language = LanguageType.nl; request.chapterName = "IV"; request.paragraphName = "440100"; try { GetParagraphIncludedSpecialitiesResponseType response = client.getParagraphIncludedSpecialities(request); AtmAndChildrenType[] atmList = response.atmList; //do something with the list... } catch (FaultException <BusinessError> e) { XmlNode[] detailNodes = e.Detail.Nodes; XmlNode code = detailNodes.Where(n => n.Name == "Code").Single(); XmlNode message = detailNodes.Where(n => n.Name == "Message").Single(); Assert.Fail(code.InnerText + ": " + message.InnerText); } }
public void ConfigViaFile() { SamcivicsPortTypeClient client = new SamcivicsPortTypeClient("CivicsForDoctor"); ParagraphRequestType request = new ParagraphRequestType(); request.language = LanguageType.nl; request.chapterName = "IV"; request.paragraphName = "440100"; try { GetParagraphIncludedSpecialitiesResponseType response = client.getParagraphIncludedSpecialities(request); AtmAndChildrenType[] atmList = response.atmList; //do something with the list... } catch (FaultException<BusinessError> e) { XmlNode[] detailNodes = e.Detail.Nodes; XmlNode code = detailNodes.Where(n => n.Name == "Code").Single(); XmlNode message = detailNodes.Where(n => n.Name == "Message").Single(); Assert.Fail(code.InnerText + ": " + message.InnerText); } }