public static void MyClassInitialize(TestContext testContext) { request = new SearchBySSINRequest(); request.ApplicationID = "79021802145"; request.Inscription = new InscriptionType(); request.Inscription.SSIN = "79021802145"; request.Inscription.Period = new PeriodType(); request.Inscription.Period.BeginDate = DateTime.Now.AddDays(-1.0); request.Inscription.Period.EndDateSpecified = false; }
public SearchBySSINReply Search(SearchBySSINRequest request) { Message requestMsg = Message.CreateMessage(MessageVersion.Soap11, "http://ehealth.fgov.be/consultRN/identifyPerson/searchPersonBySSIN/search", request, new XmlSerializerObjectSerializer(typeof(SearchBySSINRequest))); Message responseMsg = base.Channel.Request(requestMsg); if (responseMsg.IsFault) { throw new FaultException(MessageFault.CreateFault(responseMsg, 1024)); } return(responseMsg.GetBody <SearchBySSINReply>(new XmlSerializerObjectSerializer(typeof(SearchBySSINReply)))); }