11. Beispiele

Diese Beispiele gehen von folgender Situation aus: Verkäufer A hat seinem Kunden B mitgeteilt, dass er die velo..connect-Schnittstelle wie folgt erreicht:

11.1. GetProfile

Auf die Anfrage

http://b2b.beispielserver.com/?BuyersID=B127645&Password=secret
&RequestName=GetProfileRequest

(Zeilenumbruch nur zur besseren Lesbarkeit!) wird folgende Antwort zurückgeliefert:

<?xml version="1.0" encoding="iso-8859-1" ?>
<GetProfileResponse  xmlns="urn:veloconnect:profile-1.0"
xmlns:vct="urn:veloconnect:transaction-1.0">
  <vct:BuyersID>B127645</vct:BuyersID>
  <vct:ResponseCode>200</vct:ResponseCode>
  <VeloconnectProfile> 
    <Implements> 
      <Operation>GetStatus</Operation>
      <Binding>URL</Binding> 
    </Implements>
    <Implements>
      <Operation>Rollback</Operation>
      <Binding>URL</Binding>
    </Implements>
    <Implements> 
        <Operation>GetItemDetails</Operation>
	<Binding>URL</Binding>
    </Implements> 
    <Implements> 
       <Transaction>Order</Transaction>
       <Binding>URL</Binding> 
    </Implements> 
    <Implements>
      <Transaction>Order</Transaction> 
      <Binding>XML-POST</Binding>
    </Implements> 
    <Implements> 
      <Transaction>OrderInOnlineShop</Transaction>
      <Binding>URL</Binding>
      <URI>http://shop.beispielserver.com/vc_order.jsp</URI> 
    </Implements>
    <Implements> 
      <Transaction>OrderInOnlineShop</Transaction>
      <Binding>URL</Binding>
      <URI>http://shop.beispielserver.com/vc_order.jsp</URI> 
    </Implements>
    <Property>
       <Key>OrderInOnlineShop.TransactionID</Key>
       <Value>online-basket</Value>
    </Property>
    <Property>
       <Key>Order.Availability</Key>
       <Value>true</Value>
    </Property>
    <Property>
       <Key>Order.DeliveryDate</Key>
       <Value>line</Value>
    </Property>
    <Property>
       <Key>Order.Backlog</Key>
       <Value>line</Value>
    </Property>
    <Property>
       <Key>Order.BacklogDefault</Key>
       <Value>false</Value>
    </Property>
    <Property>
       <Key>quantityUnitCode.EA</Key>
       <Value>false</Value>
    </Property>
    <Property>
       <Key>RecommendedRetailPrice.Netto</Key>
       <Value>false</Value>
    </Property>
  </VeloconnectProfile>
</GetProfileResponse>

Hieran sind zwei Besonderheiten erkennbar: Die Transaktionen Order und OrderInOnlineShop werden sowohl in der URL- als auch in der XML-POST-Bindung implementiert. Die Transaktion OrderInOnlineShop ist nicht unter der Standard-URL anzusprechen, sondern unter einer abweichenden URL.