×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Unable to create docuemt with category in livelink using webservices

Unable to create docuemt with category in livelink using webservices

Unable to create docuemt with category in livelink using webservices

(OP)
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="http://schemas.xmlsoap.org/soap/envelope/">
<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="http://www.w3.org/2001/XMLSchema-instance">
<ns2:Description>username</ns2:Description>
<ns2:Key>188354.1.2</ns2:Key>
</Values>
<Values xsi:type="ns2:StringValue" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<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="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">
<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="http://jax-ws.dev.java.net/">
<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.

RE: Unable to create docuemt with category in livelink using webservices

(OP)
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.

RE: Unable to create docuemt with category in livelink using webservices

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 https://knowledge.opentext.com/knowledge/llisapi.d... 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
http://www.tek-tips.com/faqs.cfm?fid=2884
http://www.linkedin.com/in/appunair
http://www.livelink.in

RE: Unable to create docuemt with category in livelink using webservices

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close