Index: vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/CancelContainer/Test.cls.xml =================================================================== diff -u -r42173 -r42209 --- vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/CancelContainer/Test.cls.xml (.../Test.cls.xml) (revision 42173) +++ vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/CancelContainer/Test.cls.xml (.../Test.cls.xml) (revision 42209) @@ -132,7 +132,7 @@ ]]> - + Index: vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/ReprintContainer/Test.cls.xml =================================================================== diff -u -r41765 -r42209 --- vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/ReprintContainer/Test.cls.xml (.../Test.cls.xml) (revision 41765) +++ vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/ReprintContainer/Test.cls.xml (.../Test.cls.xml) (revision 42209) @@ -67,8 +67,7 @@ + + + + 1 WS.AX.Transport.GLS.v01.dto.ReprintContainerRequest Index: vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/RegisterContainer/Test.cls.xml =================================================================== diff -u -r41767 -r42209 --- vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/RegisterContainer/Test.cls.xml (.../Test.cls.xml) (revision 41767) +++ vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/RegisterContainer/Test.cls.xml (.../Test.cls.xml) (revision 42209) @@ -110,13 +110,13 @@ #dim Response as WS.AX.Transport.GLS.v01.dto.RegisterContainerResponse = RegisterContainer.RegisterContainer(Request) Do $$$AssertEquals(Response.IsGelukt,$$$False) - DO $$$AssertEquals(Response.Melding,"Foutmelding voor gebruiker","") + Do $$$AssertEquals(Response.Melding,"Foutmelding voor gebruiker","") Do RegisterContainerRequestConvertorMock.Verifieer() ]]> - + Index: WSimpl/AX/Transport/GLS/v01/RegistrationService/RegisterContainer.cls.xml =================================================================== diff -u -r41767 -r42209 --- WSimpl/AX/Transport/GLS/v01/RegistrationService/RegisterContainer.cls.xml (.../RegisterContainer.cls.xml) (revision 41767) +++ WSimpl/AX/Transport/GLS/v01/RegistrationService/RegisterContainer.cls.xml (.../RegisterContainer.cls.xml) (revision 42209) @@ -67,14 +67,15 @@ } catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() - If Exception.%ClassName(1) = ##class(APPS.TRANSP.GLS.Exceptions.CommunicatieException).%ClassName(1) { Set Response = ##class(WS.AX.Transport.GLS.v01.dto.RegisterContainerResponse).%New() Set Response.IsGelukt = $$$False - Set Response.Melding = Exception.GeefOmschrijving() Set Response.ShipmentId = Request.LeveringNummer Set Response.ContainerId = Request.Container.VerpakkingEenheidId + + If Exception.%ClassName(1) = ##class(APPS.TRANSP.GLS.Exceptions.CommunicatieException).%ClassName(1) { + Set Response.Melding = Exception.GeefOmschrijving() } else { - Do ##class(TECH.ExceptionHandler).Rethrow(Exception) + Set Response.Melding = "Gelieve IT te contacteren : "_ Exception.GeefOmschrijving() } } Quit Response Index: vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/ConfirmLoad/Test.cls.xml =================================================================== diff -u -r41767 -r42209 --- vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/ConfirmLoad/Test.cls.xml (.../Test.cls.xml) (revision 41767) +++ vhUnitTest/WSimpl/AX/Transport/GLS/v01/RegistrationService/ConfirmLoad/Test.cls.xml (.../Test.cls.xml) (revision 42209) @@ -47,7 +47,7 @@ ]]> - + Index: WSimpl/AX/Transport/GLS/v01/RegistrationService/ConfirmLoad.cls.xml =================================================================== diff -u -r41767 -r42209 --- WSimpl/AX/Transport/GLS/v01/RegistrationService/ConfirmLoad.cls.xml (.../ConfirmLoad.cls.xml) (revision 41767) +++ WSimpl/AX/Transport/GLS/v01/RegistrationService/ConfirmLoad.cls.xml (.../ConfirmLoad.cls.xml) (revision 42209) @@ -40,12 +40,14 @@ Set Response.IsGelukt = $$$True } catch { #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch() + + Set Response = ##class(WS.AX.Transport.GLS.v01.dto.RegisterContainerResponse).%New() + Set Response.IsGelukt = $$$False + If Exception.%ClassName(1) = ##class(APPS.TRANSP.GLS.Exceptions.CommunicatieException).%ClassName(1) { - Set Response = ##class(WS.AX.Transport.GLS.v01.dto.RegisterContainerResponse).%New() - Set Response.IsGelukt = $$$False Set Response.Melding = Exception.GeefOmschrijving() } else { - Do ##class(TECH.ExceptionHandler).Rethrow(Exception) + Set Response.Melding = "Gelieve IT te contacteren : "_ Exception.GeefOmschrijving() } } Quit Response Index: WSimpl/AX/Transport/GLS/v01/RegistrationService/ReprintContainer.cls.xml =================================================================== diff -u -r41763 -r42209 --- WSimpl/AX/Transport/GLS/v01/RegistrationService/ReprintContainer.cls.xml (.../ReprintContainer.cls.xml) (revision 41763) +++ WSimpl/AX/Transport/GLS/v01/RegistrationService/ReprintContainer.cls.xml (.../ReprintContainer.cls.xml) (revision 42209) @@ -31,25 +31,33 @@ WS.AX.Transport.GLS.v01.dto.ReprintContainerResponse Index: WSimpl/AX/Transport/GLS/v01/RegistrationService/CancelContainer.cls.xml =================================================================== diff -u -r41767 -r42209 --- WSimpl/AX/Transport/GLS/v01/RegistrationService/CancelContainer.cls.xml (.../CancelContainer.cls.xml) (revision 41767) +++ WSimpl/AX/Transport/GLS/v01/RegistrationService/CancelContainer.cls.xml (.../CancelContainer.cls.xml) (revision 42209) @@ -60,7 +60,9 @@ } elseif $classname(Exceptie) = ##class(APPS.TRANSP.GLS.Exceptions.CommunicatieException).%ClassName(1) { Set Response = ..VerzendDataConvertor.ConverteerNaarCancelContainerResponse($$$True,Exceptie.GeefOmschrijving()) } else { - Do ##class(TECH.ExceptionHandler).Rethrow(Exceptie) + Set Response = ##class(WS.AX.Transport.GLS.v01.dto.CancelContainerResponse).%New() + Set Response.IsGelukt = $$$False + Set Response.Melding = "Gelieve IT te contacteren : " _ Exceptie.GeefOmschrijving() } } Quit Response