Esempio n. 1
0
 public static void MyClassInitialize(TestContext testContext)
 {
     request = new SearchPhoneticRequest();
     request.ApplicationID                 = "79021802145";
     request.PhoneticCriteria              = new PhoneticCriteriaType();
     request.PhoneticCriteria.LastName     = "Brouckaert";
     request.PhoneticCriteria.FirstName    = "Bryan";
     request.PhoneticCriteria.BirthDate    = "1979-02-18";
     request.PhoneticCriteria.Gender       = new GenderType();
     request.PhoneticCriteria.Gender.Value = GenderPossibility.MALE;
 }
Esempio n. 2
0
        public SearchPhoneticReply Search(SearchPhoneticRequest request)
        {
            Message requestMsg  = Message.CreateMessage(MessageVersion.Soap11, "http://ehealth.fgov.be/consultRN/identifyPerson/phoneticSearch/search", request, new XmlSerializerObjectSerializer(typeof(SearchPhoneticRequest)));
            Message responseMsg = base.Channel.Request(requestMsg);

            if (responseMsg.IsFault)
            {
                throw new FaultException(MessageFault.CreateFault(responseMsg, 1024));
            }
            return(responseMsg.GetBody <SearchPhoneticReply>(new XmlSerializerObjectSerializer(typeof(SearchPhoneticReply))));
        }