Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Download

...

Introduction

Tags

Webservice, REST, XSD, Data mapping 

Type of accelerator

Example project to demonstrate Blueriq functionality and accelerate your learning journey. 

How to getDownloadAirportStatus.project.zip
Compatibility

Blueriq 16.0 and higher

Description

This example project demonstrates how Blueriq can be used for sending a REST request from a page model and mapping back the response. This can be achieved either using a domain schema or an xsd import. An xsd import is used in this particular application.

...

As no domain schema is used, the mapping is deduced from the xsd schema set. The schema set contains a form of the domain model to map the response in. In this schema set, entities are set as complex types elements and they can further hold other elements which can be attributes (if the elements are simple) or relations to other entities (if the elements are also set as complex types). So for instance the complex type element AirportStatus (which is an entity) has a relation to the complex type element Status (which is again an entity) and moreover Status contains simple elements (attributes). It can also be observed that those xsd elements correspond to the real domain model.

 Image RemovedImage Added