Generate document

 

The API provides document creation of the above mentioned types, on the format generate<TYPE>. Calling any generate operation will return this structure:

Status

id, status code and when it was created

Status

id, status code and when it was created

status

the unique id of the document, created date and state

document

base64 encoded BIDXML, type corresponds with the created document, format and type

warnings

warnings (if any) from validation received from Kartverket

version

KARTVERKET (historically it could have been EDOK)

dokumentMessages

A list of documentMessage that contain all error or information messages for the tinglysing operation on a specific document. It might be returned from the tinglys or the getStatus operation.

Example:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:generatePantedokumentResponse xmlns:ns2="http://dokument.ws7.etinglysing.no/"> <return> <status> <created>2018-09-06T14:09:34.710+02:00</created> <id>15742141</id> <statusCode>OPPRETTET</statusCode> </status> <documentHolder> <content>PEJhbmtJRFhNT...</content> <format>BIDXML</format> <type>PANTEDOKUMENT</type> </documentHolder> <documentVersion>KARTVERKET</documentVersion> </return> </ns2:generatePantedokumentResponse> </soap:Body> </soap:Envelope>