1313package org .eclipse .keyple .distributed .integration .readerclientside .app ;
1414
1515import java .util .List ;
16- import org .eclipse .keyple .card .generic .ChannelControl ;
1716import org .eclipse .keyple .card .generic .GenericCardSelectionExtension ;
1817import org .eclipse .keyple .card .generic .GenericExtensionService ;
1918import org .eclipse .keyple .core .service .Plugin ;
2726import org .eclipse .keyple .distributed .integration .readerclientside .model .InputDataDto ;
2827import org .eclipse .keyple .distributed .integration .readerclientside .model .OutputDataDto ;
2928import org .eclipse .keypop .reader .CardReader ;
29+ import org .eclipse .keypop .reader .ChannelControl ;
3030import org .eclipse .keypop .reader .ReaderApiFactory ;
3131import org .eclipse .keypop .reader .selection .CardSelectionManager ;
3232import org .eclipse .keypop .reader .selection .CardSelectionResult ;
@@ -82,7 +82,8 @@ Object executeService(Plugin plugin, CardReader reader) {
8282 GenericExtensionService .getInstance ()
8383 .createCardTransaction (reader , card )
8484 .prepareApdu ("0000000000" )
85- .processApdusToHexStrings (ChannelControl .CLOSE_AFTER );
85+ .processCommands (ChannelControl .CLOSE_AFTER )
86+ .getResponsesAsHexStrings ();
8687 return new OutputDataDto ().setUserId (inputDataDto .getUserId ()).setSuccessful (true );
8788 } catch (RuntimeException e ) {
8889 if (e instanceof StubNetworkConnectionException ) {
@@ -104,7 +105,8 @@ Object executeService(Plugin plugin, CardReader reader) {
104105 GenericExtensionService .getInstance ()
105106 .createCardTransaction (reader , card )
106107 .prepareApdu ("0000000000" )
107- .processApdusToHexStrings (ChannelControl .CLOSE_AFTER );
108+ .processCommands (ChannelControl .CLOSE_AFTER )
109+ .getResponsesAsHexStrings ();
108110 return new OutputDataDto ().setUserId (inputDataDto .getUserId ()).setSuccessful (true );
109111 } catch (RuntimeException e ) {
110112 if (e instanceof StubNetworkConnectionException ) {
0 commit comments