If you want to do 2 different things in one unit of work ; you will need to use XA. In your case it may be invoking a webservice and updating a database.
If all your operations in a unit of work is going to a single database ; you do not need a XA driver