procedure TForm1.MLButton2Click(Sender: TObject);
var
ret : storeOrdersResponseType;
myShipmentService44Client : ShipmentService_4_4;
apiAuth : authentication;
myPrintOptionList : array of PrintOption;
myPrintOption : PrintOption;
begin
if myAuthToken.Length>0 then begin
showmessage('StoreOrders'+chr(13)+
'delisId:'+mylogin.delisId+chr(13)+
'customerUid:'+mylogin.customerUid+chr(13)+
'authToken:'+myAuthToken+chr(13)+
'depot:'+mylogin.depot+chr(13)+
'System:'+sSystem);
with apiAuth do begin
delisId:=EditLogin.Text;
authToken := myAuthToken;
messageLanguage := 'de_DE';
end;
try
myPrintOption.paperFormat:=printOption.PaperFormat.A4;
// printOptions
// PrintOption[] myPrintOptionList = new PrintOption[1];
// PrintOption myPrintOption = new PrintOption();
// myPrintOption.setPaperFormat(
com.dpd.common.service.types.ShipmentService._4_4.PrintOptionPaperFormat.A4);
// myPrintOption.setStartPosition(
com.dpd.common.service.types.ShipmentService._4_4.StartPosition.UPPER_LEFT);
// myPrintOption.setOutputFormat(
com.dpd.common.service.types.ShipmentService._4_4.OutputFormatType.PDF);
// myPrintOptionList[0] = myPrintOption;
showmessage('storeorder');
except
showmessage('Fehler');
end;
end else begin
showmessage('Bitte erst anmelden.');
end;
end;