Listing 7

// file: service.h
#import "objects.h"  // import the object collection
// define a name for the 'cws' service
//gsoap cws service name: CollisionService
// define the endpoint location of the service
//gsoap cws service port: http://localhost:8080
// define the 'cws' service operation
int cws__detect_collisions(Objects objects, int& hits);