diff --git a/TylerEfmClient/src/main/java/edu/suffolk/litlab/efsp/tyler/TylerClients.java b/TylerEfmClient/src/main/java/edu/suffolk/litlab/efsp/tyler/TylerClients.java index bda60f3a6..ddd562786 100644 --- a/TylerEfmClient/src/main/java/edu/suffolk/litlab/efsp/tyler/TylerClients.java +++ b/TylerEfmClient/src/main/java/edu/suffolk/litlab/efsp/tyler/TylerClients.java @@ -44,6 +44,12 @@ public static final TylerEnv getTylerEnv() { return TylerEnv.from(ServerEnv.fromEnvVar()); } + /** + * Gets the EfmUserService from the individual jursdiction and env arguments. + * + * @param jurisdiction e.g. "illinois". + * @param env e.g. "stage", "test", or "prod" + */ public static Optional getEfmUserFactory(Jurisdiction jurisdiction) { var version = getVersion(jurisdiction); var domain = new TylerDomain(jurisdiction, getTylerEnv()); @@ -64,6 +70,13 @@ public static Optional getEfmFirmFactory(Jurisdiction jurisdic }); } + /** + * Gets Tyler server's root URL for a given jurisdiction / Tyler Env (i.e. california stage). + * + * @param jurisdiction + * @param envEnum + * @return + */ public static String getTylerServerRootUrl(Jurisdiction jurisdiction) { TylerDomain domain = new TylerDomain(jurisdiction, getTylerEnv()); if (domain.jurisdiction() == Jurisdiction.CALIFORNIA) { diff --git a/TylerEfmClient/src/main/resources/wsdl/v2022_1/test/mock-EFMFirmServiceSingle.svc.wsdl b/TylerEfmClient/src/main/resources/wsdl/v2022_1/test/mock-EFMFirmServiceSingle.svc.wsdl new file mode 100644 index 000000000..a39261e7d --- /dev/null +++ b/TylerEfmClient/src/main/resources/wsdl/v2022_1/test/mock-EFMFirmServiceSingle.svc.wsdl @@ -0,0 +1,4933 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/TylerEfmClient/src/main/resources/wsdl/v2022_1/test/mock-EFMUserServiceSingle.svc.wsdl b/TylerEfmClient/src/main/resources/wsdl/v2022_1/test/mock-EFMUserServiceSingle.svc.wsdl new file mode 100644 index 000000000..0f5d682a1 --- /dev/null +++ b/TylerEfmClient/src/main/resources/wsdl/v2022_1/test/mock-EFMUserServiceSingle.svc.wsdl @@ -0,0 +1,2753 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/developing.md b/docs/developing.md index f82362062..6a9b5adc2 100644 --- a/docs/developing.md +++ b/docs/developing.md @@ -55,6 +55,34 @@ mvn spotbugs:spotbugs mvn spotbugs:gui ``` +#### Transforming `.wsdl` mock files + +We need to modify newly downloaded `.wsdl` files to allow them to be tested with a mock server and to make them more readable. We hope to eventually automate this. + +**Copy** + +Duplicate the updated "illinois" `.wsdl` files in `/src/main/resources/wsdl/test`. Replace "illinois" with "mock" and delete any additional text that the duplication may have added (like "copy" or "(1)"). + +**Format** + + + +This assumes you're using a dedicated code editor, like VSCode or SublimeText. + +* Copy and paste the current code into https://toolboxfy.com/tool/wsdl-beautifier. +* Replace the text of the current file with the result of the beautifier. +* Put attributes on new lines: + * "Find all" with a regular expression: `[^=\s]+:?[^=\s]+="`. + * Select the space before all found items and replace with a new line. + * Some editors may indent correctly. For SublimeText use cmd/ctrl+shift+p, type in "reindent", and choose to "Reindent lines". + +Now the changes you need to make will be easier to see. + +**Modify values** + +* If you're copying the `illinois` files, replace `https://illinois-test.tylertech.cloud` with http://host.docker.internal:8080 (find regex that patterns "illinois-text") +* Remove all `Policy` elements + The later command will open a GUI to see all of the bugs that it's found. ## Working with Docassemble diff --git a/env.example b/env.example index 2018aa41b..e9b015f97 100644 --- a/env.example +++ b/env.example @@ -84,4 +84,9 @@ X509_PASSWORD= #DISABLE_SCHEDULE_FOR_CODE_UPDATE=false # Leave commented out or set to false to have the CodeUpdater run daily at around 2:15 am. # Set to true to immediately run the Tyler EFM CodeUpdater upon startup. This is useful for testing. -#SCHEDULE_CODE_UPDATE_IMMEDIATELY=false \ No newline at end of file +#SCHEDULE_CODE_UPDATE_IMMEDIATELY=false + +##### Development ##### +# The server which the proxy server calls. By default, it's a Tyler server. +# During development, it's your test server. Discuss: test where this is used? +ENDPOINT_ROOT=http://host.docker.internal:8080/ diff --git a/proxyserver/src/main/resources/wsdl/test/mock-CourtSchedulingMDE.wsdl b/proxyserver/src/main/resources/wsdl/test/mock-CourtSchedulingMDE.wsdl new file mode 100644 index 000000000..d750e7cfe --- /dev/null +++ b/proxyserver/src/main/resources/wsdl/test/mock-CourtSchedulingMDE.wsdl @@ -0,0 +1,189 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-CourtRecordMDEService.wsdl b/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-CourtRecordMDEService.wsdl new file mode 100644 index 000000000..4d0edae98 --- /dev/null +++ b/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-CourtRecordMDEService.wsdl @@ -0,0 +1,21 @@ + + + + + + + + + diff --git a/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-FilingReviewMDEService.wsdl b/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-FilingReviewMDEService.wsdl new file mode 100644 index 000000000..15b2a616b --- /dev/null +++ b/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-FilingReviewMDEService.wsdl @@ -0,0 +1,24 @@ + + + + + + + + + diff --git a/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-ServiceMDEService.wsdl b/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-ServiceMDEService.wsdl new file mode 100644 index 000000000..8474c80ee --- /dev/null +++ b/proxyserver/src/main/resources/wsdl/test/mock-ECF-4.0-ServiceMDEService.wsdl @@ -0,0 +1,20 @@ + + + + + + + +