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

« Previous Version 2 Current »

Eine Verfügbarkeit soll übermittelt 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"?>
<StockTransmitB2CRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2C-1.4">
  <BuyersID xmlns="urn:veloconnect:transaction-1.0">MyBuyersId</BuyersID>
  <Credential xmlns="urn:veloconnect:transaction-1.0">
    <Password>B127645</Password>
  </Credential>
  <IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest>
  <CreateDate>2021-04-28T10:40:56.5567171+02:00</CreateDate>
  <Frequence>Complete</Frequence>
  <StockTransmitB2CLine>
    <StandardItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>42213526600</ID>
    </StandardItemIdentification>
    <BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>111</ID>
    </BuyersItemIdentification>
    <Quantity quantityUnitCode="EA" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">10</Quantity>
    <Availability>Available</Availability>
  </StockTransmitB2CLine>
  <StockTransmitB2CLine>
    <ManufacturersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>42213526600</ID>
      <IssuerParty>
        <PartyIdentification>
          <ID identificationSchemeID="BIDEXBrand">4711</ID>
        </PartyIdentification>
      </IssuerParty>
    </ManufacturersItemIdentification>
    <MarketPlaceItemIdentification>
      <ID xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">Amaz1111</ID>
    </MarketPlaceItemIdentification>
    <BuyersItemIdentification xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0">
      <ID>111</ID>
    </BuyersItemIdentification>
    <Quantity quantityUnitCode="EA" xmlns="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">20</Quantity>
    <Availability>LimitedAvailable</Availability>
  </StockTransmitB2CLine>
</StockTransmitB2CRequest>

Alternativ dazu könnte auch folgende URL abgerufen werden:

https://b2b.beispielserver.com/?BuyersID=B127645&Password=secret&IsTest=true&RequestName=StockTransmitB2CRequest&StandardItemIdentification=42213526600&BuyersItemIdentification=42213526600&CreateDate=2021-04-21

Die Antwort des Servers sieht beispielsweise so aus:

<?xml version="1.0" encoding="utf-8"?>
<StockTransmitB2CResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:veloconnect:stock-B2C-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">f9cc5ed9-129d-4a3d-ba99-488073a55c47</TransactionID>
  <StatusCode xmlns="urn:veloconnect:transaction-1.0">84</StatusCode>
  <IsTest xmlns="urn:veloconnect:transaction-1.0">true</IsTest>
</StockTransmitB2CResponse>

Hieran ist folgendes zu erkennen:

  • Die erzeugte Transaktionsinstanz hat die TransactionID f9cc5ed9-129d-4a3d-ba99-488073a55c47.

  • Die Transaktion befindet sich im Zustand 84, d.h. der Import läuft.

  • No labels