summaryrefslogtreecommitdiff
path: root/STALXService
diff options
context:
space:
mode:
authorTobias Kellner <tobias.kellner@iaik.tugraz.at>2015-08-17 10:47:39 +0200
committerChristian Maierhofer <cmaierhofer@iaik.tugraz.at>2015-08-17 14:57:05 +0200
commit10d46b662b381874d5169be59ecf1824a119c2a2 (patch)
tree9ea0f4df52562cc5c18727f8c4104da9ba321b35 /STALXService
parentadfb498834372540fe0fc02e74342750b889ddb2 (diff)
downloadmocca-10d46b662b381874d5169be59ecf1824a119c2a2.tar.gz
mocca-10d46b662b381874d5169be59ecf1824a119c2a2.tar.bz2
mocca-10d46b662b381874d5169be59ecf1824a119c2a2.zip
Reflection workaround
Diffstat (limited to 'STALXService')
-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);
}