HVS32 SOAP Interface (Interactive): Unterschied zwischen den Versionen

Aus Wiki - Heidler Strichcode GmbH
Zur Navigation springen Zur Suche springen
(Änderung 4107 von Preichert (Diskussion) rückgängig gemacht.)
Markierung: Rückgängigmachung
Zeile 1: Zeile 1:
[[en:HVS32_REST_Interface_(Interactive)]]
+
[[de:HVS32_SOAP_Schnittstelle_(Interaktiv)]]
  
 
= Prerequisites =
 
= Prerequisites =
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| DGS-Version || 3.8.2.673 or higher
+
| DGS-Version || 3.6.0.588 or higher
 
|-
 
|-
| DGS-Plugins || HVS32Server, REST Client
+
| DGS-Plugins || HVS32Server, SOAP Client
 
|}
 
|}
 
= Function description =
 
= Function description =
In interactive processing, requests are made from the dispatch system to your REST server. Thereby the DGS acts as REST Client.<br>
+
In interactive processing, requests are made from the dispatch system to your SOAP server. Thereby the DGS acts as SOAP Client.<br>
 
This gives you the possibility, for example, to request shipping data for a reference number (e.g. delivery note number) from the HVS32. The functionalities available to you can be found under [[#Verfügbare HVS32 Funktionen|Verfügbare HVS32 Funktionen]].
 
This gives you the possibility, for example, to request shipping data for a reference number (e.g. delivery note number) from the HVS32. The functionalities available to you can be found under [[#Verfügbare HVS32 Funktionen|Verfügbare HVS32 Funktionen]].
  
Zeile 23: Zeile 23:
 
= Examples =
 
= Examples =
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">'''VersandDatenAnfrage ([https://wiki.heidler-strichcode.de/w/index.php?title=HVS32_Funktionen_Interaktiv#Datenanfragemeldung_.28VersandDatenAnfrage.29 Datenanfragemeldung])'''</div>
+
<div style="font-weight:bold;line-height:1.6;">'''VersandDatenAnfrage'''</div>
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
Request from DGS to REST Server
+
;request from the DGS to the SOAP server.
<source lang="json">
+
<source>
{
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:std="http://my.path.to.endpoint.functions">
  "LIEFERSCHEINNR": "LS-123"
+
<soapenv:Header/>
}
+
<soapenv:Body>
 +
<std:my_function>
 +
<arg0>
 +
<item>LS-123</item>
 +
</arg0>
 +
</std:my_function>
 +
</soapenv:Body>
 +
</soapenv:Envelope>
 
</source>
 
</source>
<br>
+
 
Response from REST Server to DGS for the above request
+
;Feedback from the SOAP server to the DGS about the above request.
<source lang="json">
+
<source>
{
+
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
  "AUFTRAGGEBERID": "01",
+
   <S:Body>
  "AUFTRAGNR": "A1234",
+
      <ns2:my_function_Response xmlns:ns2="http://my.path.to.endpoint">
  "FEHLER": null,
+
         <return>
  "FEHLERTEXT1": null,
+
            <AUFTRAGGEBERID>01</AUFTRAGGEBERID>
  "KUNDENNR": "KD123",
+
            <LIEFERSCHEINNR>LS-123</LIEFERSCHEINNR>
  "LIEFERSCHEINNR": "LS-123",
+
            <PACKSTUECKID>PID-53185</PACKSTUECKID>
  "VERSANDARTID": "DPD",
+
            <VERSANDARTID>UPS</VERSANDARTID>
   "ZIELADRLKZ": "D",
+
            <ZIELADRLKZ>D</ZIELADRLKZ>
  "ZIELADRNAME1": "Heidler Strichcode GmbH",
+
            <ZIELADRNAME1>Heidler Strichcode GmbH</ZIELADRNAME1>
  "ZIELADRNAME2": "Wareneingang",
+
            <ZIELADRORT>Wolfschlugen</ZIELADRORT>
  "ZIELADRNAME3": null,
+
            <ZIELADRPLZ>72649</ZIELADRORT>
  "ZIELADRORT": "Wolfschlugen",
+
            <ZIELADRSTRASSE>Max-Eyth-Straße 25</ZIELADRORT>
  "ZIELADRPLZ": "72649",
+
        </return>
  "ZIELADRSTRASSE": "Max-Eyth-Straße 25",
+
      </ns2:my_function_Response>
  "ArtikelDaten": [
+
   </S:Body>
      {
+
</S:Envelope>
        "ARTIKELBTNNR": "123",
 
        "ARTIKELGEWICHT": "0.5",
 
        "ARTIKELMENGE": "1",
 
        "ARTIKELTEXT1": "Testartikel 1",
 
        "ARTIKELTEXT2": null,
 
        "KUNDENARTIKELNR": "0123456789",
 
        "POSITIONNR": "1"
 
      },
 
      {
 
        "ARTIKELBTNNR": "124",
 
        "ARTIKELGEWICHT": "0.25",
 
         "ARTIKELMENGE": "1",
 
        "ARTIKELTEXT1": "Testartikel 2",
 
        "ARTIKELTEXT2": null,
 
        "KUNDENARTIKELNR": "0123456790",
 
        "POSITIONNR": "2"
 
      }
 
  ]
 
}
 
</source></div></div>
 
<br>
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
 
<div style="font-weight:bold;line-height:1.6;">'''PaketscheinDruckMeldung ([https://wiki.heidler-strichcode.de/w/index.php?title=HVS32_Funktionen_Interaktiv#R.C3.BCckmeldung_der_Lieferscheindaten_.28LieferscheinRueckMeldung.29 Rückmeldung der Paketscheindaten])'''</div>
 
<div class="mw-collapsible-content">
 
Request from DGS to REST Server
 
<source lang="json">
 
{
 
  "AUFTRAGGEBERID": "01",
 
   "AUSGANGDATETIME": "01.01.2021",
 
  "DRUCKDATETIME": "01.01.2021",
 
  "GEWICHT": "0.700",
 
  "LIEFERSCHEINNR": "LS-123",
 
  "PACKSTKGES": "2",
 
  "PACKSTKNR": "1",
 
  "TRACKINGNR": "00112233445566778899"
 
}
 
 
</source>
 
</source>
<br>
+
</div></div>
Response from REST Server to DGS for the above request<source lang="json">
 
{
 
  "FEHLER": null,
 
  "FEHLERTEXT1": null
 
}
 
</source></div></div>
 
 
<br>
 
<br>
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">'''ArtikelRueckMeldung ([https://wiki.heidler-strichcode.de/w/index.php?title=HVS32_Funktionen_Interaktiv#R.C3.BCckmeldung_der_Positionsdaten_.28Artikel.29_.28ArtikelRueckMeldung.29 Rückmeldung der Positionsdaten])'''</div>
+
<div style="font-weight:bold;line-height:1.6;">'''PaketscheinDruckMeldung'''</div>
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
Request from DGS to REST Server
+
<source>
<source lang="json">
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:std="http://my.path.to.endpoint.functions">
{
+
<soapenv:Header/>
  "LIEFERSCHEINNR": "LS-123",
+
<soapenv:Body>
  "ArtikelDaten": [
+
<std:my_function>
      {
+
<arg0>
        "ARTIKELBTNNR": "123",
+
<AUSGANGDATETIME>28.04.2020</AUSGANGDATETIME>
        "ARTIKELMENGE": "1",
+
<DRUCKDATETIME>28.04.2020 15:23:45</DRUCKDATETIME>
        "KUNDENARTIKELNR": "0123456789",
+
<FEHLERTEXT1/>
        "PACKSTKGES": "2",
+
<FEHLERTEXT2/>
        "PACKSTKNR": "1",
+
<GEBUEHR>5.30</GEBUEHR>
        "POSITIONNR": "1",
+
<GEBUEHRWAEHRUNG>EUR</GEBUEHRWAEHRUNG>
        "TRACKINGNR": "00112233445566778899"
+
<PACKSTUECKID>PID-53185</PACKSTUECKID>
      },
+
<RETOURTRACKINGNR/>
      {
+
<TRACKINGNR>1Z0000DE6860000014</TRACKINGNR>
        "ARTIKELBTNNR": "124",
+
</arg0>
        "ARTIKELMENGE": "1",
+
</std:my_function>
        "KUNDENARTIKELNR": "0123456790",
+
</soapenv:Body>
        "PACKSTKGES": "2",
+
</soapenv:Envelope>
        "PACKSTKNR": "2",
 
        "POSITIONNR": "2",
 
        "TRACKINGNR": "00112233445566778900"
 
      }
 
  ]
 
}
 
 
</source>
 
</source>
<br>
+
</div></div>
Response from REST Server to DGS for the above request<source lang="json">
 
{
 
  "FEHLER": null,
 
  "FEHLERTEXT1": null
 
}
 
</source></div></div>
 
 
<br>
 
<br>
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
 
<div class="toccolours mw-collapsible mw-collapsed" style="overflow:auto;">
<div style="font-weight:bold;line-height:1.6;">'''AusgangslistenRueckMeldung ([https://wiki.heidler-strichcode.de/w/index.php?title=HVS32_Funktionen_Interaktiv#R.C3.BCckmeldung_der_Ausgangslisten_.28AusgangslistenRueckMeldung.29 Rückmeldung der Ausgangslisten])'''</div>
+
<div style="font-weight:bold;line-height:1.6;">'''AusgangsListenRueckmeldung'''</div>
 
<div class="mw-collapsible-content">
 
<div class="mw-collapsible-content">
Request from DGS to REST Server
+
<source>
<source lang="json">
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:std="http://my.path.to.endpoint.functions">
{
+
<soapenv:Header/>
  "ListenDaten": [
+
<soapenv:Body>
      {
+
<std:my_function>
        "AUFTRAGGEBERID": "01",
+
<arg0>
        "AUSGANGDATETIME": "01.01.2021",
+
<PACKSTUECK>
        "DRUCKDATETIME": "01.01.2021",
+
<PACKSTUECKID>PID-102</PACKSTUECKID>
        "FRACHTFUEHRERTYP": "DPD",
+
<TRACKINGNR>889000232</TRACKINGNR>
        "GEWICHT": "0.700",
+
</PACKSTUECK>
        "LIEFERSCHEINNR": "LS-123",
+
<PACKSTUECK>
        "PACKSTKGES": "2",
+
<PACKSTUECKID>PID-100</PACKSTUECKID>
        "PACKSTKNR": "1",
+
<TRACKINGNR>889000221</TRACKINGNR>
        "TRACKINGNR": "00112233445566778899"
+
</PACKSTUECK>
      },
+
<PACKSTUECK>
      {
+
<PACKSTUECKID>PID-101</PACKSTUECKID>
        "AUFTRAGGEBERID": "01",
+
<TRACKINGNR>889000221</TRACKINGNR>
        "AUSGANGDATETIME": "01.01.2021",
+
</PACKSTUECK>
        "DRUCKDATETIME": "01.01.2021",
+
<PACKSTUECK>
        "FRACHTFUEHRERTYP": "DPD",
+
<PACKSTUECKID>PID-104</PACKSTUECKID>
        "GEWICHT": "0.500",
+
<TRACKINGNR>889000243</TRACKINGNR>
        "LIEFERSCHEINNR": "LS-123",
+
</PACKSTUECK>
        "PACKSTKGES": "2",
+
<PACKSTUECK>
        "PACKSTKNR": "2",
+
<PACKSTUECKID>PID-105</PACKSTUECKID>
        "TRACKINGNR": "00112233445566778900"
+
<TRACKINGNR>889000243</TRACKINGNR>
      }
+
</PACKSTUECK>
  ]
+
<PACKSTUECK>
}
+
<PACKSTUECKID>PID-106</PACKSTUECKID>
 +
<TRACKINGNR>889000243</TRACKINGNR>
 +
</PACKSTUECK>
 +
</arg0>
 +
</std:my_function>
 +
</soapenv:Body>
 +
</soapenv:Envelope>
 
</source>
 
</source>
<br>
+
</div></div>
Response from REST Server to DGS for the above request<source lang="json">
 
{
 
  "FEHLER": null,
 
  "FEHLERTEXT1": null
 
}
 
</source></div></div>
 
  
 
= FAQ / Troubleshooting =
 
= FAQ / Troubleshooting =

Version vom 1. Februar 2022, 09:23 Uhr


Prerequisites

DGS-Version 3.6.0.588 or higher
DGS-Plugins HVS32Server, SOAP Client

Function description

In interactive processing, requests are made from the dispatch system to your SOAP server. Thereby the DGS acts as SOAP Client.
This gives you the possibility, for example, to request shipping data for a reference number (e.g. delivery note number) from the HVS32. The functionalities available to you can be found under Verfügbare HVS32 Funktionen.

The DataGatewayServer (DGS) is the central communication unit through which all data is exchanged between the shipping system and the host system. It runs as a service on a Windows server.

Available HVS32 functions

Item data and dangerous goods information have a 1:n relationship with package data.

Please note that the field descriptions only refer to a standard, which should serve as a suggestion for the interface. Function names, field names /-lengths /-formats can deviate in principle, but must be considered/analyzed individually in this case.

Verfügbare HVS32 Funktionen

Examples

VersandDatenAnfrage
request from the DGS to the SOAP server.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:std="http://my.path.to.endpoint.functions">
	<soapenv:Header/>
	<soapenv:Body>
		<std:my_function>
			<arg0>
				<item>LS-123</item>
			</arg0>
		</std:my_function>
	</soapenv:Body>
</soapenv:Envelope>
Feedback from the SOAP server to the DGS about the above request.
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:my_function_Response xmlns:ns2="http://my.path.to.endpoint">
         <return>
            <AUFTRAGGEBERID>01</AUFTRAGGEBERID>
            <LIEFERSCHEINNR>LS-123</LIEFERSCHEINNR>
            <PACKSTUECKID>PID-53185</PACKSTUECKID>
            <VERSANDARTID>UPS</VERSANDARTID>
            <ZIELADRLKZ>D</ZIELADRLKZ>
            <ZIELADRNAME1>Heidler Strichcode GmbH</ZIELADRNAME1>
            <ZIELADRORT>Wolfschlugen</ZIELADRORT>
            <ZIELADRPLZ>72649</ZIELADRORT>
            <ZIELADRSTRASSE>Max-Eyth-Straße 25</ZIELADRORT>
         </return>
      </ns2:my_function_Response>
   </S:Body>
</S:Envelope>


PaketscheinDruckMeldung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:std="http://my.path.to.endpoint.functions">
	<soapenv:Header/>
	<soapenv:Body>
		<std:my_function>
			<arg0>
				<AUSGANGDATETIME>28.04.2020</AUSGANGDATETIME>
				<DRUCKDATETIME>28.04.2020 15:23:45</DRUCKDATETIME>
				<FEHLERTEXT1/>
				<FEHLERTEXT2/>
				<GEBUEHR>5.30</GEBUEHR>
				<GEBUEHRWAEHRUNG>EUR</GEBUEHRWAEHRUNG>
				<PACKSTUECKID>PID-53185</PACKSTUECKID>
				<RETOURTRACKINGNR/>
				<TRACKINGNR>1Z0000DE6860000014</TRACKINGNR>
			</arg0>
		</std:my_function>
	</soapenv:Body>
</soapenv:Envelope>


AusgangsListenRueckmeldung
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:std="http://my.path.to.endpoint.functions">
	<soapenv:Header/>
	<soapenv:Body>
		<std:my_function>
			<arg0>
				<PACKSTUECK>
					<PACKSTUECKID>PID-102</PACKSTUECKID>
					<TRACKINGNR>889000232</TRACKINGNR>
				</PACKSTUECK>
				<PACKSTUECK>
					<PACKSTUECKID>PID-100</PACKSTUECKID>
					<TRACKINGNR>889000221</TRACKINGNR>
				</PACKSTUECK>
				<PACKSTUECK>
					<PACKSTUECKID>PID-101</PACKSTUECKID>
					<TRACKINGNR>889000221</TRACKINGNR>
				</PACKSTUECK>
				<PACKSTUECK>
					<PACKSTUECKID>PID-104</PACKSTUECKID>
					<TRACKINGNR>889000243</TRACKINGNR>
				</PACKSTUECK>
				<PACKSTUECK>
					<PACKSTUECKID>PID-105</PACKSTUECKID>
					<TRACKINGNR>889000243</TRACKINGNR>
				</PACKSTUECK>
				<PACKSTUECK>
					<PACKSTUECKID>PID-106</PACKSTUECKID>
					<TRACKINGNR>889000243</TRACKINGNR>
				</PACKSTUECK>
			</arg0>
		</std:my_function>
	</soapenv:Body>
</soapenv:Envelope>

FAQ / Troubleshooting