コード例 #1
0
ファイル: CIVICSExample.cs プロジェクト: egelke/eHI
        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);
            }
        }
コード例 #2
0
ファイル: CIVICSExample.cs プロジェクト: svn2github/ehi
        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);
            }
        }