Ongoing Warehouse Developer

GetProductionOrdersByQuery

This function allows getting multiple production orders within a certain search critera.

Tags: GetProductionOrdersByQuery, query, GetProductionOrdersByQueryResponse, ProductionOrderInfo, ProductionOrderHeader, ProductionOrderLineInfo, ProductionOrderLineConsumedInfo

Request XML

POST /xxx/service.asmx HTTP/1.1
Host: api.ongoingsystems.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://ongoingsystems.se/WSI/GetProductionOrdersByQuery"

<?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>
      <GetProductionOrdersByQuery xmlns="http://ongoingsystems.se/WSI">
         <GoodsOwnerCode>string</GoodsOwnerCode>
         <UserName>string</UserName>
         <Password>string</Password>
         <query>
            <LastProductionTimeFrom>dateTime</LastProductionTimeFrom>
            <LastProductionTimeTo>dateTime</LastProductionTimeTo>
            <ProductionOrderIdToGet>
               <int>int</int>
               <int>int</int>
            </ProductionOrderIdToGet>
         </query>
      </GetProductionOrdersByQuery>
   </soap:Body>
</soap:Envelope>
+

Request specification

GetProductionOrdersByQuery
GoodsOwnerCode str(400) Req. The name/code of your client
UserName str(50) Req. Your username
Password str(50) Req. Your password
query query Req. Specifies the query/search criteria
query
LastProductionTimeFrom DatTime Optional Last datetime an article was produces, from
LastProductionTimeTo DatTime Optional Last datetime an article was produces, to
ProductionOrderIdToGet collection of ints Optional A list of production orders Id´s

Response XML

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>
      <GetProductionOrdersByQueryResponse xmlns="http://ongoingsystems.se/WSI">
         <GetProductionOrdersByQueryResult>
            <ProductionOrders>
               <ProductionOrderInfo>
                  <ProductionOrderHeader>
                     <GoodsOwnerId>int</GoodsOwnerId>
                     <Comment>string</Comment>
                     <OrderNumber>string</OrderNumber>
                     <ProductionDate>dateTime</ProductionDate>
                     <OrderedNumberOfItems>decimal</OrderedNumberOfItems>
                     <ProducedNumberOfItems>decimal</ProducedNumberOfItems>
                     <StartProductionTime>dateTime</StartProductionTime>
                     <EndProductionTime>dateTime</EndProductionTime>
                     <ProductionOrderId>int</ProductionOrderId>
                  </ProductionOrderHeader>
                  <ProductionOrderLines>
                     <ProductionOrderLineInfo>
                        <ArticleName>string</ArticleName>
                        <ArticleNumber>string</ArticleNumber>
                        <OrderLineComment>string</OrderLineComment>
                        <ProductionOrderLineId>int</ProductionOrderLineId>
                        <OrderedNumberOfItems>decimal</OrderedNumberOfItems>
                        <ProducedNumberOfItems>decimal</ProducedNumberOfItems>
                        <ArticleUnitCode>string</ArticleUnitCode>
                        <ArticleUnitName>string</ArticleUnitName>
                        <Consumed>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                     </ProductionOrderLineInfo>
                     <ProductionOrderLineInfo>
                        <ArticleName>string</ArticleName>
                        <ArticleNumber>string</ArticleNumber>
                        <OrderLineComment>string</OrderLineComment>
                        <ProductionOrderLineId>int</ProductionOrderLineId>
                        <OrderedNumberOfItems>decimal</OrderedNumberOfItems>
                        <ProducedNumberOfItems>decimal</ProducedNumberOfItems>
                        <ArticleUnitCode>string</ArticleUnitCode>
                        <ArticleUnitName>string</ArticleUnitName>
                        <Consumed>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                     </ProductionOrderLineInfo>
                  </ProductionOrderLines>
               </ProductionOrderInfo>
               <ProductionOrderInfo>
                  <ProductionOrderHeader>
                     <GoodsOwnerId>int</GoodsOwnerId>
                     <Comment>string</Comment>
                     <OrderNumber>string</OrderNumber>
                     <ProductionDate>dateTime</ProductionDate>
                     <OrderedNumberOfItems>decimal</OrderedNumberOfItems>
                     <ProducedNumberOfItems>decimal</ProducedNumberOfItems>
                     <StartProductionTime>dateTime</StartProductionTime>
                     <EndProductionTime>dateTime</EndProductionTime>
                     <ProductionOrderId>int</ProductionOrderId>
                  </ProductionOrderHeader>
                  <ProductionOrderLines>
                     <ProductionOrderLineInfo>
                        <ArticleName>string</ArticleName>
                        <ArticleNumber>string</ArticleNumber>
                        <OrderLineComment>string</OrderLineComment>
                        <ProductionOrderLineId>int</ProductionOrderLineId>
                        <OrderedNumberOfItems>decimal</OrderedNumberOfItems>
                        <ProducedNumberOfItems>decimal</ProducedNumberOfItems>
                        <ArticleUnitCode>string</ArticleUnitCode>
                        <ArticleUnitName>string</ArticleUnitName>
                        <Consumed>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                     </ProductionOrderLineInfo>
                     <ProductionOrderLineInfo>
                        <ArticleName>string</ArticleName>
                        <ArticleNumber>string</ArticleNumber>
                        <OrderLineComment>string</OrderLineComment>
                        <ProductionOrderLineId>int</ProductionOrderLineId>
                        <OrderedNumberOfItems>decimal</OrderedNumberOfItems>
                        <ProducedNumberOfItems>decimal</ProducedNumberOfItems>
                        <ArticleUnitCode>string</ArticleUnitCode>
                        <ArticleUnitName>string</ArticleUnitName>
                        <Consumed>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                     </ProductionOrderLineInfo>
                  </ProductionOrderLines>
               </ProductionOrderInfo>
            </ProductionOrders>
         </GetProductionOrdersByQueryResult>
      </GetProductionOrdersByQueryResponse>
   </soap:Body>
</soap:Envelope>
+

Response specification

GetProductionOrdersByQueryResult
ProductionOrders object[] Production orders meeting the query filters. Contains elements of ProductionOrderInfo.
ProductionOrderInfo
ProductionOrderHeader object Contains production order head info.
ProductionOrderLines object[] The lines of the production order. Collection of ProductionOrderLineInfo.
>
ProductionOrderHeader
GoodsOwnerId int Ongoing system id of the goods owner
Comment string Comment on production order
OrderNumber string Production order number.
ProductionDate dateTime Adviced production date for the order
OrderedNumberOfItems decimal The number of items advised to be produced.
ProducedNumberOfItems decimal The number of items to produced on order.
StartProductionTime dateTime First date of production.
EndProductionTime decimal Last date of production.
ProductionOrderId int Ongoing system id of the production order
>
ProductionOrderLineInfo
ArticleName string Article name of production article.
ArticleNumber string Article number of production article.
OrderLineComment string Comment on production order line.
ProductionOrderLineId int Ongoing system id of the production order line.
OrderedNumberOfItems decimal The number of items advised to be produced on production order line.
ProducedNumberOfItems decimal The number of items produced on production order line.
ArticleUnitCode string Stock unit code of production article
ArticleUnitName string Stock unit name of production article
Consumed object Contains elements of ProductionOrderLineConsumedInfo. Consumed goods used to produce the production article.
>
ProductionOrderLineConsumedInfo
ArticleName string Article name of consumed article.
ArticleNumber string Article number of consumed article.
BatchNumber string Batch number of consumed article.
NumberOfItems decimal Consumed number of items.
ArticleUnitCode string Stock unit code of consumed article
ArticleUnitName string Stock unit name of consumed article