Versions Compared

Key

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

...

This page goes threw the steps that you need to follow in order to be able to call a web service using the SOAP protocol. This page also give you background information you need to understand how web service work within the Blueriq architecture. 4 5 steps are required:

 

  • Importing
  • Mapping with Domain Model
  • Defining the REST service
  • Creating a Service Call
  • Using the WebserviceWeb Service

Importing

In contrast to SOAP, there may not be an explicit contract available for REST (WADL). You can use the api of the REST service to get xsd files. If the REST service only gives example answers, you can automatically generate an XSD file from the examples. (http://www.freeformatter.com/xsd-generator.html#ad-output)

Go to File → Import → Import XSD and provide the location of the XSD file. If you have multiple files (for example: your XSD is importing/including an XSD schema) then provide a zip file with all needed files. Select the project for the import and you can choose whether to create a new module, or overwrite an existing one. When overwriting, as much as possible from the old module is kept. You can choose whether you also want to create a domain model. When this button is checked, entities, attributes and relations are created based on the type definitions of the XSD.

You should get the message that the import was successful.

...