Ongoing Warehouse logo

Ongoing Warehouse Developer

GetProductionOrdersByQuery

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

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

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>
            <ProductionOrderNumberToGet>
               <string>string</string>
               <string>string</string>
            </ProductionOrderNumberToGet>
            <ProductionOrderStatusFrom>int</ProductionOrderStatusFrom>
            <ProductionOrderStatusTo>int</ProductionOrderStatusTo>
         </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
ProductionOrderNumberToGet collection of strings Optional A list of production orders numbers
ProductionOrderStatusFrom int Optional Production order status from
ProductionOrderStatusTo int Optional Production order status to

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>
                     <ProductionOrderStatus>int</ProductionOrderStatus>
                  </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>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                        <Produced>
                           <ProductionOrderLineProducedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ArticleItemId>int</ArticleItemId>
                           </ProductionOrderLineProducedInfo>
                        </Produced>
                     </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>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                        <Produced>
                           <ProductionOrderLineProducedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ArticleItemId>int</ArticleItemId>
                           </ProductionOrderLineProducedInfo>
                        </Produced>
                     </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>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                        <Produced>
                           <ProductionOrderLineProducedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ArticleItemId>int</ArticleItemId>
                           </ProductionOrderLineProducedInfo>
                        </Produced>
                     </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>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                           <ProductionOrderLineConsumedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ProducedArticleItemId>int</ProducedArticleItemId>
                           </ProductionOrderLineConsumedInfo>
                        </Consumed>
                        <Produced>
                           <ProductionOrderLineProducedInfo>
                              <ArticleName>string</ArticleName>
                              <ArticleNumber>string</ArticleNumber>
                              <BatchNumber>string</BatchNumber>
                              <NumberOfItems>decimal</NumberOfItems>
                              <ArticleUnitName>string</ArticleUnitName>
                              <ArticleUnitCode>string</ArticleUnitCode>
                              <ExpiryDate>dateTime</ExpiryDate>
                              <Serial>string</Serial>
                              <ArticleItemId>int</ArticleItemId>
                           </ProductionOrderLineProducedInfo>
                        </Produced>
                     </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
ProductionOrderStatus int Integer representing order status 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 item
ArticleNumber string Article number of consumed item
BatchNumber string Batch number of consumed item
NumberOfItems decimal Consumed number of items
ArticleUnitCode string Stock unit code of consumed item
ArticleUnitName string Stock unit name of consumed item
ExpiryDate dateTime Expiry date of the produced item
Serial str(128) Serial number of the produced item
ProducedArticleItemId int Ongoing system id of the produced item
ProductionOrderLineProducedInfo
ArticleName string Article name of produced item
ArticleNumber string Article number of produced item
BatchNumber string Batch number of produced item
NumberOfItems decimal Produced number of items.
ArticleUnitCode string Stock unit code of produced item
ArticleUnitName string Stock unit name of produced item
ExpiryDate dateTime Expiry date of the produced item
Serial str(128) Serial number of the produced item
ArticleItemId int Ongoing system id of the produced item