Thanks to this plugin, you can call a WMS or a WFS with a layer path directly. The plugin will create the QGIS project on the fly. You can also create a map composition by calling many layers, it will also create the QGIS project.
This plugin provides an interface for QGIS Server.