Commit 0528c885 by Patryk Czarnik

Dodatkowe operacje HelloSoap

parent 41e09946
...@@ -2,10 +2,20 @@ package hello; ...@@ -2,10 +2,20 @@ package hello;
import jakarta.jws.WebService; import jakarta.jws.WebService;
import java.time.LocalTime;
@WebService @WebService
public class Pierwszy { public class Pierwszy {
public String hello(String kto) { public String hello(String kto) {
return "Hello " + kto; return "Hello " + kto;
} }
public int add(int x, int y) {
return x + y;
}
public String ktoraGodzina() {
return LocalTime.now().toString();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment