summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/at/gv/util/client/ur_V5/URClient.java33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/main/java/at/gv/util/client/ur_V5/URClient.java b/src/main/java/at/gv/util/client/ur_V5/URClient.java
index f391c32..3855927 100644
--- a/src/main/java/at/gv/util/client/ur_V5/URClient.java
+++ b/src/main/java/at/gv/util/client/ur_V5/URClient.java
@@ -56,6 +56,7 @@ import at.gv.util.xsd.ur_V5.search.BestandszeitraumVollzug;
import at.gv.util.xsd.ur_V5.search.FktRegelTypVollzug;
import at.gv.util.xsd.ur_V5.search.FunktionVollzug;
import at.gv.util.xsd.ur_V5.search.SucheUnternehmenNachBpkRequest;
+import at.gv.util.xsd.ur_V5.search.SucheUnternehmenNachIdRequest;
import at.gv.util.xsd.ur_V5.search.SucheUnternehmenRequest;
import at.gv.util.xsd.ur_V5.search.SucheUnternehmensdaten;
import at.gv.util.xsd.ur_V5.simpletypes.EvbStatusTyp;
@@ -86,13 +87,39 @@ public class URClient {
initialize();
}
+// public List<NichtNatuerlichePersonTyp> searchByRegisterNumberFullInfo(String number, String type, int maxResults) throws Exception {
+//
+// SucheUnternehmenNachIdRequest request = new SucheUnternehmenNachIdRequest();
+//
+// if (type.equals("ERJ"))
+// request.setErj(number);
+// else if (type.equals("FBN"))
+// request.setFbn(number);
+// else if (type.equals("KUR"))
+// request.setKur(number);
+// else if (type.equals("SEK"))
+// request.setSek(number);
+// else if (type.equals("ZVR"))
+// request.setZvr(number);
+// else
+// throw new Exception("Wrong RegisterNumber Type");
+//
+// request.setMitHistorie(true);
+//
+// SearchCriteriaType sct = new SearchCriteriaType();
+// sct.setSucheUnternehmenNachIdRequest(request);
+// List<ResultRecord> results = searchByExample(sct, -1);
+//
+// return getNichtNatuerlichePersonen(results);
+// }
+
public List<URSearchResult> searchByBpk(String vzbpk) throws URClientException {
SucheUnternehmenNachBpkRequest request = new SucheUnternehmenNachBpkRequest();
request.setVersion(version);
request.setBpkWTUREncoded(vzbpk);
request.setNurAktive(true);
-
+
SearchCriteriaType sct = new SearchCriteriaType();
sct.setSucheUnternehmenNachBpkRequest(request);
@@ -108,6 +135,7 @@ public class URClient {
sud.setIdArt(type);
request.setUnternehmensdaten(sud);
+
SearchCriteriaType sct = new SearchCriteriaType();
sct.setSucheUnternehmenRequest(request);
@@ -127,7 +155,7 @@ public class URClient {
SearchCriteriaType sct = new SearchCriteriaType();
sct.setSucheUnternehmenRequest(request);
-
+
List<ResultRecord> results = searchByExample(sct, maxResults);
return getNichtNatuerlichePersonen(results);
}
@@ -359,6 +387,7 @@ public class URClient {
body.setSearchCriteria(sct);
+
//request UR service
SearchResponseType srt = null;
try {