11-- ----------------------------------------------------------------------------
22-- Ada Web Server --
33-- --
4- -- Copyright (C) 2003-2018 , AdaCore --
4+ -- Copyright (C) 2003-2020 , AdaCore --
55-- --
66-- This library is free software; you can redistribute it and/or modify --
77-- it under terms of the GNU General Public License as published by the --
@@ -501,8 +501,15 @@ package body Stub is
501501 " & SOAP.Message.XML.Image (Payload, Schema));" );
502502 end if ;
503503
504+ if O.Traces then
505+ Text_IO.Put_Line
506+ (Stub_Adb,
507+ " Pre_Call_Callback (Connection, Payload, Schema);" );
508+ end if ;
509+
504510 Text_IO.New_Line (Stub_Adb);
505511 Text_IO.Put_Line (Stub_Adb, " declare" );
512+
506513 Text_IO.Put_Line
507514 (Stub_Adb,
508515 " Response : constant SOAP.Message.Response.Object'Class" );
@@ -539,6 +546,13 @@ package body Stub is
539546 Text_IO.New_Line (Stub_Adb);
540547 end if ;
541548
549+ if O.Traces then
550+ Text_IO.Put_Line
551+ (Stub_Adb,
552+ " Post_Call_Callback (Connection,"
553+ & " Payload, Response, Schema);" );
554+ end if ;
555+
542556 Text_IO.Put_Line
543557 (Stub_Adb,
544558 " if SOAP.Message.Response.Is_Error (Response) then" );
@@ -803,6 +817,11 @@ package body Stub is
803817 end loop ;
804818 end ;
805819
820+ if O.Traces then
821+ Text_IO.Put
822+ (Stub_Adb, " , Pre_Call_Callback, Post_Call_Callback" );
823+ end if ;
824+
806825 Text_IO.Put_Line (Stub_Adb, " );" );
807826
808827 if Output /= null then
@@ -845,6 +864,9 @@ package body Stub is
845864 Text_IO.New_Line (Stub_Ads);
846865 With_Unit (Stub_Ads, " Ada.Calendar" , Elab => Off);
847866 Text_IO.New_Line (Stub_Ads);
867+ if O.Traces then
868+ With_Unit (Stub_Ads, " SOAP.Client.Callback" , Elab => Off);
869+ end if ;
848870 With_Unit (Stub_Ads, " SOAP.Types" , Elab => Children);
849871 Text_IO.New_Line (Stub_Ads);
850872 With_Unit (Stub_Ads, U_Name & " .Types" , Elab => Off);
@@ -857,6 +879,10 @@ package body Stub is
857879 Text_IO.New_Line (Stub_Ads);
858880 Text_IO.Put_Line (Stub_Ads, " use " & U_Name & " .Types;" );
859881
882+ if O.Traces then
883+ Text_IO.Put_Line (Stub_Ads, " use SOAP.Client.Callback;" );
884+ end if ;
885+
860886 Text_IO.New_Line (Stub_Ads);
861887 Text_IO.Put_Line
862888 (Stub_Ads, " Connection : constant AWS.Client.HTTP_Connection;" );
@@ -890,6 +916,7 @@ package body Stub is
890916 Text_IO.Put_Line (Stub_Adb, " use type SOAP.Parameters.List;" );
891917 Text_IO.New_Line (Stub_Adb);
892918 Text_IO.Put_Line (Stub_Adb, " pragma Style_Checks (Off);" );
919+ Text_IO.New_Line (Stub_Adb);
893920 end Start_Service ;
894921
895922end Stub ;
0 commit comments