...
Soap Action: http://ns.esha.com/2013/genesisapi/GetBarcodeImageByFoodId
Request Type: ImageByFoodIdRequest
- FoodId
- Type: Guid
- The value of the Id field on the food.
Response Type: ImageResponse
- Image
- Type: Stream
- The png encoded bitmap of the image.
Code Block |
---|
language | xml |
---|
title | SOAP Request |
---|
linenumbers | true |
---|
collapse | true |
---|
|
<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:FoodId>8980ff36-31be-711a-5ef8-ee69ecb67fee</gen:FoodId>
</imag:ImageRequest>
</soap:Body>
</soap:Envelope> |
Code Block |
---|
title | SOAP Response |
---|
linenumbers | true |
---|
collapse | true |
---|
|
<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> |
Code Block |
---|
title | REST Request |
---|
linenumbers | true |
---|
collapse | true |
---|
|
POST http://localhost:80/rest/LabelImageService.svc/GetBarcodeImageByFoodId HTTP/1.1
Content-Type: text/plain
Host: localhost:80
request={"FoodId":"8980ff36-31be-711a-5ef8-ee69ecb67fee"} |
Code Block |
---|
title | REST Response |
---|
linenumbers | true |
---|
collapse | true |
---|
|
{
"Image":"iVBORw0KGgoAAAANSUh..."
} |