WebService2
Click here for a complete list of operations.
SendProductMenu_FromBaran
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 /WebService2.asmx HTTP/1.1 Host: services.baransys.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/SendProductMenu_FromBaran" <?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> <SendProductMenu_FromBaran xmlns="http://tempuri.org/"> <ApiKey>string</ApiKey> <PackNumber>string</PackNumber> <MenuProductInfo> <ProductInfo_ForMenu> <ProductId>int</ProductId> <ProductName>string</ProductName> <ProductComment>string</ProductComment> <ProductPrice>string</ProductPrice> <ProductDiscountPrecent>decimal</ProductDiscountPrecent> <ProductRemainCount>decimal</ProductRemainCount> <ProductImage>base64Binary</ProductImage> <ProductImageName>string</ProductImageName> <GroupId>string</GroupId> <GroupName>string</GroupName> <GroupSort>string</GroupSort> <ChangeType>int</ChangeType> <Description>string</Description> <OrderIndex>int</OrderIndex> </ProductInfo_ForMenu> <ProductInfo_ForMenu> <ProductId>int</ProductId> <ProductName>string</ProductName> <ProductComment>string</ProductComment> <ProductPrice>string</ProductPrice> <ProductDiscountPrecent>decimal</ProductDiscountPrecent> <ProductRemainCount>decimal</ProductRemainCount> <ProductImage>base64Binary</ProductImage> <ProductImageName>string</ProductImageName> <GroupId>string</GroupId> <GroupName>string</GroupName> <GroupSort>string</GroupSort> <ChangeType>int</ChangeType> <Description>string</Description> <OrderIndex>int</OrderIndex> </ProductInfo_ForMenu> </MenuProductInfo> <TableInfo> <TableInfo_ForMenu> <HallId>string</HallId> <HallName>string</HallName> <TableId>string</TableId> <TableName>string</TableName> </TableInfo_ForMenu> <TableInfo_ForMenu> <HallId>string</HallId> <HallName>string</HallName> <TableId>string</TableId> <TableName>string</TableName> </TableInfo_ForMenu> </TableInfo> </SendProductMenu_FromBaran> </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> <SendProductMenu_FromBaranResponse xmlns="http://tempuri.org/"> <SendProductMenu_FromBaranResult> <ResId>int</ResId> <ResMessage>string</ResMessage> </SendProductMenu_FromBaranResult> </SendProductMenu_FromBaranResponse> </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 /WebService2.asmx HTTP/1.1 Host: services.baransys.com 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> <SendProductMenu_FromBaran xmlns="http://tempuri.org/"> <ApiKey>string</ApiKey> <PackNumber>string</PackNumber> <MenuProductInfo> <ProductInfo_ForMenu> <ProductId>int</ProductId> <ProductName>string</ProductName> <ProductComment>string</ProductComment> <ProductPrice>string</ProductPrice> <ProductDiscountPrecent>decimal</ProductDiscountPrecent> <ProductRemainCount>decimal</ProductRemainCount> <ProductImage>base64Binary</ProductImage> <ProductImageName>string</ProductImageName> <GroupId>string</GroupId> <GroupName>string</GroupName> <GroupSort>string</GroupSort> <ChangeType>int</ChangeType> <Description>string</Description> <OrderIndex>int</OrderIndex> </ProductInfo_ForMenu> <ProductInfo_ForMenu> <ProductId>int</ProductId> <ProductName>string</ProductName> <ProductComment>string</ProductComment> <ProductPrice>string</ProductPrice> <ProductDiscountPrecent>decimal</ProductDiscountPrecent> <ProductRemainCount>decimal</ProductRemainCount> <ProductImage>base64Binary</ProductImage> <ProductImageName>string</ProductImageName> <GroupId>string</GroupId> <GroupName>string</GroupName> <GroupSort>string</GroupSort> <ChangeType>int</ChangeType> <Description>string</Description> <OrderIndex>int</OrderIndex> </ProductInfo_ForMenu> </MenuProductInfo> <TableInfo> <TableInfo_ForMenu> <HallId>string</HallId> <HallName>string</HallName> <TableId>string</TableId> <TableName>string</TableName> </TableInfo_ForMenu> <TableInfo_ForMenu> <HallId>string</HallId> <HallName>string</HallName> <TableId>string</TableId> <TableName>string</TableName> </TableInfo_ForMenu> </TableInfo> </SendProductMenu_FromBaran> </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> <SendProductMenu_FromBaranResponse xmlns="http://tempuri.org/"> <SendProductMenu_FromBaranResult> <ResId>int</ResId> <ResMessage>string</ResMessage> </SendProductMenu_FromBaranResult> </SendProductMenu_FromBaranResponse> </soap12:Body> </soap12:Envelope>