Ongoing Warehouse logo

Ongoing Warehouse Developer

GetProductionArticlesByQuery

A production article is an article which the warehouse can produce by combining other articles. This function allows you to fetch the definition (or "recipe") of a list of production articles.

Tags: GetProductionArticlesByQuery, Query, ProductionArticleInfo, Specification, ProductionArticleSpecificationLineInfo

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/GetProductionArticlesByQuery"

<?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>
    <GetProductionArticlesByQuery xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <Query>
        <ArticleDefIds>
          <int>int</int>
          <int>int</int>
        </ArticleDefIds>
      </Query>
    </GetProductionArticlesByQuery>
  </soap:Body>
</soap:Envelope>
+

Request specification

GetProductionArticlesByQuery
GoodsOwnerCode str(400) Req. The name/code of your client
UserName str(50) Req. Your username
Password str(50) Req. Your password
Query object Req. Specifies the query/search criteria
Query
ArticleDefIds object An array of integers
> int int The Ongoing system id of a production article

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:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <GetProductionArticlesByQueryResponse xmlns="http://ongoingsystems.se/WSI">
      <GetProductionArticlesByQueryResult>
        <Success>true</Success>
        <Articles>
          <ProductionArticleInfo>
            <ArticleName>string</ArticleName>
            <ArticleNumber>string</ArticleNumber>
            <ProductCode>string</ProductCode>
            <ArticleDefId>int</ArticleDefId>
            <Length>decimal</Length>
            <Width>decimal</Width>
            <Height>decimal</Height>
            <Weight>decimal</Weight>
            <Volume>decimal</Volume>
            <Specification>
              <ProductionArticleSpecificationLineInfo>
                <Article>
                  <ArticleName>string</ArticleName>
                  <ArticleNumber>string</ArticleNumber>
                  <ProductCode>string</ProductCode>
                  <ArticleDefId>int</ArticleDefId>
                  <Length>decimal</Length>
                  <Width>decimal</Width>
                  <Height>decimal</Height>
                  <Weight>decimal</Weight>
                  <Volume>decimal</Volume>
                </Article>
                <ProductionNumberOfItems>decimal</ProductionNumberOfItems>
              </ProductionArticleSpecificationLineInfo>
              <ProductionArticleSpecificationLineInfo>
                <Article>
                  <ArticleName>string</ArticleName>
                  <ArticleNumber>string</ArticleNumber>
                  <ProductCode>string</ProductCode>
                  <ArticleDefId>int</ArticleDefId>
                  <Length>decimal</Length>
                  <Width>decimal</Width>
                  <Height>decimal</Height>
                  <Weight>decimal</Weight>
                  <Volume>decimal</Volume>
                </Article>
                <ProductionNumberOfItems>decimal</ProductionNumberOfItems>
              </ProductionArticleSpecificationLineInfo>
            </Specification>
          </ProductionArticleInfo>
          <ProductionArticleInfo>
            <ArticleName>string</ArticleName>
            <ArticleNumber>string</ArticleNumber>
            <ProductCode>string</ProductCode>
            <ArticleDefId>int</ArticleDefId>
            <Length>decimal</Length>
            <Width>decimal</Width>
            <Height>decimal</Height>
            <Weight>decimal</Weight>
            <Volume>decimal</Volume>
            <Specification>
              <ProductionArticleSpecificationLineInfo>
                <Article>
                  <ArticleName>string</ArticleName>
                  <ArticleNumber>string</ArticleNumber>
                  <ProductCode>string</ProductCode>
                  <ArticleDefId>int</ArticleDefId>
                  <Length>decimal</Length>
                  <Width>decimal</Width>
                  <Height>decimal</Height>
                  <Weight>decimal</Weight>
                  <Volume>decimal</Volume>
                </Article>
                <ProductionNumberOfItems>decimal</ProductionNumberOfItems>
              </ProductionArticleSpecificationLineInfo>
              <ProductionArticleSpecificationLineInfo>
                <Article>
                  <ArticleName>string</ArticleName>
                  <ArticleNumber>string</ArticleNumber>
                  <ProductCode>string</ProductCode>
                  <ArticleDefId>int</ArticleDefId>
                  <Length>decimal</Length>
                  <Width>decimal</Width>
                  <Height>decimal</Height>
                  <Weight>decimal</Weight>
                  <Volume>decimal</Volume>
                </Article>
                <ProductionNumberOfItems>decimal</ProductionNumberOfItems>
              </ProductionArticleSpecificationLineInfo>
            </Specification>
          </ProductionArticleInfo>
        </Articles>
      </GetProductionArticlesByQueryResult>
    </GetProductionArticlesByQueryResponse>
  </soap:Body>
</soap:Envelope>
+

Response specification

ProductionArticleInfo
ArticleName str(200) Name of the production article
ArticleNumber str(100) Article number of the production article
ProductCode str(200) Product code of the production article
ArticleDefId int Ongoing system id of the production article
Length dec Length
Width dec Width
Height dec Height
Weight dec Weight
Volume dec Volume
Specification object An object of type Specification, which specifies exactly which articles are used to produce this production article
Specification
ProductionArticleSpecificationLineInfo object A list of ProductionArticleSpecificationLineInfo. Each entry contains an article which is part of the specification for the production article.
ProductionArticleSpecificationLineInfo
Article object An object which contains information about the article
ProductionNumberOfItems dec How many of this article are used to build the production article