AnsweredAssumed Answered

SOAP write file

Question asked by lukas.jezek on Dec 28, 2011
Latest reply on Dec 28, 2011 by fpena
Hello,

I have a simple question. Can you tell me how could I write file into the knowledge store using soap? Because I can not see any xml attribute or element, where the file content can be placed in the documents_write.xml. We have a third party, which should send documents to the Clarity but now we can xogin to the clarity only a link or reference information about the imported document. Document in Clarity has just 0KB. I am using following message:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<SOAP-ENV:Header>


<m:Auth xmlns:m="http://www.niku.com/xog/Object">



<m:SessionID>5251589__-26d90305:1300d4fe6e8:-671f1307004885901</m:SessionID>



<m:Username>?</m:Username>



<m:Password>?</m:Password>


</m:Auth>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_document.xsd">
<Header action="write" externalSource="NIKU" objectType="document" version="12.0.6.5471"/>
<Documents>
<Parent documentLocation="C:\temp" parentObjectId="5104600" parentObjectType="NAME">
<Folder name="Mzdové listy">
<Document
fileCreatedDate="2011-12-16T00:00:00 "
name="CABI_Impl_ENU_v2.pdf">
<Version id="5104602" owner="pis" status="0" versionNumber="1"/>
</Document>
</Folder>
</Parent>
</Documents>
</NikuDataBus>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Thank you for your answer
Regards
Lukas

Outcomes