Modeling Web Services for Diagnosis