public EnglishAN08010Response(AN08010Response innerResponse) { OutputRecord = innerResponse.OutputRecord; if (innerResponse.OutputArrayRecord != null) { OutputArrayRecord = Array.ConvertAll <SVARPERSONER, ReplyPerson>(innerResponse.OutputArrayRecord, (p) => new ReplyPerson(p)); } }
/// <summary> /// Calls the AN08010 web service /// </summary> /// <param name="cprNumber"></param> /// <returns></returns> private EnglishAN08010Response CallAN08010(string cprNumber) { WS_AN08010.WS_AN08010 service = new CprBroker.Providers.KMD.WS_AN08010.WS_AN08010(); SetServiceUrl(service, ServiceTypes.AN08010); service.userinfoValue = new userinfo() { userid = UserName, password = Password }; AN08010 param = new AN08010() { InputRecord = cprNumber }; AN08010Response response = service.SubmitAN08010(param); ValidateReturnCode(response.OutputRecord.returkode, response.OutputRecord.returtekst); return(new EnglishAN08010Response(response)); }