ProductService


Click here for a complete list of operations.

GetCustomProductData

Works just like GetProductData, but lets you decide exactly what information to retrieve about each product. Use the GetCustomProductDataFieldNames-method to get a list of all valid field names that can be requested. The product data is delivered in a name-value-collection called Data in each ArbitraryProduct-object. langTargetmarketLimit can be used to only request data from products with information in a certain language, thats sold in the requested country. It should be written in ISO 639.1 and ISO 3166. So sv-SE will for instance request Swedish products with information in swedish. If langTargetmarketLimit is null, a product from any country with any language might be returned

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /WS/General/v181/ProductService.asmx HTTP/1.1
Host: api.opv.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.opv.se/GetCustomProductData"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCustomProductData xmlns="http://www.opv.se/">
      <gtinVec>
        <string>string</string>
        <string>string</string>
      </gtinVec>
      <requestedDataFields>
        <string>string</string>
        <string>string</string>
      </requestedDataFields>
      <langTargetmarketLimit>string</langTargetmarketLimit>
      <secKey>string</secKey>
    </GetCustomProductData>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCustomProductDataResponse xmlns="http://www.opv.se/">
      <GetCustomProductDataResult>
        <Data>
          <ArbitraryProduct>
            <GTIN>string</GTIN>
            <MatchFound>boolean</MatchFound>
            <Data xsi:nil="true" />
          </ArbitraryProduct>
          <ArbitraryProduct>
            <GTIN>string</GTIN>
            <MatchFound>boolean</MatchFound>
            <Data xsi:nil="true" />
          </ArbitraryProduct>
        </Data>
      </GetCustomProductDataResult>
    </GetCustomProductDataResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /WS/General/v181/ProductService.asmx HTTP/1.1
Host: api.opv.se
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCustomProductData xmlns="http://www.opv.se/">
      <gtinVec>
        <string>string</string>
        <string>string</string>
      </gtinVec>
      <requestedDataFields>
        <string>string</string>
        <string>string</string>
      </requestedDataFields>
      <langTargetmarketLimit>string</langTargetmarketLimit>
      <secKey>string</secKey>
    </GetCustomProductData>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <GetCustomProductDataResponse xmlns="http://www.opv.se/">
      <GetCustomProductDataResult>
        <Data>
          <ArbitraryProduct>
            <GTIN>string</GTIN>
            <MatchFound>boolean</MatchFound>
            <Data xsi:nil="true" />
          </ArbitraryProduct>
          <ArbitraryProduct>
            <GTIN>string</GTIN>
            <MatchFound>boolean</MatchFound>
            <Data xsi:nil="true" />
          </ArbitraryProduct>
        </Data>
      </GetCustomProductDataResult>
    </GetCustomProductDataResponse>
  </soap12:Body>
</soap12:Envelope>