Using webservices to check in files to UCM

Hello all.
We're trying to perform some tests in UCM, but we're not finding many examples about it.
This is what we want to do:
We want to use webservices to checkin files to UCM.
How?
1 - we will develop a java application
2 - inside the application there will be a button that will call the webservice
3 - after the webservice is called, the document should go to out UCM
Until now, I'm doing only research. Reading documents about webservices, how they work and everything I managed to find.
But I can't find an example about it. Someone, please, could say where I can find it?
Thanks for your help and patience.
Fernando

Hi Fernando,
as for the UCM piece, check this link out: http://docs.oracle.com/cd/E23943_01/doc.1111/e10807/c25_wsdl_and_soap.htm#BEHHIGHJ
It describes what service with what parameters should be called. There are also SOAP Request and Response schemes.
If I understood your question, it is more how to create a piece of code that calls the service, right? This very much depends on what your programming language is, and partially also what your IDE is. There is a comprehensive tutorial for Java/Jdeveloper available here: http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/webservices/ws.html I believe if you go through that you will be at least a journeyman on WS. Another good resources can be found http://www.ibm.com/developerworks/webservices/library/ws-javaclient/ or http://qnatech.wordpress.com/2008/07/29/how-to-write-code-to-invoke-a-web-service-from-java/
I hope that helps.
Jiri

Similar Messages

  • Use thread to check for file exists. How?

    public class FileSearcher extends Thread
         String name = "Unknown";
         //RunFileSearcher rfs = new RunFileSearcher(name);
         //FileSearcher rfs = new FileSearcher(name);
         File f = new File();
         Thread t = new Thread(); // create  the thread
         t.start(); // start the thread running
         public void run(name)
              if( f.exists(name) )
                   System.out.println("*** File " + f + " has been created. ***");
              else
                   System.out.println("Searching for file " + f) ;
    }How do I use each thread to check for each file exists per sec??
    Please Help Thanks

    1) Why are you using Threads?
    2) It is preferrable to implement Runnable.
    3) This is all incredibly pointless (see point 1)

  • Unable to check in file

    Hello,
    I am having issue with checking in files to TFS 2013. I use Team Explorer and Studio 2013.  This issue just came up recently (as of 12/18/2014). the server had no issue like this prior.
    Here is the issue
    1) create a team project named " testProject"
    2) add a file to source control "testfile1.txt"
    3) check the file "testfile1.txt" in
    4) check the file "testfile1.txt" out for editting
    5) add 1 line to  testfile1.txt using notepad
    6) check in file
    7) check out the file
    8) add line #2 to the file
    9) check in testfile1.txt: this step I get this error "All of the changes were either unmodified files or locks. The changes have been undone by the server."
    any suggestion to what the problem may be?

    Hi TDN,  
    Thanks for your post.
    You’re using TFS 2013 Update 4 and VS 2013 Update 4?
    According the error message, it seems TFS Server think this file is not changed.
    After step 8, if there’s the edited icon shows on your testfile1.txt in Source Control Explorer?
    Please click Refresh button in your Source Control Explorer, then re-edit your testfile1.txt file and try check-in again.
    And try to reproduce this scenario on your another client(VS 2013 installed), check if this issue can be reproduce on another client or not.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • The problem of using webservice to transfer binary data

    I want to use webservice to realize downloading file , and then I think we can to transform the whole file to binary data ,and then use webservice to deliver these datas to client. but there is a promble. When the file size is a bit large , such as exceeding 1.5M , then client will receive error report. How to solve this promble. Another I think when server transforming the whole file to binary data , It should apply for much memory , as large as the file. I think this is not a good solution . Any one can give me some ideas ? How to realize download file using webservice(the server is oc4j)

    839507 wrote:
    the picture does not synchronize with sound. Why? Where is the problem??Dear Automotive Mechanic,
    My car won't start, where is the problem?
    Sincerly,
    Captain Foss

  • Java script in HTMLDB to check if file exists in Unix file system

    How do I use javascript to check if file is exists in Unix file system. I would like to dispaly the columns only if file is exists.

    Hello,
    This is one of those features that the manuals do not cover.
    How to use and build AJAX features could be a whole book all by itself, and it's not really HTML DB specific feature even though we have built some hooks in application and javascript to make it easier.
    Take a look at this thread
    Netflix: Nice UI ideas
    and I've built some examples here
    http://htmldb.oracle.com/pls/otn/f?p=11933:11
    Or just search the forums for AJAX or XMLHTTP
    Carl

  • Need to send the text file using webservice

    Hi,
    I want to send the text file with contains data through oracle pl/sql using webservice. How can i handle this program?
    Kindly share with your details.
    Thanks in advance,
    Maran

    user8732035 wrote:
    I want to send the text file with contains data through oracle pl/sql using webservice. How can i handle this program?Web services supply XML structured data. Not text files.
    PL/SQL supports web services (XML output) and web procedures (text and binary output).
    You need to clarify your requirements.

  • How to send A file using Webservice?

    I heard about webservice when I read through XML...
    It a bit like XML cannot show off it strength without webservice...lol
    What is webservice? What library should I use to send a file from server to client using webservice?
    Webservice is Quite new for me. Any expert here can direct me to the tutorial link that can teach me how to use webservice?
    I go through some code :
    <?xml version="1.0"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://namespaces.cafeconleche.org/xmljava/ch2/"
    xmlns="http://namespaces.cafeconleche.org/xmljava/ch2/"
    elementFormDefault="qualified">What is xmlns? Is webservice can run it at localhost? My house don't have internet. :(
    Thank....

    to learn webservice..you can try these samples...
    http://www.csd.abdn.ac.uk/~bscharla/teaching/CS5302/practicals/practical8.shtml

  • Webservice to grab the files using HTTP

    Hi,
    Can any one guide me how to create a webservice to grab a file using HTTP? The scenario is that a webservice call should contact a system through HTTP to grab the file.
    Please help.
    Thanks,
    Sunny
    Edited by: Sunny1890 on Apr 2, 2009 7:00 PM

    Use classes available in java.net package.

  • Question about deletion of checked out file using CMIS connector

    When testing file deletion with Adobe Drive connected to an implementation of CMIS server, I ran into some mildly unexpected behavior for when the file is checked out.
    I successfully checked out a file through Adobe Drive then deleted the file. Our server has a constraint that checked out files are protected against deletions, renaming, and moves. So, I was expecting the operation to fail. Instead, the result was that the file had its check out canceled.
    In the AtomPub binding, a cancel check out is specified by deleting the pwc version of the the checked out file. So, this behavior did not strike me as too far off my expectations and I confirmed that the objectid in the deletion request sent by Adobe Drive was the id for pwc version of the file.
    Is this behavior intentional? Or is this an artifact of the way Adobe Drive caches the objectid of files? Check out requests do return an objectid and that objectid is that of the new pwc version of the file. So, the later behavior would not surprise me.
    Thanks

    Hi,
         Yes, this behavior is intentional.
         To bypass the possible constraint during deleting a checked-out file, Adobe Drive intentionally try to cancel check out this file by deleting the pwc version of the checked-out file.
    Regards,
    Gang

  • Get native file in ucm (ucm and terastack solution working together)

    Hi,
    We use oracle universal content management server (ucm). A lot of files are stored on the hard disk of the system using this content management system. Now we are using Terastack Solution (http://www.hie-electronics.com/) to create backup of the data. The TeraStack Solution is an optical data storage system designed and manufactured to improve performance through affordable and reliable data storage management. Terastack solution archives (writes) all files to dvds and then a module of it truncates all these files to zero byte in size to save disk space. Now terastack solution watches all archived files. If an application tries to open such a file, it intercepts this, blocks this request, then restores the file from the dvd. During this process calling application just waits for the file to open. After restoring terastack solution sends a signal to the calling application, and the file with full contents is opened in the application.
    Now here is the problem:
    Files are check-in oracle content server. Terastack solution has burned these files to dvd and made these files to zero byte in size. Now when we click a link in content server to get a checked-in file (native file), terastack solution intercepts it, restore the file from dvd, then an open/save dialog box open to either open or save the file to a location. We save the file to a folder, open this file and come to know that there is no content in the file. It is still a zero byte file.
    When we checked the file at original location (remember ucm stores files in vault folder), we came to know that file is actually restored successfully by the terastack solution but the content server returned a zero byte file. When we click the link for the same file again to get native file in ucm then we get a fully restored file. i.e. on the first try to get native file we get a zero byte file although it is restored by terastack solution successfully. And on the second try we get file with full contents. On the second try, file has already been restored by terastack solution during the first try and terastack solution ignores files greater than zero byte in size, that’s why client gets a correct file on second try. Having size greater than zero means file is already restored.
    The link in ucm that is used to get native file does not point directly to the desired file. It calls some code in ucm that transmit the required file back to the client. Something like this:
    http://localhost/idc/idcplg?IdcService=GET_FILE&dID=11&dDocName=test_06&allowInterrupt=1
    I think what is going on here is, when we click on a link to get native file that is zero byte in size, content server creates a response for the file, append the size of the file (currently zero) to the header of the response along with other info, and then tries to transmit the file to the client. At this point, terastack solution intercept the request and restore the file. After restoring terastack solution send signal to calling application that file is restored. But the server has already created request for the file and it is not updated during or after the restore, that’s why client gets zero byte file.
    What I want is somehow force the content server to wait until file is fully restored by terastack solution and then transmit the fully restored file to client. Is there any configuration setting for ucm that will achieve the goal?
    Any setting in bin/intradoc.cfg or config/config.cfg or something else?
    Need help.
    Environment:
    OS: Windows XP SP3
    Content Server 10gR3 (Deployed to: IIS, JDK used: v1.5)
    TeraStack Solution (Deployed to: JBoss)

    Thank you for your reply. Although the links to weblayout version of files works perfectly with terastack, but we want to take backup of files in vault folder. Is it possible to change the links that are use to get native file? Can we somehow make these links to directly point to vault files? If yes please tell us how.
    A custom java service to download the native file can also work. Can you please give us a sample code and how to implement it in ucm?
    Please provide one of the solutions. I’m a new comer to ucm, so please provide instructions in more details.
    BTW, I tested the restoration of file using a test dotnet web application. I added code that downloaded a user selected file to the client. The code we used is as under:
    1. FileInfo fi = new FileInfo(filepath);
    2. Response.Clear();
    3. Response.AddHeader("Content-Disposition", "attachment; filename=" + fi.Name);
    4. Response.AddHeader("Content-Length", fi.Length.ToString());
    5. Response.ContentType = GetFileContentType(fi.Extension);
    6. Response.TransmitFile(fi.FullName);
    7. Response.End();
    GetFileContentType() function is a simple function to get content type of a file type.
    Line#4 is important here. A file is zero byte in size when a request to download a file is received by the server, and the server just appends content-length=0 in the header. So even the file is restored by the terastack afterwards, client still receives a zero byte file. At this stage our test application has the same problem, not getting a native file with full contents.
    We removed line# 4 and tried again to download a file thru our test web application. This time client got file with full contents after the file is restored. So we think this Content-Length header is the one that needs to be handled.
    You may find this information useful if you decide to build a java service solution.

  • Image not displayed in html output used webservice to store in a location

    hi
    we have used webservices to store the pdf and html outputs but the problem is when we are seeing the preview in the bi publisher we can see the image in pdf and html but when we run through webservices and see the output files that are stored in some location image in the html output is not displayed but in the pdf we can see the image.
    i have used the direct insertion image option in the header section. is the problem because i have used the direct insertion.
    can you give the idea how to import logo from an external location so that we can check the if it is problem with direct insertion or problem with the webservice as we are storing the output files outside the catlog but it may not be wrong because in pdf we can see the image.
    I am not having any idea how to solve thsi issue..
    Sorry to bother you with these many questions
    Thanks in Advance
    Have a Nice day.

    Please state which BI Publisher version you are using.
    In case it is 10g then please always test the application with the latest patch first!.
    BTW today there is been a new patch 11846804 released for 10.1.3.4.1 (March 2011).
    regards
    Jorge

  • ADOBE FORMS using Webservice

    Hi Experts,
    I have a problem with Adobe Forms Using webservice.  I created  RFC where it saves data from Adobe Forms to a customized table and exposed it as webservice.  From the SOA manager, I copied the generated link pasted in the dataconnection in Adobe Lifecycle designer, but whenever I generate the form I keep receiving this error:
    "http:// erpwrk1.corp.com:8000/sap/bc/srt/wsdl/bndg_DFA46DE60CFOD33F19F21005056C00008/wsdl11/allinone/ws_policy/document?sap-client=001".  Check that the path is correct and that the file is a valid wsdl file.
    I already activated services from SICF in relation SOAP runtime.   What could be the cause of the problem and how to fix the problem?
    Thanks A Lot!
    Mae

    Hi Ma. Angelica A. Estacio,
    From the SOA manager, I copied the generated link pasted in the dataconnection in Adobe Lifecycle designer, but whenever I generate the form I keep receiving this error:  Check that the path is correct and that the file is a valid wsdl file and hence i cannot finish the data connection wizard.
    From the above posts, it looks like you have resolved the issue. But can you please let me know how did you resolve it ?
    Did you check any SAP transaction to find the above mentioned checkbox?
    Please revert as this has become critical now.
    You can mail me your response on [email protected]
    Regards,
    Rohit Gugale

  • How to send the Checked-in file to the user in workflow as an attachment.

    Hi All ,
    I am using UCM 11g and i need to send email to the workflow users with the checked-in file as an attachment.Can anyone guide me how to customize or configure it in UCM 11g.
    Thanks !!!

    Hello,
    this is not a standard behaviour and I am not sure if I would even recommend you to go this way. Why?
    a) content items in workflows are usually still to be reviewed - if you send it as an attachment to an email, the user may forward it and you will by-pass all the security that UCM provides
    b) you will mess up version controls (which attachment is the correct one, if someone checks in a new version?)
    c) you will pass the content through the email server - this is something customers usually want to get rid of
    d) why can't you use just the standard workflow review functionality? - that is, instead of the file you send a link to the file, which usually displays its web-viewable rendition (but you can change it to the link to native files, if you want to) This is also a one-click solution (well, users may have to authenticate for UCM, if you have no single sign-on), and it is completely under control.
    However, if you stick to email attachments, you will have to go with a custom component. There is a sample AcmeEmail, which can serve as a basis for email functions, so you will need to combine it with workflows. But like I wrote - better try to persuade your customer to go with the standard.
    Jiri

  • How to assosciate webservice to a WSDL file

    Hi
    I tried developing webservice(EJB as RPC) in weblogic server and installed and its working fine if i call it from client.
    I am using java2WSDL(axis) tool to create a WSDL file and WSDL2Java to create stubs for client to call.I am struck in linking webservice to use the wsdl file which i have created.
    I manually tried to add my WSDL file to the WAR file of my application and also Updated the web.xml file of the Web application adding a mime-mapping.
    I am able to access the WSDL file in browser as http://bt885094:7001/webservice/user.wsdl
    But my client tries to access the service "http://bt885094:7001/webservice/C2PUserService" which has an associated WSDL file defined as http://bt885094:7001/webservice/C2PUserService?WSDL which needs to be checking for http://bt885094:7001/webservice/user.wsdl
    Could anyone tell me how to assosciate webservice to a WSDL file.
    thanks in advance

    Thank you everyone for your help. As a complete newbie I found this nice walkthrough tutorial in onjava(i dont mean to spam).
    1. View: Take a peek at the existing Fibonacci code.
    2. Java2WSDL: Generate the WSDL file for the given Fibonacci interface.
    3. WSDL2Java: Generate the server side wrapper code, and stubs for easy client access.
    4. FibonacciSoapBindingImpl: Fill in wrapper to call the existing Fibonacci code.
    5. Deploy: Deploy the service to Apache Axis.
    6. Client: Write a client that uses the generated stubs, to easily access the Web service.
    Given the webservice endpoint and the method name, I think I can now consume the web service using steps 3,4, and 6.

  • Unable to open file D:/ucm/data/users/userdb.txt

    Dear All
    I have installed oracle UCM server on my windows server 2003 system and when i tried to log in throught http://localhost/idc I got this error:
    Access denied to UCM Server managed resource. Error loading credentials from master cache. Unable to open file D:/ucm/data/users/userdb.txt.
    I checked the path above and I didnt find the file userdb.txt, it might be something wrong in installation
    Im just a beginner who doesnt have much knowladge in the field, I followed detailed steps I found on club-Oracle website ( http://www.club-oracle.com/forums/installing-stellent-or-oracle-universal-content-management-t170/)
    I appreciate any help from you.
    Regards

    actually I was loging here to say that I found errors in the log file, the error seems to be related to DB connection problems, these are the errors in m,y log file:
    ERROR:     Unable to create database connection for the database 'InstallerDatabase' with connection string 'jdbc:oracle:thin:@localhost:1521:home'. Please make sure that the connection string, user and password are correct.
    Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:home
    ERROR:     Unable to create database connection for the database 'InstallerDatabase' with connection string 'jdbc:oracle:thin:@localhost:1521:home'. Please make sure that the connection string, user and password are correct
    Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor The Connection descriptor used by the client was: localhost:1521:home
    ERROR:     Unable to create database tables. You will have to create them manually
    error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
    The Connection descriptor used by the client was:
    localhost:1521:home
    WARNING:     Unable to publish user database.
    WARNING:     Unable to register with Administration Server

Maybe you are looking for