ProductService


Click here for a complete list of operations.

GetMenuTree

For suppliers only. Returns the entire category tree with all sub categories. If the menu is translated, it's possible to decide what translation to fetch with the language-parameter (otherwise, just supply a null value to the language parameter). The language parameter should contain a string in ISO 639-1 (sv for swedish, da for danish and so on) or ISO 639-1 and ISO 3166 (sv-SE, da-DK and so on)

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/GetMenuTree"

<?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>
    <GetMenuTree xmlns="http://www.opv.se/">
      <language>string</language>
      <secKey>string</secKey>
    </GetMenuTree>
  </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>
    <GetMenuTreeResponse xmlns="http://www.opv.se/">
      <GetMenuTreeResult>
        <Data>
          <MenuItem>
            <MenuItemId>long</MenuItemId>
            <ParentId>long</ParentId>
            <Name>string</Name>
            <Children xsi:nil="true" />
          </MenuItem>
          <MenuItem>
            <MenuItemId>long</MenuItemId>
            <ParentId>long</ParentId>
            <Name>string</Name>
            <Children xsi:nil="true" />
          </MenuItem>
        </Data>
      </GetMenuTreeResult>
    </GetMenuTreeResponse>
  </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>
    <GetMenuTree xmlns="http://www.opv.se/">
      <language>string</language>
      <secKey>string</secKey>
    </GetMenuTree>
  </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>
    <GetMenuTreeResponse xmlns="http://www.opv.se/">
      <GetMenuTreeResult>
        <Data>
          <MenuItem>
            <MenuItemId>long</MenuItemId>
            <ParentId>long</ParentId>
            <Name>string</Name>
            <Children xsi:nil="true" />
          </MenuItem>
          <MenuItem>
            <MenuItemId>long</MenuItemId>
            <ParentId>long</ParentId>
            <Name>string</Name>
            <Children xsi:nil="true" />
          </MenuItem>
        </Data>
      </GetMenuTreeResult>
    </GetMenuTreeResponse>
  </soap12:Body>
</soap12:Envelope>