//============================================ public TrafficNoResponse GetTrfNoByNID(NationalIDRequest req) { try { TrafficProfileServicesSoap obj = new TrafficProfileServicesSoapClient(); var header = new ADPTrafficProfileReference.ADPSoapHeaderIn() { UserName = username, Password = password }; var objToSend = new GetTrfNoByNationalIDRequest() { NationalNo = req.NationalNo, UserID = userId, SystemCode = systemCode }; var result = obj.GetTrfNoByNationalID(new GetTrfNoByNationalIDRequest1 { ADPSoapHeaderIn = header, request = objToSend }); if (result != null) { return(new TrafficNoResponse { TcfNo = result.GetTrfNoByNationalIDResult.TcfNo }); } else { return(null); } } catch { return(null); } }
public TrafficNoResponse GetTrfNoByNID(NationalIDRequest req) { return(inquiry.GetTrfNoByNID(req)); }