Docsity

The University wits, Essays (high school) of English Language

Toggle sidebar
bg1
Contact: Servicedesk CBE Webservices
Staff Service ICT For each communication, always mention the endpoint of the web service you are using.
Boulevard du Roi Albert II, 16
1000 Bruxelles
http://economie.fgov.be
Cookbook
CBE Public Search Webservice
Version R010.00
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50

Partial preview of the text

Download The University wits and more Essays (high school) English Language in PDF only on Docsity!

Contact: Servicedesk CBE Webservices Staff Service ICT For each communication, always mention the endpoint of the web service you are using. Boulevard du Roi Albert II, 16 1000 Bruxelles http://economie.fgov.be [email protected] Phone : +32 (0) 2 277 94 50

Cookbook

CBE Public Search Webservice

Version R0 1 0.0 0

Rue du Progrès 50 1210 Brussels N° d’entreprise : 0314.595. 0800 120 33 (free call) facebook.com/SPFEco @SPFEconomie linkedin.com/company/fod-economie instagram.com/spfeco youtube.com/user/SPFEconomie https://economie.fgov.be Publisher: Séverine Waterbley Chairman of the Board Committee Rue du Progrès 50 1210 Brussels Internet version

  • Introduction
  • New in version R008.04
    1. General concepts
    • 1.1. Interoperability
    • 1.2. Authentication
    • 1.3. General input parameters
    • 1.4. General output
    • 1.5. SOAP fault
    • 1.6. Connection parameters
    • 1.7. Request balance
    1. Description of the operations
    • 2.1. ReadEnterpriseRequest
      • 2.1.1. Description of the request body
      • 2.1.2. Description of the response body
    • 2.2. ReadEnterpriseByPhonemeRequest
      • 2.2.1. Description of the body of the request
      • 2.2.2. Description of the body of the response
    • 2.3. ReadEnterpriseByPhysicalPersonNameExactMatchRequest
      • 2.3.1. Description of the body of the request
      • 2.3.2. Description of the body of the response
    • 2.4. ReadEnterpriseLegalPersonByCompanyNameExactMatchRequest
      • 2.4.1. Description of the body of the request
      • 2.4.2. Description of the body of the response
    • 2.5. ReadEstablishmentByEnterpriseNumberRequest
      • 2.5.1. Description of the body of the request
      • 2.5.2. Description of the body of the response
    • 2.6. ReadEstablishmentByEstablishmentNumberRequest
      • 2.6.1. Description of the body of the request
      • 2.6.2. Description of the body of the response
    • 2.7. ReadEstablishmentByNameExactMatchRequest
      • 2.7.1. Description of the body of the request
      • 2.7.2. Description of the body of the response
    • 2.8. ReadEstablishmentByPhonemeRequest
      • 2.8.1. Description of the body of the request
      • 2.8.2. Description of the body of the response
    • 2.9. ReadEnterpriseOrEstablishmentByAddressRequest
      • 2.9.1. Description of the body of the request
      • 2.9.2. Description of the body of the response
    • 2.10. ReadStreetNameRequest
      • 2.10.1. Description of the body of the request
      • 2.10.2. Description of the body of the response
    • 2.11. ReadEnterpriseOrEstablishmentByActivityRequest
      • 2.11.1. Description of the body of the request
      • 2.11.2. Description of the body of the response
    • 2.12 ReadEnterpriseByAuthorization
      • 2.12.1. Description of the body of the request
      • 2.12.2. Description of the body of the response
    • 2.13. ReadEstablishmentByAuthorization
      • 2.13.1. Description of the body of the request
      • 2.13.2. Description of the body of the response
    • 2.14. ReadCodeList
      • 2.14.1. Description of the body of the request
      • 2.14.2. Description of the body of the response
    1. Example

INTRODUCTION

This document is intended for those who wish to use the CBE Public Search from their applications by means of a web service. The CBE Public Search web service offers the same retrieval options as the CBE Public Search web application.

1. GENERAL CONCEPTS

1.1. INTEROPERABILITY

