GetLabelImage

GetLabelImage

Summary: Retrieves the label for the food identified by the specified User Code or Food Id value as a PNG encoded bitmap.

Soap Action: http://ns.esha.com/2013/genesisapi/GetLabelImage

Request Type: ImageRequest

  • UserCode (Optional)

    • Type: String

    • The user code for the food Requested. If empty, the Food Id value is used.

  • FoodId (Optional)

    • Type: Guid

    • The value of the Id field on the food. If empty, the User Code value is used.

Response Type: ImageResponse

  • Image

    • Type: Stream

    • The png encoded bitmap of the image.

 

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:imag="http://ns.esha.com/2013/genesisapi/label/image" xmlns:gen="http://ns.esha.com/2013/genesisapi"> <soap:Header/> <soap:Body> <imag:ImageRequest> <gen:UserCode>REC-123</gen:UserCode> </imag:ImageRequest> </soap:Body> </soap:Envelope>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing"> <s:Header> <a:Action s:mustUnderstand="1">http://ns.esha.com/2013/genesisapi/label/image/getbarcodeimageresponse</a:Action> </s:Header> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <ImageResponse xmlns="http://ns.esha.com/2013/genesisapi/label/image"> <Image xmlns="http://ns.esha.com/2013/genesisapi">iVBORw0KGgoAAAANSUh...</Image> </ImageResponse> </s:Body> </s:Envelope>
POST http://localhost:80/rest/LabelImageService.svc/GetLabelImage HTTP/1.1 Content-Type: text/plain Host: localhost:80 request={"UserCode":"REC-123"}
{ "Image":"iVBORw0KGgoAAAANSUh..." }

Clicking links may navigate you away from the Trustwell site.