A serviceRequest uses information specified on the server-side in the nexaweb-data.xml file to access external data. You specify information for a serverRequest to use on the server side in a dataRequestDefinition. The dataRequestDefinition either includes a restRequest or a soapRequest or references a restRequest or a soapRequest specified in the nexaweb-webservices.xml configuration file. The restRequest or a soapRequest specifies the external data to access.
Therefore, creating a serviceRequest on the server requires the following major steps:
Specifying the information to process the request on the server
Creating a serviceRequest in the UI file
In addition, for a soapRequest, you must add to the Nexaweb application project a Web Services Description Language (WSDL) file for the web service from which to access data.
You can create the information to implement a serviceRequest on the server as follows:
|
Request Type |
Method |
Description |
Use To |
|
SOAP |
From WSDL file |
Drag the WSDL file from the Navigator view onto the UI file. This launches the Create New Web Service Request wizard. |
Create a soapRequest to use as a serviceResourceReference in a dataRequestDefinition. You then create a serviceRequest in the UI file that references the dataRequestDefinition. |
|
SOAP or REST |
Right click in UI file |
Right click in the UI file and select Data > Create Service Request. This launches the Create ServiceRequest wizard. |
Create a serviceRequest and either select an existing or create a new soapRequest or restRequest referenced by a dataRequestDefinition. |
|
SOAP or REST |
From Tools menu |
Select Tools > Create Service Request. This launches the Create ServiceRequest wizard. |
Create a serviceRequest and either select an existing or create a new soapRequest or restRequest referenced by a dataRequestDefinition. |
|
SOAP or REST |
Right click on Service Requests folder in the Data view. |
Right click on Service Requests folder in the Data view and select Create Service Request. This launches the Create ServiceRequest wizard. |
Create a serviceRequest and either select an existing or create a new soapRequest or restRequest referenced by a dataRequestDefinition |
|
SOAP or REST |
From nexaweb- |
Open the nexaweb-webservices file, select the Requests tab and click Add. |
Create a soapRequest or restRequest to use as a serviceResourceReference in a dataRequestDefinition. You then create a serviceRequest in the UI file that references the dataRequestDefinition. |