Do it correctly and it will work. :-)
But seriously, you have not given us any information about the problem you are having so how could we help you solve it?
First, which version of JBoss Application Server are you using? 4.0 is ambiguous, is it 4.0.5, 4.0.4, 4.0.3SP1, 4.0.2, 4.0.1, 4.0.0?
Second, what version of JBoss Web Services (JBossWS) are you using? 1.2.0? 1.0.4?
Third, did you follow the installation instructions to install JBossWS?
Fourth, you mention a "sample", which of the sample applications are you running?
Fifth, what error are you getting? Please post the stack trace.