UpdateArticleMaterials

Used to update article materials for sustainability reporting.

Tags: UpdateArticleMaterials, UpdateArticleMaterials, ArticleMaterialsSpecification, ArticleMaterialsEnergySpecification, ArticleEnvironmentalCertification, ArticleDefinitionMaterial, ArticleEnergySource, ArticleMaterial, ArticleMaterialUnit, UpdateArticleMaterialsResponse, UpdateArticleMaterialsResult, ProcessArticleMaterialsError

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

<?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>
    <UpdateArticleMaterials xmlns="http://ongoingsystems.se/WSI">
      <GoodsOwnerCode>string</GoodsOwnerCode>
      <UserName>string</UserName>
      <Password>string</Password>
      <UpdateArticleMaterials>
        <ArticleIdentification>SystemId or ArticleNumber or ProductCode or ArticleName</ArticleIdentification>
        <ArticleSystemId>int</ArticleSystemId>
        <ArticleNumber>string</ArticleNumber>
        <ArticleName>string</ArticleName>
        <ProductCode>string</ProductCode>
        <ArticleMaterialsSpecification>
          <ArticleContainsRecycledMaterials>DontKnow or Yes or No</ArticleContainsRecycledMaterials>
          <ArticlePackagingIsRecycleable>DontKnow or Yes or No</ArticlePackagingIsRecycleable>
          <ArticlePackagingContainsRecycledMaterials>DontKnow or Yes or No</ArticlePackagingContainsRecycledMaterials>
          <EnergySpecification>
            <IsUsingEnergyWhileInUse>boolean</IsUsingEnergyWhileInUse>
            <EnergySource>
              <EnergySourceIdentification>ArticleEnergySourceId or ArticleEnergySourceCodeAndName</EnergySourceIdentification>
              <EnergySourceOperation>CreateOrUpdate or CreateOrFind or Clear</EnergySourceOperation>
              <EnergySourceId>int</EnergySourceId>
              <EnergySourceCode>string</EnergySourceCode>
              <EnergySourceName>string</EnergySourceName>
            </EnergySource>
            <EstimatedNumberOfHoursUsingElectricityDuringLifeTime>decimal</EstimatedNumberOfHoursUsingElectricityDuringLifeTime>
            <EstimatedKiloWattHoursUsedPerHour>decimal</EstimatedKiloWattHoursUsedPerHour>
          </EnergySpecification>
          <EnvironmentalCertification>
            <CertificationIdentification>ArticleEnvironmentalCertificationId or ArticleEnvironmentalCertificationCodeAndName</CertificationIdentification>
            <CertificationOperation>CreateOrUpdate or CreateOrFind or Clear</CertificationOperation>
            <CertificationId>int</CertificationId>
            <CertificationCode>string</CertificationCode>
            <CertificationName>string</CertificationName>
          </EnvironmentalCertification>
          <Materials>
            <ArticleDefinitionMaterial>
              <Material>
                <MaterialIdentification>ArticleMaterialId or ArticleMaterialCodeAndName</MaterialIdentification>
                <MaterialOperation>CreateOrUpdate or CreateOrFind</MaterialOperation>
                <MaterialId>int</MaterialId>
                <MaterialCode>string</MaterialCode>
                <MaterialName>string</MaterialName>
                <IsBattery>boolean</IsBattery>
              </Material>
              <MaterialUnit>
                <MaterialUnitIdentification>ArticleMaterialUnitId or ArticleMaterialUnitCodeAndName</MaterialUnitIdentification>
                <MaterialUnitOperation>CreateOrUpdate or CreateOrFind</MaterialUnitOperation>
                <MaterialUnitId>int</MaterialUnitId>
                <MaterialUnitCode>string</MaterialUnitCode>
                <MaterialUnitName>string</MaterialUnitName>
              </MaterialUnit>
              <IsMainMaterial>boolean</IsMainMaterial>
              <Weight>decimal</Weight>
              <IsPackaging>boolean</IsPackaging>
              <IsMainPackagingMaterial>boolean</IsMainPackagingMaterial>
              <EstimatedNumberOfBatteriesUsedDuringLifeTime>decimal</EstimatedNumberOfBatteriesUsedDuringLifeTime>
            </ArticleDefinitionMaterial>
            <ArticleDefinitionMaterial>
              <Material>
                <MaterialIdentification>ArticleMaterialId or ArticleMaterialCodeAndName</MaterialIdentification>
                <MaterialOperation>CreateOrUpdate or CreateOrFind</MaterialOperation>
                <MaterialId>int</MaterialId>
                <MaterialCode>string</MaterialCode>
                <MaterialName>string</MaterialName>
                <IsBattery>boolean</IsBattery>
              </Material>
              <MaterialUnit>
                <MaterialUnitIdentification>ArticleMaterialUnitId or ArticleMaterialUnitCodeAndName</MaterialUnitIdentification>
                <MaterialUnitOperation>CreateOrUpdate or CreateOrFind</MaterialUnitOperation>
                <MaterialUnitId>int</MaterialUnitId>
                <MaterialUnitCode>string</MaterialUnitCode>
                <MaterialUnitName>string</MaterialUnitName>
              </MaterialUnit>
              <IsMainMaterial>boolean</IsMainMaterial>
              <Weight>decimal</Weight>
              <IsPackaging>boolean</IsPackaging>
              <IsMainPackagingMaterial>boolean</IsMainPackagingMaterial>
              <EstimatedNumberOfBatteriesUsedDuringLifeTime>decimal</EstimatedNumberOfBatteriesUsedDuringLifeTime>
            </ArticleDefinitionMaterial>
          </Materials>
        </ArticleMaterialsSpecification>
      </UpdateArticleMaterials>
    </UpdateArticleMaterials>
  </soap:Body>
