summaryrefslogtreecommitdiffstats
path: root/Master/Daten- und Systemintegration/Praktikum/Projekte/DSI-Praktikum-1/ausgang/DSI-Andere-Webservices/src/java/ws/MindestMenge.java
blob: 4576d3c57000e6cf4ea16f7af683e299cbb46efd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ws;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;
import javax.jws.WebResult;

/**
 *
 * @author eisenhauer
 */
@WebService()
public class MindestMenge {
    @WebMethod
    public @WebResult(name="mindestmenge") long holeMindestmengeFuerArtikel(
            @WebParam(name="artikelId") long artikelId) {
        return artikelId<5?100L:20L;
    }
}