Please enable JavaScript to view this site.

WebOffice  2.66 Complete Guide

Request definition

Figure 2, Create a Service Provider - step 2 - Request definition. Not all the Variables may be listed

Figure 2, Create a Service Provider - step 2 - Request definition. Not all the Variables may be listed

Mandatory fields

Attribute

Explanation

 

Request Definition

Man.

Path

Path to the SOA service.

Man.

Web Service Type

Type of web service, REST or SOAP.

Opt.

Request Content Type

Select content type. If empty, then content type “application/x-www-form-urlencoded” is used for REST.

Man.

Service Request Type

JSON

XML

Opt.

Decimal Separator

Decimal separator to be used in the request.

Man.

Post Format

Post format for the request. See SOA specifications Online Purchase Transfer.

Opt.

Use HTTP PUT at update

Normally HTTP POST is used but if it is an update of an Ongoing Purchase it is possible to use HTTP PUT when accessing the SOA service.

The Post Format shall have a format that match the Service Request Type

The {nn} variables will be replaced with data from the database when sending the request. The meaning of each variable is explained next to the Post Format box

It is possible to add fixed values to the request. See the JOSN example where e.g. the sellingPointID is set to WTP app.

Example in XML format

<m:OngoingPurchase xmlns:m="http://xxx.mipermit.net">
  <m:Parking>
    <m:PurchaseGuid>{0}</m:PurchaseGuid>
    <m:TerminalGuid>{1}</m:TerminalGuid>
    <m:TerminalID>{2}</m:TerminalID>
    <m:ArticleID>{3}</m:ArticleID>
    <m:TariffPackageID>{4}</m:TariffPackageID>
    <m:VAT>{5}</m:VAT>
    <m:Amount>{6}</m:Amount>
    <m:Currency>{7}</m:Currency>
    <m:CreateDate>{8}</m:CreateDate>
    <m:StartDate>{9}</m:StartDate>
    <m:EndDate>{10}</m:EndDate>
    <m:Code>{11}</m:Code>
  </m:Parking>
</m:OngoingPurchase>

Example in JSON format

{ "providerId": "Cale",
"transactionId": "{0}",
"productDescription": "Parking rights via Cale app",
"sellingPointId": "WTP app",
"sellingPointLocation": "{2}",
"areaManagerId": "KK",
"areaId": "{12}",
"vehicleId": "{11}",
"validityBegin": "{9}",
"validityEnd": "{10}",
"validityCancelled": false,
"validityHours": "0-24",
"prid": "{26}"
}

 

Response definition

The response can be sent in 3 formats:

Figure 3, Create a Service Provider - step 3 - Response definition. Select service Response Type

Figure 3, Create a Service Provider - step 3 - Response definition. Select service Response Type

The HTTP option does not need any additional configuration

After selecting options 2 or 3 the section will refresh with additional fields

The table below the format images describes the fields available

Figure 4, Create a Service Provider - step 3 - Response definition JSON

Figure 4, Create a Service Provider - step 3 - Response definition JSON

Figure 5, Create a Service Provider - step 3 - Response definition XML

Figure 5, Create a Service Provider - step 3 - Response definition XML

Attribute

Explanation

Response Definition

Service Response Type

HTTP Status Code

JSON

XML

Response Node XPath

XPath for response.

Response External ID Attribute

Name for attribute that contains external id for response.

Response External ID Validation Value

When this field has a value, the service routing process will compare the External ID received from the host with this value, if the values are not equal, the ongoing purchase process will fail.

Response External Description Attribute

Name for attribute that contains external description for response.

Response Result Code Attribute

Name for attribute that contains external code for response.