This chapter describes some tips for using modules in combination with web services.
Blueriq has the generate domain option when importing a WSDL or XSD. This is a nice feature, as it completely links your entries from the WSDL/XSD to the domain. If you import this into an existing module, where you created your domain model for your application, then these start to mix with the generated domain from your web service. In the worst case, the same names are used. In this case, a numbered variant is created during import. This can be confusing and is only useful for small web services. Therefore, we advise to use a separate module for your web service. By doing that, you cleanly separated your business domain from your web service domain. In order to transfer data from one module to another, you have to define a datamapping between those modules. Here is an overview of steps taken when calling a web service with a datamapping.
When you use Blueriq as a web service, and you want to use a datamapping, you can use specialization to simplify your data mapping. As the domain will be the same in both modules, you only have to create a straightforward 1-to-1 mapping.