Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Die AnfrageThe request

Code Block
https://b2b.beispielserver.com/?RequestName=OfferQueryRequest&BuyersID=B127645&Password=secret&FromDate=2019-08-01&RequestReference=SONDERANGEBOT

wird beispielhaft vom Server mit folgendem Response beantwortet receives the following server response, for example:

Code Block
languagexml
<?xml version="1.0" encoding="utf-8" ?>
<OfferQueryResponse xmlns="urn:veloconnect:receipt-1.3" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">
 <vct:BuyersID>B127645</vct:BuyersID>
 <vct:ResponseCode>200</vct:ResponseCode>
 <OfferHeader>
   <OfferID>O1234</OfferID>
   <cbc:IssueDate>2019-09-15</cbc:IssueDate>
   <RequestReference>SONDERANGEBOT-2019-09</RequestReference>
 </OfferHeader>
 <OfferHeader>
   <OfferID>O1235</OfferID>
   <cbc:IssueDate>2019-08-15</cbc:IssueDate>
   <RequestReference>SONDERANGEBOT-2019-08</RequestReference>
 </OfferHeader>
</OfferQueryResponse>

Würde der Server If the server supported XML-POST(-S) unterstützen, hätte der Request auch durch POST des folgenden Body realisiert werden können, the request could also have been realized via a POST of the following body:

Code Block
<?xml version="1.0" encoding="utf-8" ?>
<OfferQueryRequest xmlns="urn:veloconnect:receipt-1.3" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">
 <vct:BuyersID>B127645</vct:BuyersID>
 <vct:Credential><vct:Password>secret</vct:Password></vct:Credential>
   <DateRange>
       <FromDate>2019-08-01</FromDate>
   </DateRange>
   <RequestReference>SONDERANGEBOT</RequestReference>
</OfferQueryRequest>

Um die Details abzurufen, verwendet der Client nun folgenden - inhaltlich leicht falschen - RequestTo fetch details, the client now uses the following request whose content is slightly incorrect:

Code Block
https://b2b.beispielserver.com/?RequestName=OfferDetailsRequest&BuyersID=B127645&Password=secret&OfferID=O1234&OfferID=SONDERANGEBOT-2019-08


Der Server antwortet hierauf mitThe server then responds with:

Code Block
<?xml version="1.0" encoding="utf-8" ?>
<OfferDetailsResponse xmlns="urn:veloconnect:receipt-1.3" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">
 <vct:BuyersID>B127645</vct:BuyersID>
 <vct:ResponseCode>200</vct:ResponseCode>
 <Offer>
   <OfferID>O1234</OfferID>
   <cbc:IssueDate>2019-09-15</cbc:IssueDate>
   <RequestReference>SONDERANGEBOT-2019-09</RequestReference>
   <ValidRange>
       <FromDate>2019-09-15</FromDate>
       <ThruDate>2019-10-15</ThruDate>
   </ValidRange>
   <cac:Item>
     <cbc:Description>KOOL-STOP MTB contoured (Chart Index C1) gebogene Canti-Bremsschuhe, dual compound</cbc:Description>
     <cac:SellersItemIdentification>
       <cac:ID>221-98</cac:ID>
     </cac:SellersItemIdentification>
     <cac:ManufacturersItemIdentification>
       <cac:ID>RE 397 KS</cac:ID>
       <cac:IssuerParty><cac:PartyName><cbc:Name>KOOL STOP</cbc:Name></cac:PartyName></cac:IssuerParty>
     </cac:ManufacturersItemIdentification>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">6.50</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
     </cac:BasePrice>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">5.30</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
       <cbc:MinimumQuantity quantityUnitCode="EA">25</cbc:MinimumQuantity>
     </cac:BasePrice>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">5.00</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
       <cbc:MinimumQuantity quantityUnitCode="EA">50</cbc:MinimumQuantity>
     </cac:BasePrice>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">4.50</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
       <cbc:MinimumQuantity quantityUnitCode="EA">100</cbc:MinimumQuantity>
     </cac:BasePrice>
   </cac:Item>
    <cac:Item>
     <cbc:Description>KOOL-STOP MTB contoured (Chart Index T1) gebogene Schraub-Bremsschuhe, dual compound</cbc:Description>
     <cac:SellersItemIdentification>
       <cac:ID>222-98</cac:ID>
     </cac:SellersItemIdentification>
     <cac:ManufacturersItemIdentification>
       <cac:ID>RE 387 KS</cac:ID>
       <cac:IssuerParty><cac:PartyName><cbc:Name>KOOL STOP</cbc:Name></cac:PartyName></cac:IssuerParty>
     </cac:ManufacturersItemIdentification>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">7.00</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
     </cac:BasePrice>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">6.50</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
       <cbc:MinimumQuantity quantityUnitCode="EA">25</cbc:MinimumQuantity>
     </cac:BasePrice>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">6.00</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
       <cbc:MinimumQuantity quantityUnitCode="EA">50</cbc:MinimumQuantity>
     </cac:BasePrice>
     <cac:BasePrice>
       <cbc:PriceAmount amountCurrencyID="EUR">5.30</cbc:PriceAmount>
       <cbc:BaseQuantity quantityUnitCode="EA">1</cbc:BaseQuantity>
       <cbc:MinimumQuantity quantityUnitCode="EA">100</cbc:MinimumQuantity>
     </cac:BasePrice>
   </cac:Item>
  </Offer>
  <UnknownID>SONDERANGEBOT-2019-08</UnknownID>
</OfferDetailsResponse>

Würde der Server If the server supported XML-POST(-S) unterstützen, hätte der Request auch durch POST des folgenden Body realisiert werden können, the request could also have been realized via a POST of the following body:

Code Block
<?xml version="1.0" encoding="utf-8" ?>
<OfferDetailsRequest xmlns="urn:veloconnect:receipt-1.3" xmlns:vct="urn:veloconnect:transaction-1.0" xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-1.0">
 <vct:BuyersID>B127645</vct:BuyersID>
 <vct:Credential><vct:Password>secret</vct:Password></vct:Credential>
 <OfferID>O1234</OfferID>
 <OfferID>SONDERANGEBOT-2019-08</OfferID>
</OfferDetailsRequest>

...