Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I want to fetch some Employee documents from documentum.
My client send two XML file to find the document id followed by Emp Document number which is used in documentum.

once i get the document id, i just pass this to my final service URL (REST API Service) to download the document.

The above steps, i want to perform in asp.net.

How to do this...?

What I have tried:

New for REST API. need reference for this.
Posted
Updated 29-Apr-19 13:20pm
v3
Comments
Christian Graus 29-Apr-19 3:02am    
Write code. Actual code. It's unclear what's in your XML document, but I assume the ID of a user to get from a database? Try writing code and asking specific questions when you get stuck after trying to do it yourself
PIEBALDconsult 29-Apr-19 19:19pm    
Probably XPath.

There are several ways to do it, but WebClient is probably the simplest.
See examples here: A Few Great Ways to Consume RESTful API in C# - Code Maze[^]
 
Share this answer
 
Write code. Actual code. It's unclear what's in your XML document, but I assume the ID of a user to get from a database? Try writing code and asking specific questions when you get stuck after trying to do it yourself
 
Share this answer
 
Comments
gani7787 29-Apr-19 3:23am    
Below is my Request XML.

Request xml :

<s:envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:header>
<servicecontext token="temporary/127.0.0.1-1205239338115-25203285"
xmlns="http://context.core.datamodel.fs.documentum.abc.com/">
<identities xsi:type="RepositoryIdentity"
username="*****"
password="*****"
repositoryname="Test"
domain=""
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<runtimeproperties>


<s:body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<execute xmlns="http://core.services.fs.documentum.abc.com/">
<query xsi:type="q1:PassthroughQuery"
querystring="select Emp_id from employee where emp_number ='A-10101-SEC-A'" //passing emp_number
xmlns=""
xmlns:q1="http://query.core.datamodel.fs.documentum.abc.com/">
<q1:repositories>Test

<execution startingindex="0"
maxresultcount="100"
maxresultpersource="50"
cachestrategytype="DEFAULT_CACHE_STRATEGY"
xmlns="">


Christian Graus 29-Apr-19 4:19am    
That doesn't help. You get a user id, write an API that takes it and returns data

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900