Klient bibliotek mot SvarUt ForsendelseRestService.
Legg til maven dependency.
- Java 11 or higher
Add dependency no.ks.fiks.svarut:svarut-rest-klient in your POM.
<dependencies>
<dependency>
<groupId>no.ks.fiks.svarut</groupId>
<artifactId>svarut-rest-klient</artifactId>
<version>1.0.0-SNAPSHOT</version>
</dependency>
</dependencies>
Forsendelse forsendelse = //construct;
HashMap<String, InputStream> filer = //construct;
SvarUtKlientApi klient = new SvarUtKlientApiImpl("http://test.svarut.ks.no", avsender, servicePassord);
ForsendelseId id = klient.sendForsendelse(forsendelse, filer);