To use the generated resource components, you need the following:
1. A create SMP Credentials component before the component, pointing to the SMP you're going to run against.
2. The NS Web Services solution needs to be installed on the SMP you're running against
Also, verify you're using the right component. There is probably a GetAllDepartments for both NS 6 and NS 7. You need to use the one with a namespace that resembles Altiris.Resource7.* (check the settings tab on the Edit Component dialog) or has an "(SMP 7)" appended to the name.