Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to create docuemt with category in livelink using webservices

Status
Not open for further replies.

moningisatish

Programmer
Dec 2, 2014
3
IN
Hi Team,

From SOAP UI I have imported three web services name Authentication, ContentService, DocumentManagement​

I am invoking these web services following way,

Step 1 : I am invoking authenticateUser from Authentication web service using username and password. I am getting Authentication token
as a response from this service

Step 2 : I am invoking getCategoryTemplate in DocumentManagement web service using categoryID, I am getting following response.

<S:Envelope xmlns:S=" <S:Header>
<OTAuthentication xmlns="urn:api.ecm.opentext.com">
<AuthenticationToken>s1xghy596F9YO0yFXmrNJfWGMA1o42%2Fjh1SCU0KFK8U%3D</AuthenticationToken>
</OTAuthentication>
</S:Header>
<S:Body>
<GetCategoryTemplateResponse xmlns="urn:DocMan.service.livelink.opentext.com" xmlns:ns2="urn:Core.service.livelink.opentext.com">
<GetCategoryTemplateResult>
<DisplayName>satishCategory</DisplayName>
<Key>188354.1</Key>
<Type>Category</Type>
<Values xsi:type="ns2:StringValue" xmlns:xsi=" <ns2:Description>username</ns2:Description>
<ns2:Key>188354.1.2</ns2:Key>
</Values>
<Values xsi:type="ns2:StringValue" xmlns:xsi=" <ns2:Description>password</ns2:Description>
<ns2:Key>188354.1.3</ns2:Key>
</Values>
</GetCategoryTemplateResult>
</GetCategoryTemplateResponse>
</S:Body>
</S:Envelope>

step 3: Now I am invoking the createDocument using following SOAP request.
<soapenv:Envelope xmlns:soapenv=" xmlns:urn="urn:api.ecm.opentext.com" xmlns:urn1="urn:DocMan.service.livelink.opentext.com" xmlns:urn2="urn:Core.service.livelink.opentext.com">
<soapenv:Header>
<urn:OTAuthentication>
<!--Optional:-->
<urn:AuthenticationToken>s1xghy596F9YO0yFXmrNJe8EG97yX59Idko5JQS83gA%3D</urn:AuthenticationToken>
</urn:OTAuthentication>
</soapenv:Header>
<soapenv:Body>
<urn1:CreateDocument>
<urn1:parentID>188791</urn1:parentID>
<!--Optional:-->
<urn1:name>upload.xml</urn1:name>
<!--Optional:-->
<urn1:comment>upload by iid</urn1:comment>
<urn1:advancedVersionControl>false</urn1:advancedVersionControl>
<!--Optional:-->
<urn1:metadata>
<!--Zero or more repetitions:-->
<urn1:AttributeGroups>
<!--Optional:-->
<urn1:DisplayName>satishCategory</urn1:DisplayName>
<!--Optional:-->
<urn1:Key>188354.1</urn1:Key>
<!--Optional:-->
<urn1:Type>Category</urn1:Type>
<!--Zero or more repetitions:-->
<urn1:Values>
<!--Optional:-->
<urn2:Description>name</urn2:Description>
<!--Optional:-->
<urn2:Key>188354.1.2</urn2:Key>
</urn1:Values>
<urn1:Values>
<!--Optional:-->
<urn2:Description>password</urn2:Description>
<!--Optional:-->
<urn2:Key>188354.1.3</urn2:Key>
</urn1:Values>

</urn1:AttributeGroups>
</urn1:metadata>
<!--Optional:-->
<urn1:attach>
<urn2:CreatedDate>2014-12-02T15:38:29.770+05:30</urn2:CreatedDate>
<!--Optional:-->
<urn2:FileName>upload.xml</urn2:FileName>
<urn2:FileSize>2139</urn2:FileSize>
<urn2:ModifiedDate>2014-12-02T15:38:29.770+05:30</urn2:ModifiedDate>
<urn2:Contents>giving contents in Base64Binay format</urn2:Contents>
</urn1:attach>
</urn1:CreateDocument>
</soapenv:Body>
</soapenv:Envelope>

When I give this request, I am getting error as
<faultcode>Core.ServiceException</faultcode>
<faultstring>DocumentManagement.CreateDocument() failed on the Livelink Server. No results were returned. Check the Livelink Server thread logs.</faultstring>
<detail>
<ns2:exception class="javax.xml.ws.soap.SOAPFaultException" note="To disable this feature, set com.sun.xml.ws.fault.SOAPFaultBuilder.disableCaptureStackTrace system property to false" xmlns:ns2=" <message>DocumentManagement.CreateDocument() failed on the Livelink Server. No results were returned. Check the Livelink Server thread logs.</message>


Please let me know where I went wrong. I am very new to OT Livelink. I am not a livelink programmer. I am a SOA developer. I need to create a SOA application which will be used by Siebel programmer.


Thanks and Regards,
Thanks & Regards
Satish Moningi
Systems Engineer, Hyderabad
IBM Certified BPM Advanced V8.0 Integration Developer.
 
If I remove metadata object, i am able to create the document.

Thanks & Regards
Satish Moningi
Systems Engineer, Hyderabad
IBM Certified BPM Advanced V8.0 Integration Developer.
 
There is probably nothing wrong in what you are doing and I would not know how to comment about what you are facing.From past experience and seeing people like you post about SOAPUI attempts in the KB what I have concluded is

A)SOAPUI Payload gets difficult and more difficult when you parse the Category Data Structure.If you look in this forum you will see learned OpenText team members advising people how to work errors within SOAPUI.
B)There are samples for adding documents,attaching metadata in C# and Java at the same forum.Most of us build on those samples.It is very easy to do those provided you just observe the payload while you are working within a browser as livelink is basically a web application and you are just using an api to do some stuff programmatically.
C)I write samples in my website livelink.in for some things that interest me.I generally use SOAPUI when I just need to test deployment things and not as clients.I do this in C# and Java as time allows.

Having said that there are several OpenText Vendors/Products that use SOAPUI to do complicated stuff which I am not privy to as it has not interested me.Many of those programs which are part of SAP and Livelink talking. Th easiest way is to attempt a C# or java program doing some category manipulation,then observe the packet that livelink accepts through Fiddler,that will tell you the right syntax.In fact I helped a person suffering some SOAPUI heart break moments and he thanked me very much on that forum.



Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010
 
Thank you Appnair..!!

I am able to do with java program. I am creating a Metadata attribute group array and passing the values. While testing from SOAP using or by creating Web services in Websphere Integration Desinger, I am facing this issue.

By the way, I dnt have access permissions for your given link in post.

Thanks & Regards
Satish Moningi
Systems Engineer, Hyderabad
IBM Certified BPM Advanced V8.0 Integration Developer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top