Navigation:  Integration via SOAP web services > Published web services > Knowledge base >

newArticle

Previous  Top  Next

This method creates an article in an existing knowledge base, allowing attachments to be added and attributes to be entered. To use it, it is necessary to follow the standard documented below:

 

Java class

Request

web/wwwroot/ws/java/knowledgebase/NewArticleRequestType.java

Return

web/wwwroot/ws/java/knowledgebase/NewArticleResponseType.java

 

Request structure

<urn:newArticle>

   <urn:ArticleData>

   <urn:ArticleID>?</urn:ArticleID>

   <urn:KnowledgebaseID>?</urn:KnowledgebaseID>

   <urn:CategoryID>?</urn:CategoryID>

   <urn:ResponsibleUserID>?</urn:ResponsibleUserID>

   <urn:ContentList>

       <!--1 or more repetitions:-->

       <urn:Content>

           <urn:ArticleLanguage>?</urn:ArticleLanguage>

           <urn:ArticleName>?</urn:ArticleName>

           <urn:ArticleContent>?</urn:ArticleContent>

           <urn:AttachmentList>

               <!--Zero or more repetitions:-->

               <urn:Attachment>

               <urn:FileName>?</urn:FileName>

               <urn:FileContent>?</urn:FileContent>

               <urn:AttachmentName>?</urn:AttachmentName>

               <urn:Summary>?</urn:Summary>

               </urn:Attachment>

           </urn:AttachmentList>

       </urn:Content>

   </urn:ContentList>

   <urn:AttributeList>

       <!--Zero or more repetitions:-->

       <urn:Attribute>

           <urn:AttributeID>?</urn:AttributeID>

           <!--1 or more repetitions:-->

           <urn:AttributeValueList>

               <urn:AttributeValue>?</urn:AttributeValue>

           </urn:AttributeValueList>

       </urn:Attribute>

   </urn:AttributeList>

   </urn:ArticleData>

</urn:newArticle>

 

Request

ID #

Required

Description

ArticleID

X

ID # of the new article

KnowledgebaseID

X1

ID # of the knowledge base in which the article will be created

CategoryID

X2

ID # of the category that will be associated with the article

ResponsibleUserID

 

ID # of the user responsible for the article

ArticleLanguage

X

Language code. The value may be:

1 - English (USA)

2 - Portuguese (Brazil)

3 - Spanish

4 - Portuguese (Portugal)

5 - German

6 - French

7 - Romanian

8 - Chinese

9 - Italian

10 - Slovak

11 - English (United Kingdom)

12 - Turkish

13 - French (Canada)

14 - Russian

15 - Polish

16 - Catalan

17 - Danish

18 - Finnish

19 - Japanese

ArticleName

X

Article name

ArticleContent

X

Article content

FileName

 

File name (including its extension)

FileContent

 

Binary content of the file

AttachmentName

 

Attachment name

Summary

 

Attachment description

AttributeID

 

Attribute ID #

AttributeValue

 

Attribute value

 

X1 - Required when the CategoryID field is empty;

X2 - Required when the KnowledgebaseID field is empty.

 

Return

ID #

Description

Status

Method execution status. Its value may be:

SUCCESS: Method executed successfully

FAILURE: An error occurred during the method execution

Code

Method return code

Detail

Method return detail

SUCCESS: The system will return the description of successfully executed method.

FAILURE: The system will return the description of the error found