---
title: "Generator: CallService"
source: https://dev.pageseeder.com/reference/advanced/website/berlioz/generators/org.weborganic.bastille.pageseeder.CallService.html
last_updated: 2026-08-07T17:09:54+10:00
tokens: ~475
---

# Generator: CallService

| Property | Value |
| --- | --- |
| Class name: | org.weborganic.bastille.pageseeder.CallService |
| Version: | 0.6.7 - 3 June 2011 |
| Library: | Bastille |
| Cacheable: | No |
| Generated: | 2012-12-21 |

## Description

A generator than can connect to PageSeeder and call a PageSeeder service.

### Configuration

There is no configuration directly required with this generator; however, since this generator connects to PageSeeder, the [bastille pageseeder properties](../../../../sample_code/berlioz.md) must setup in the [Global Configuration](../configuration/config.md) to define which server to connect to.

### Parameters

The following parameter is required:

| ps-service | The url path after `/ps/service` of the service to connect to. For example: `/groups/acme-forum/comments` (required) |
| --- | --- |

The following parameters can also be specified:

| ps-method | The HTTP method to use to connect to PageSeeder, must be either `GET`\|POST; `GET` is the default if this parameter is not specified |
| --- | --- |

Any other parameter is automatically transmitted to the PageSeeder service.

### Returned XML

#### Error handling

If an error occurs while invoking the service, the XML also includes the `error` and `message` attributes. The HTTP status should correspond to an HTTP error code.

```xml

<ps-service resource="/members/[member id]/projects" 
            http-status="[error]"
            content-type="application/xml"
            error="[error-type]"
            message="[error-message]">
</ps-service>
```

### Permission

This generator attempts to use the user currently logged in.

If the current user is not a PageSeeder user or if there is no user currently logged in, the request is made anonymously.

### Usage

This is a generic generator; use this generator when no other specialized generator provides the same functionality.

