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, GetProductionArticlesQuery, GetProductionArticlesByQueryResponse, GetProductionArticlesResult, ProductionArticleInfo, ProductionArticleSpecificationLineInfo, ProductionSubArticleInfo

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 string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
Query GetProductionArticlesQuery Req. The query object
GetProductionArticlesQuery
ArticleDefIds int[]

Response XML

<?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>
    <GetProductionArticlesByQueryResponse xmlns="http://ongoingsystems.se/WSI">
      <GetProductionArticlesByQueryResult>
        <Success>boolean</Success>
        <Message>string</Message>
        <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

GetProductionArticlesByQueryResponse
GetProductionArticlesByQueryResult GetProductionArticlesResult
GetProductionArticlesResult
Success boolean
Message string
Articles ProductionArticleInfo[]
ProductionArticleInfo
ArticleName string(200) Name of the production article
ArticleNumber string(100) Article number of the production article
ProductCode string(200) Product code of the production article
ArticleDefId int Ongoing WMS internal id of the production article
Length decimal Length
Width decimal Width
Height decimal Height
Weight decimal Weight
Volume decimal Volume
Specification ProductionArticleSpecificationLineInfo[] An list of ProductionArticleSpecificationLineInfo, which specifies exactly which articles are used to produce this production article
ProductionArticleSpecificationLineInfo
Article ProductionSubArticleInfo An object which contains information about the article
ProductionNumberOfItems decimal How many of this article are used to build the production article
ProductionSubArticleInfo
ArticleName string
ArticleNumber string
ProductCode string
ArticleDefId int
Length decimal
Width decimal
Height decimal
Weight decimal
Volume decimal