powered by 
Overview
Directory
 -- Request
 -- Reply
Product Info
 -- Request
 -- Reply
Applications
Examples

Directory Reply

The cProductInfo Directory Reply is transmitted in response to a cProductInfo directory request. It will return XML that looks like the following:

<?xml version="1.0"?>
<Responses>
   <Error></Error>
   <Response>
      <Error></Error>
      <Barcode type=""></Barcode>
      <URL></URL>
   </Response>
</Responses>

<Responses>

You will receive one and only element. As a minimum it will contain an <Error> element. If the requests were valid, there will be one <Response> element per request.

<Error>

The error element of the Responses element is to identify errors in your request that prevented a directory lookup. Errors for a particular <Request> element will be included in the corresponding Response element, not here.

<Response>

You should receive one <Response> element per Request element. The <Response> element will contain a <Error> element, <Barcode> element, and a <URL> element.

<Error>

You will receive one <Error> element per <Response> element. This will have a mcontain text only if the directory was unable to produce a URL for your request.

<Barcode>

You will receive one <Barcode> Element per Response element. This will contain the barcode and type attriubte you passed in the request.

<URL>

You will receive one <URL> element per <Response> element. The <URL> element contains the URL to get the XML data describing the product. If there was an error (text in the <Error> element), the <URL> element will be blank.