WSDL defines the service contract for web services SOAP available at FlowerDocs Core.
They are displayed by each FlowerDocs Core under the path /services
and published online here.
Authentification
SOAP requests need to be authenticated to be accepted by FlowerDocs Core. To achieve this, it is necessary to provide a user token in the form of a SOAP envelope header.
Token generation
The token to be supplied can be generated using the AuthenticationWSService
service, which exposes the [login] operation(https://flowerdocs.com/javadocs/ws/com/flower/docs/ws/api/authentication/AuthenticationWSService.html#login) :
POST
/core/services/authentication
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:aut="http://flower.com/docs/ws/api/authentication">
<soapenv:Header/>
<soapenv:Body>
<aut:loginRequest>
<aut:scope>{{scope}}</aut:scope>
<aut:user>{{user}}</aut:user>
<aut:password>{{password}}</aut:password>
</aut:loginRequest>
</soapenv:Body>
</soapenv:Envelope>
Provide token
To authenticate a client, the token must be supplied with each request.
It must be provided as a SOAP header under the namespace flower
:
<soapenv:Header>
<flower:token>{{token}}</flower:token>
<soapenv:Header>
The namespace flower
can be defined by adding the prefix definition xmlns:flower="flower"
as an attribute of the node soapenv:Envelope
.