ProductService
Click here for a complete list of operations.
GetMenuSubItems
For suppliers only. Returns the sub categories of the parent category. NOT recursive, so the Children-variable of the returned MenuItem will always be null, even though children might exist. -1 = fetch root nodes. 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/GetMenuSubItems" <?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> <GetMenuSubItems xmlns="http://www.opv.se/"> <parentMenuItemId>long</parentMenuItemId> <language>string</language> <secKey>string</secKey> </GetMenuSubItems> </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> <GetMenuSubItemsResponse xmlns="http://www.opv.se/"> <GetMenuSubItemsResult> <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> </GetMenuSubItemsResult> </GetMenuSubItemsResponse> </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> <GetMenuSubItems xmlns="http://www.opv.se/"> <parentMenuItemId>long</parentMenuItemId> <language>string</language> <secKey>string</secKey> </GetMenuSubItems> </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> <GetMenuSubItemsResponse xmlns="http://www.opv.se/"> <GetMenuSubItemsResult> <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> </GetMenuSubItemsResult> </GetMenuSubItemsResponse> </soap12:Body> </soap12:Envelope>