summaryrefslogtreecommitdiff
path: root/STALXService/src
diff options
context:
space:
mode:
Diffstat (limited to 'STALXService/src')
-rw-r--r--STALXService/src/main/java/at/gv/egiz/stalx/service/STALPortType.java57
-rw-r--r--STALXService/src/main/java/at/gv/egiz/stalx/service/STALService.java2
2 files changed, 52 insertions, 7 deletions
diff --git a/STALXService/src/main/java/at/gv/egiz/stalx/service/STALPortType.java b/STALXService/src/main/java/at/gv/egiz/stalx/service/STALPortType.java
index b6efba76..1576ec24 100644
--- a/STALXService/src/main/java/at/gv/egiz/stalx/service/STALPortType.java
+++ b/STALXService/src/main/java/at/gv/egiz/stalx/service/STALPortType.java
@@ -26,10 +26,19 @@ package at.gv.egiz.stalx.service;
//import at.buergerkarte.namespaces.cardchannel.service.ObjectFactory;
//import at.buergerkarte.namespaces.cardchannel.service.ScriptType;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
+import at.gv.egiz.stal.service.GetHashDataInputFault;
+import at.gv.egiz.stal.service.types.GetHashDataInputResponseType;
+import at.gv.egiz.stal.service.types.GetHashDataInputType;
+import at.gv.egiz.stal.service.types.GetNextRequestResponseType;
+import at.gv.egiz.stal.service.types.GetNextRequestType;
+
/**
* Dummy PortType to add at.buergerkarte.namespaces.cardchannel.service to the
* JAXB context seed.
@@ -48,7 +57,7 @@ import javax.xml.bind.annotation.XmlSeeAlso;
at.gv.egiz.stal.service.types.ObjectFactory.class,
at.buergerkarte.namespaces.cardchannel.service.ObjectFactory.class
})
-interface STALPortType extends at.gv.egiz.stal.service.STALPortType {
+public interface STALPortType extends at.gv.egiz.stal.service.STALPortType {
// doesn't seed
// public static final ScriptType seed = (new ObjectFactory()).createScriptType();
@@ -61,9 +70,45 @@ interface STALPortType extends at.gv.egiz.stal.service.STALPortType {
//java.lang.Error: Undefined operation name seedJAXBContext
// ScriptType seedJAXBContext();
-// @WebMethod
-// @WebResult(name = "GetNextRequestResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
-// @Override
-// public GetNextRequestResponseType connect(
-// @WebParam(name = "SessionId", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1") String sessionId);
+ /**
+ * Initial connection, get the first request.
+ *
+ * @param sessionId
+ * @return
+ * returns at.gv.egiz.stal.service.types.GetNextRequestResponseType
+ */
+ @WebMethod
+ @WebResult(name = "GetNextRequestResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
+ public GetNextRequestResponseType connect(
+ @WebParam(name = "SessionId", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
+ String sessionId);
+
+ /**
+ * Fetch the next request.
+ *
+ * @param request
+ * @return
+ * returns at.gv.egiz.stal.service.types.GetNextRequestResponseType
+ */
+ @WebMethod(operationName = "nextRequest")
+ @WebResult(name = "GetNextRequestResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
+ public GetNextRequestResponseType getNextRequest(
+ @WebParam(name = "GetNextRequest", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
+ GetNextRequestType request);
+
+ /**
+ * Fetch the signed references corresponding to the previous SignatureRequest.
+ *
+ * @param request
+ * @return
+ * returns at.gv.egiz.stal.service.types.GetHashDataInputResponseType
+ * @throws GetHashDataInputFault
+ */
+ @WebMethod
+ @WebResult(name = "GetHashDataInputResponse", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
+ public GetHashDataInputResponseType getHashDataInput(
+ @WebParam(name = "GetHashDataInput", targetNamespace = "http://www.egiz.gv.at/stal", partName = "part1")
+ GetHashDataInputType request)
+ throws GetHashDataInputFault
+ ;
}
diff --git a/STALXService/src/main/java/at/gv/egiz/stalx/service/STALService.java b/STALXService/src/main/java/at/gv/egiz/stalx/service/STALService.java
index 427b0a87..9851d449 100644
--- a/STALXService/src/main/java/at/gv/egiz/stalx/service/STALService.java
+++ b/STALXService/src/main/java/at/gv/egiz/stalx/service/STALService.java
@@ -74,7 +74,7 @@ public class STALService
* returns STALPortType
*/
@WebEndpoint(name = "STALPort")
- public at.gv.egiz.stal.service.STALPortType getSTALPort() {
+ public STALPortType getSTALPort() {
return super.getPort(new QName("http://www.egiz.gv.at/wsdl/stal", "STALPort"), STALPortType.class);
}