</soap:Envelope>

Request specification

UpdateArticleMaterials
GoodsOwnerCode string(400) Req. The name/code of your client
UserName string(50) Req. Your username
Password string(50) Req. Your password
UpdateArticleMaterials UpdateArticleMaterials Req.
UpdateArticleMaterials
ArticleIdentification enum Defines what you want to identify the article by:
 - SystemId
 - ArticleNumber
 - ProductCode
 - ArticleName
Most integrations use ArticleNumber
ArticleSystemId int Ongoing WMS internal id. Required if ArticleIdentification = SystemId
ArticleNumber string Article number. Required if ArticleIdentification = ArticleNumber
ArticleName string(200) Article name. Required if ArticleIdentification = ArticleName
ProductCode string(200) Product code. Required if ArticleIdentification = ProductCode. In the system it is sometimes called FactoryCode.
ArticleMaterialsSpecification ArticleMaterialsSpecification Req. An element of type ArticleMaterialsSpecification.
ArticleMaterialsSpecification
ArticleContainsRecycledMaterials enum An element of type ArticleMaterialsYesNoDontKnow.
ArticlePackagingIsRecycleable enum An element of type ArticleMaterialsYesNoDontKnow.
ArticlePackagingContainsRecycledMaterials enum An element of type ArticleMaterialsYesNoDontKnow.
EnergySpecification ArticleMaterialsEnergySpecification An element of type ArticleMaterialsEnergySpecification.
EnvironmentalCertification ArticleEnvironmentalCertification An element of type ArticleEnvironmentalCertification.
Materials ArticleDefinitionMaterial[]
ArticleMaterialsEnergySpecification
IsUsingEnergyWhileInUse boolean
EnergySource ArticleEnergySource An element of type ArticleEnergySource.
EstimatedNumberOfHoursUsingElectricityDuringLifeTime decimal
EstimatedKiloWattHoursUsedPerHour decimal
ArticleEnvironmentalCertification
CertificationIdentification enum An element of type ArticleEnvironmentalCertificationIdentification.
CertificationOperation enum An element of type ArticleEnvironmentalCertificationOperation.
CertificationId int
CertificationCode string
CertificationName string
ArticleDefinitionMaterial
Material ArticleMaterial Req. An element of type ArticleMaterial.
MaterialUnit ArticleMaterialUnit Req. An element of type ArticleMaterialUnit.
IsMainMaterial boolean Req.
Weight decimal
IsPackaging boolean Req.
IsMainPackagingMaterial boolean Req.
EstimatedNumberOfBatteriesUsedDuringLifeTime decimal
ArticleEnergySource
EnergySourceIdentification enum An element of type ArticleEnergySourceIdentification.
EnergySourceOperation enum An element of type ArticleEnergySourceOperation.
EnergySourceId int
EnergySourceCode string
EnergySourceName string
ArticleMaterial
MaterialIdentification enum An element of type ArticleMaterialIdentification.
MaterialOperation enum An element of type ArticleMaterialOperation.
MaterialId int
MaterialCode string
MaterialName string
IsBattery boolean
ArticleMaterialUnit
MaterialUnitIdentification enum An element of type ArticleMaterialUnitIdentification.
MaterialUnitOperation enum An element of type ArticleMaterialUnitOperation.
MaterialUnitId int
MaterialUnitCode string
MaterialUnitName string

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>
    <UpdateArticleMaterialsResponse xmlns="http://ongoingsystems.se/WSI">
      <UpdateArticleMaterialsResult>
        <Errors>
          <ProcessArticleMaterialsError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or InvalidIdentification or ArticleNotFound or ErrorUpdating or InvalidMaterial or InvalidMaterialUnit</ErrorType>
          </ProcessArticleMaterialsError>
          <ProcessArticleMaterialsError>
            <Message>string</Message>
            <ErrorType>UnknownError or LogonError or InvalidIdentification or ArticleNotFound or ErrorUpdating or InvalidMaterial or InvalidMaterialUnit</ErrorType>
          </ProcessArticleMaterialsError>
        </Errors>
        <Success>boolean</Success>
        <ArticleSystemId>int</ArticleSystemId>
      </UpdateArticleMaterialsResult>
    </UpdateArticleMaterialsResponse>
  </soap:Body>
</soap:Envelope>

Response specification

UpdateArticleMaterialsResponse
UpdateArticleMaterialsResult UpdateArticleMaterialsResult
UpdateArticleMaterialsResult
Errors ProcessArticleMaterialsError[] Error details
Success boolean True if successful, false otherwise.
ArticleSystemId int The internal Ongoing WMS system id of the article.
ProcessArticleMaterialsError
Message string Message explaining the error.
ErrorType enum An element of type ProcessArticleMaterialsErrorType.