Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Es soll der Status der Bestandsübermittlung abgefragt werden. Hierzu werden an die Adresse https://b2b.beispielserver.com/ mittels der POST-Methode des HTTP-Protokolls folgende Daten vom Medientyp application/xml übertragen:

<?xml version="1.0" encoding="utf-8"?>
<GetItemStatusStockTransmitB2BRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2B-1.4">
  <BuyersID xmlns="urn:veloconnect:transaction-1.0">B127645</BuyersID>
  <Credential xmlns="urn:veloconnect:transaction-1.0">
    <Password>secret</Password>
  </Credential>
  <TransactionID xmlns="urn:veloconnect:transaction-1.0">44f80ce3-05c1-4a28-b981-8b4a0794a7a4</TransactionID>
  <IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest>
  <StartIndex>0</StartIndex>
  <Count>2</Count>
</GetItemStatusStockTransmitB2BRequest>

Alternativ dazu könnte auch folgende URL abgerufen werden:

https://b2b.beispielserver.com/?BuyersID=B127645&Password=secret&IsTest=true&RequestName=GetItemStatusStockTransmitB2BRequest&TransactionId=8069d0b6-745f-4557-816f-c1c49d80121d&StartIndex=0&Count=0

Die Antwort des Servers sieht beispielsweise so aus:

<?xml version="1.0" encoding="utf-8"?>
<GetItemStatusStockTransmitB2BResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2B-1.4">
  <BuyersID xmlns="urn:veloconnect:transaction-1.0">B127645</BuyersID>
  <ResponseCode xmlns="urn:veloconnect:transaction-1.0">200</ResponseCode>
  <TransactionID xmlns="urn:veloconnect:transaction-1.0">44f80ce3-05c1-4a28-b981-8b4a0794a7a4</TransactionID>
  <StatusCode xmlns="urn:veloconnect:transaction-1.0">85</StatusCode>
  <IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest>
  <StartIndex>0</StartIndex>
  <Count>2</Count>
  <TotalCount>6</TotalCount>
  <StockTransmitB2BResponseLine>
    <SellersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>1</ID>
    </SellersItemIdentification>
    <BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>111</ID>
    </BuyersItemIdentification>
    <Available>false</Available>
  </StockTransmitB2BResponseLine>
  <StockTransmitB2BResponseLine>
    <SellersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>42213526600</ID>
    </SellersItemIdentification>
    <BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>111</ID>
    </BuyersItemIdentification>
    <Available>false</Available>
  </StockTransmitB2BResponseLine>
</GetItemStatusStockTransmitB2BResponse>

Hieran ist folgendes zu erkennen:

  • Die erzeugte Transaktionsinstanz hat die TransactionID 44f80ce3-05c1-4a28-b981-8b4a0794a7a4.

  • Die Transaktion befindet sich im Zustand 85, d.h. die Items wurden importiert

  • No labels