author | František Kučera <franta-hg@frantovo.cz> |
Sun Jun 20 14:46:47 2010 +0200 (2010-06-20) | |
changeset 145 | 0efefbf5f8b6 |
parent 100 | 01be78803f73 |
permissions | -rw-r--r-- |
franta-hg@100 | 1 |
package cz.frantovo.nekurak.ws; |
franta-hg@100 | 2 |
|
franta-hg@100 | 3 |
import cz.frantovo.nekurak.ejb.PodnikRemote; |
franta-hg@100 | 4 |
import javax.ejb.EJB; |
franta-hg@100 | 5 |
import javax.jws.WebMethod; |
franta-hg@100 | 6 |
import javax.jws.WebService; |
franta-hg@100 | 7 |
|
franta-hg@100 | 8 |
/** |
franta-hg@100 | 9 |
* |
franta-hg@100 | 10 |
* @author fiki |
franta-hg@100 | 11 |
*/ |
franta-hg@100 | 12 |
@WebService(serviceName = "podnikSluzba", targetNamespace = "podnikNS", portName = "podnikPort") |
franta-hg@100 | 13 |
public class Podnik { |
franta-hg@100 | 14 |
|
franta-hg@145 | 15 |
@EJB |
franta-hg@145 | 16 |
PodnikRemote ejb; |
franta-hg@100 | 17 |
|
franta-hg@145 | 18 |
/** |
franta-hg@145 | 19 |
* Projde podniky, které nemají vyplněné souřadnice, |
franta-hg@145 | 20 |
* a pokusí se je doplnit na základě poštovní adresy podniku. |
franta-hg@145 | 21 |
* @return počet podniků, u nichž jsme doplnili souřadnice |
franta-hg@145 | 22 |
*/ |
franta-hg@145 | 23 |
@WebMethod(operationName = "dopocitejSouradnicePodleAdres") |
franta-hg@145 | 24 |
public int dopocitejSouradnice() { |
franta-hg@145 | 25 |
return ejb.dopocitejSouradnice(); |
franta-hg@145 | 26 |
} |
franta-hg@100 | 27 |
} |