How to create Document using Content Server Web services via SOAP UI
How create document which are available in local or network drive using CWS as shown in the below xml.
Can someone help me with this query!
URL: https://<ServerName>:8443/cws/services/DocumentManagement?wsdl
Method: CreateDocument
xml Request :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:DocMan.service.livelink.opentext.com" xmlns:urn2="urn:Core.service.livelink.opentext.com">
urn:OTAuthentication
<!--Optional:-->
?</urn:AuthenticationToken>
</urn:OTAuthentication>
</soapenv:Header>
soapenv:Body
urn1:parentID?</urn1:parentID>
<!--Optional:-->
?</urn1:name>
<!--Optional:-->
urn1:comment?</urn1:comment>
?</urn1:advancedVersionControl>
<!--Optional:-->
urn1:metadata
<!--Zero or more repetitions:-->
<!--Optional:-->
urn1:DisplayName?</urn1:DisplayName>
<!--Optional:-->
?</urn1:Key>
<!--Optional:-->
urn1:Type?</urn1:Type>
<!--Zero or more repetitions:-->
<!--Optional:-->
urn2:Description?</urn2:Description>
<!--Optional:-->
?</urn2:Key>
</urn1:Values>
</urn1:AttributeGroups>
</urn1:metadata>
<!--Optional:-->
urn1:attach
?</urn2:CreatedDate>
<!--Optional:-->
urn2:FileName?</urn2:FileName>
?</urn2:FileSize>
urn2:ModifiedDate?</urn2:ModifiedDate>
cid:603755337690</urn2:Contents>
</urn1:attach>
</urn1:CreateDocument>
</soapenv:Body>
</soapenv:Envelope>soapenv:Headerurn:AuthenticationTokenurn1:CreateDocumenturn1:nameurn1:advancedVersionControlurn1:AttributeGroupsurn1:Keyurn1:Valuesurn2:Keyurn2:CreatedDateurn2:FileSizeurn2:Contents
Answers
-
OT has actually asked people to code in REST API but webservices(SOAP) still work.What is really the question? If you use SOAPUI and point to the WSDL you should be able totest that out and chnage that to a regular industry standard language like C++, C#, Java or any others
Ok if you are absolutely a novice in SOAP
- The WSDL just means you will be able to download them to your C# project or Java Project as WCF or JAX-WS proxies.
- Further when your calls actually hit the server the web.config (web.xml in TC) in a CWS application actually contact the CS server on the LAPI port using the usertoken and password.
Plenty of starter codes existed at one time here I cant find the links so I suggest using the very confusing search on OT by doing several terms like "SOAP" "CWS","les-services" etc
I had put samples in my blog but they are all very old but my blog is livelink.in
0 -
Hi thanks for the prompt reply!
Actually the requirement is Business has the third-party application and this application goals to gather all the list of files and places in SFTP location. And from this SFTP location middle layer application(EAI MuleSoft) fetches the files from this SFTP location and NEEDS create/upload them into OpenText Content Server.
So, this middle layer application(EAI MuleSoft) need to consume Content Server Web Services to create document in CS via WSDL (https://<ServerName>:8443/cws/services/DocumentManagement?wsdl)and method name CreateDocument below is screenshot and EAI MuleSoft consume CWS as below and they develops the code to create document.
Hope this clears your question and yes, absolutely a novice in SOAP :)
Also can you help me understand between CWS verses REST API. when to use CWS(SOAP) and REST API(Postman)
0 -
Yes, the use case is pervasive as I have assisted people doing this in MuleSoft. OT has told the community that the SOAP Webservices have been deprecated. It doesn't mean anything in the near term but at some point, OT could remove the code that is written in Oscript that receives the webservices, AFAIK it is not that easy as the SAP ABAP stack uses webservices to get SAP things created in OTCS. Until they re-write all that legacy code I can't see webservices going out of favor but I have no real way of knowing this so take it with some iodized salt…
REST is OT's REST implementation to support new-age HTML5 and ongoing types of devices. It does work very well but I doubt if REST has all the things that mature CWS had at one time REST is getting there to offer all parity to other interfaces. I am just on a project where they are replacing a WS-based TIBCO integration. I wrote in Java the interfaces to replace that with REST.
Postman is a tool to test/write REST.SOAPUI is a tool to test/write SOAP that is how I view them. Without these tools available freely for developers one would feel very short.
This is where you or your Mulesoft guys should go and try doing that starter code.https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=67792619&objAction=browse&viewType=1
This is where we all used to collaborate developer.opentext.com is the place to get REST API help
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=15633041&objAction=view
0
Categories
- All Categories
- 122 Developer Announcements
- 53 Articles
- 151 General Questions
- 147 Thrust Services
- 56 OpenText Hackathon
- 37 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 918 Cloud Fax and Notifications
- 84 Digital Asset Management
- 9.4K Documentum
- 31 eDOCS
- 184 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 7 XM Fax
- Follow Categories