Skip to main content
Version: 2.2.2

newTrainingAttach

This method allows adding:

  • An attachment to a training.

To insert each of these items, it is necessary to follow the standard documented below.

Java class
Requestweb/wwwroot/ws/java/training/NewTrainingAttachRequestType.java
Returnweb/wwwroot/ws/java/training/NewTrainingAttachResponseType.java

Request:

ID #RequiredDescription
IDTRAINXTraining ID #
NMFILEXFile name with extension
FLCONTENTXElectronic file binary¹
NMATTACHMENTName of the attachment
DSSUMARYSummary
info

X¹ - Content of the electronic file converted to Base64. If you are testing the usage through the web service data source, we suggest converting a small text through a website of your choosing.

::: Request structure:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:training">
<soapenv:Header/>
<soapenv:Body>
<urn:newTrainingAttach>
<!--You may enter the following 5 items in any order-->
<urn:IDTRAIN>?</urn:IDTRAIN>
<urn:NMFILE>?</urn:NMFILE>
<urn:FLCONTENT>cid:362363491624</urn:FLCONTENT>
<urn:NMATTACHMENT>?</urn:NMATTACHMENT>
<urn:DSSUMMARY>?</urn:DSSUMMARY>
</urn:newTrainingAttach>
</soapenv:Body>
</soapenv:Envelope>

Return:

ID #Description
returnSUCCESS: 1.
FAILURE: Message detailing the error.