---
name: "FusionInventory::Agent::XML::Query::SimpleMessage"
section: "3pm"
platform: "linux"
package: "fusioninventory-agent"
version: "2.0.6-2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/FusionInventory::Agent::XML::Query::SimpleMessage"
---

# FusionInventory::Agent::XML::Query::SimpleMessage(3pm)

## NAME

FusionInventory::Agent::XML::Query::SimpleMessage a Generic message container

## DESCRIPTION

This class provides a mechanism to send generic messages to the server.

```
        my $xmlMsg = FusionInventory::Agent::XML::Query::SimpleMessage->new(
            {
                config => $config,
                logger => $logger,
                target => $target,
                msg    => {
                    QUERY => 'DOWNLOAD',
                    FOO    => 'foo',
                    BAR   => 'my Message',
                },
            }
        );
        $network->send( { message => $xmlMsg }
```

The msg parameter only requires the QUERY key to identify the type of message. You can the key you want in the msg structure.
