diff --git a/src/main/java/org/example/service/TopupService.java b/src/main/java/org/example/service/TopupService.java new file mode 100644 index 0000000000000000000000000000000000000000..407f9108be20180314f930bccd4ff80f787f6266 --- /dev/null +++ b/src/main/java/org/example/service/TopupService.java @@ -0,0 +1,18 @@ + +package org.example.service; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.jws.soap.SOAPBinding.ParameterStyle; +import javax.jws.soap.SOAPBinding.Style; + +@WebService +@SOAPBinding(style = Style.DOCUMENT, parameterStyle = ParameterStyle.WRAPPED) +public interface TopupService { + @WebMethod + public int topupPoint ( + @WebParam(name = "userId", targetNamespace = "http://service.example.org/") int userId, + @WebParam(name = "cost", targetNamespace = "http://service.example.org/") int cost); +}