To ensure the operability of the web services offered, the interfaces (WSDL documents) have been prepared in accordance with the recommendations of the WS-I Basic Profile. These recommendations consist of a number of clarifications, refinements and interpretations of the existing WS standards in order to improve the interoperability between the various implementations. As a consequence the WSDL documents specifying the interface adopt a document-literal-wrapped style.

1.2. AUTHENTICATION

The web service uses UserName Token from WS-Security for authentication. WS-Security is an open standard for securing web services. The web service client must use a UsernameToken to identify himself. The password must be forwarded in the form of a PasswordDigest. For authentication using WS-Security you must add a SOAP header to the SOAP envelope. This header must contain the WS-Security information: A shortened and simplified example:

2009- 09 - 07T11:27:10.748Z 2009- 09 - 07T11 :32 :10.748Z

userid b9+DwlYdsVm6BakobZivkDJ13zo= Enp2ha7j2Ar9cvWQeUybTQ== 2009- 09 - 07T11:27:10.716Z

ABCD nl

…

In SoapUI it looks like this: Under the timestamp tab you can set the validity period of the sent message, for example 300 s. You should take into account that on the server side the timestamp is also checked. Therefore it is in your interest to synchronise the clock of the computer on which the web service client is running, with a time server.

1.3. GENERAL INPUT PARAMETERS

Some input parameters must be included with every operation of the CBE Public Search web service. These parameters are no longer discussed in the individual operations because the rules for these parameters are the same for all operations. Two general parameters - Id and Language - are given in the SOAP Header, in the element RequestContext.

RequestId contains the identification specified by the user in the Id element in the SOAP request header. ReplyId is a UUID (universally unique identifier) generated by the CBE Public Search Web service system. ReplyStatus provides information about the way the request was handled. It contains a Code and a Description, with respectively the status code and a description in English. If the request is processed normally, the following ReplyStatus will be returned to you:

00001 The operation completed successfully

If the code is different from 00001, a problem has occurred or information about the answer can be reported. The possible Codes are listed in the following table: 00001 The operation completed successfully 00003 No data found for the request 00005 Validation of the enterprisenumber failed 00006 Validation of the establishmentnumber failed 00007 Validation of the Juridical Form failed: only allowed for Legal Persons 00008 The size of resultlist is greater than the maximum allowed 00010 Enterprisenumber does not exist 00011 Establishmentnumber does not exist 00014 Enterprise canceled 00015 Establishment canceled 00016 Enterprise not yet active 00017 Establishment not yet active

10001 The operation completed successfully 10003 No data found for the request Codes in italics indicate an input error and require a correction in the request (e.g. 00005: the specified number is not a valid enterprise number). The other codes indicate a successful processing of the request and provide additional information about the displayed result (e.g. 00003: no active entity meets the search criteria in the request). The codes 10001 and 10003 are functionally equal to the codes 00001 and 00003, but when you get this code, the request balance has not been reduced^1. AccountBalance indicates how many requests you can still make when this reply is sent. CBE Public Search shows the data as they were registered on the date mentioned in SnapshotDate. If the SnapshotDate element is not in ReplyStatus, this means that the data are being updated at the time of the query. Under normal circumstances you will get:  For a request on day D between 0:00 and 0:30 (approximately): o For each entity you get the status in CBE on day D-2, midnight. o The SnapshotDate element contains date D-2.  For a request on day D between 0:30 and 2:00 (approximately): o For some entities you get the status in CBE on day D-2, midnight. o For some entities you get the status in CBE on day D-1, midnight. o The SnapshotDate element is not present in ReplyStatus (meaning that data are being updated).  For a request on day D between 2:00 and 24:00 (approximately): o For each entity you get the status in CBE on day D-1, midnight. o SnapshotDate contains date D-1. Sometimes this scheme is not followed. Therefore it can be useful to look at the SnapshotDate element if you want to know to which CBE status the data in the reply refer. (^1) The ReadCodeList operation is offered free of charge because it is a tool to carry out other operations.

1.5. SOAP FAULT

Some errors are not reported via a ReplyStatus, but by means of a soap fault. A typical example of this is a request that does not meet the scheme. For example, if a request lacks the Id element, as below:

fr

Then you will get the following soap fault:

soap:Server Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mes:Language'. One of '{"http://economie.fgov.be/kbopub/webservices/v1/messages":Id}' is expected.

Second example: If you enter an invalid language code in the RequestContext as follows:

test invalid laguage nl xx

Then you will get the following answer:

soap:Server

Unmarshalling Error: cvc-enumeration-valid: Value 'xx' is not facet-valid with respect to enumeration '[nl, fr]'. It must be a value from the enumeration.

If, for instance, the password is not correct or the maximum allowed requests are exceeded, you will also get a soap fault: … The security token could not be authenticated or authorized

… … Quota Exceeded! … When you no longer have a request balance to carry out a search, you will also get a soap fault: … Your balance is empty! … It is not possible to give a list of all possible soap faults that may occur.

1.6. CONNECTION PARAMETERS

The connection data for the production environment are: endpoint : https://kbopub.economie.fgov.be/kbopubws 100000 /services/wsKBOPub WSDL : https://kbopub.economie.fgov.be/kbopubws 100000 /services/wsKBOPub?wsdl The connection data for the test environment are: endpoint : https://kbopub-acc.economie.fgov.be/kbopubws 100000 /services/wsKBOPub WSDL : https://kbopub-acc.economie.fgov.be/kbopubws 100000 /services/wsKBOPub?wsdl

2. DESCRIPTION OF THE OPERATIONS

2.1. READENTERPRISEREQUEST

A ReadEnterpriseRequest allows you to search entities by enterprise number. 2.1.1. DESCRIPTION OF THE REQUEST BODY A ReadEnterpriseRequest contains one EnterpriseNumber element with a valid enterprise number. This is a number that must conform to the following format: [01]?[0-9]{9}. So the following elements are valid: 314595348 0314595348 But the following elements are not valid: 0.314.595.348 123 sometext They give rise to a SOAP fault. In addition, the number must meet the test with the rest of division by 97. So the following element is not valid: 314595349 It results in a status code 0005:

00005 Validation of the enterprisenumber failed

2.1.2. DESCRIPTION OF THE RESPONSE BODY The response consists of one Enterprise element if there is an entity with the requested enterprise number having the status legally created, identified, active or discontinued. If the requested enterprise number is not valid, you will get status code 00005 (e.g. check-digits check) or a soap fault (e.g. 11 digits). See also §2.1.1. If the requested enterprise number is not assigned, you will get status code 00010. If the requested enterprise number has been registered, but does not yet have an active legal status (the entity will become active in the future), you will get status code 00016. If the enterprise number has been cancelled, you will get status code 00014. If the requested enterprise number is closed, you will receive information of the replacing enterprise number in the response. For discontinued entities the response will indicate the status of the entity on the date on which the entity was discontinued, with the exception of the legal status of which you will always get the current status (as registered in CBE on the SnaphotDate). For the other entities (i.e. active, identified or legally created) you will get the current status (as registered in CBE on the SnaphotDate). Example status code 00014:

myid fr

0206231995

Gives:

The Enterprise element is rather complex and consists of a number of elements, the presence of which in the response depends on the data that are actually registered in CBE for the requested entity(ies). The elements are described below in the order in which they (may) appear in the response of this operation. Number contains the enterprise number. Example: 314595348

JuridicalSituation gives the legal status of the entity and contains the code, the description and the start date of the legal status, as well as the status (code + description) and possibly an event related to this legal status (code + description + date). A description is given in a Description element, which may occur several times (since the descriptions can be retrieved in more than one language). The Description element contains a Value element with the actual description and a Language element that indicates in which language this description is in. The status can have the following values in CBE Public Search:  Actief (code ‘AC’) - Active  Bekendgemaakt (code ‘BK’) - Identified  Stopgezet (code ‘ST’) - Discontinued  Juridisch gecreëerd (code ‘JU’) – Legally created Example: