public String ConsultaObjeto(string CodigoRastreio) { try { wsCorreio.ServiceClient ws = new wsCorreio.ServiceClient(); wsCorreio.sroxml wsCorreioResponse = ws.buscaEventos("ECT", "SRO", "L", "T", "101", CodigoRastreio); if (wsCorreioResponse.objeto == null) { return("Código Não Encontrado"); } else { return(wsCorreioResponse.objeto[0].evento[0].descricao); } } catch (Exception) { return("Error"); } }
public buscaEventosListaResponse(wsCorreio.sroxml @return) { this.@return = @return; }