Is there any service "write to repository"??

Hi, Is there any service in livecycle workbenchES2 for writing any file to repository, or creating a repository...
I have a service to read a file , readResourceRepository... but dont see any other service... please let me know how do i orchestrate a process to write a file in repository..

Hodmi,
First of all i could not fine adobe-repository-dsc.jar on my system. Is it present on server?????
Second thing....
I tried to use execute script activity and put below code into it... but it is showing some error"DSCRun time exception"...Can a file be written to repostiory using execute script and below code into it...
can you modify this code
import java.io.ByteArrayInputStream;
import java.io.File;
import java.lang.String;
import java.io.InputStream;
import java.util.Properties;
import org.apache.commons.codec.binary.Base64;
import java.util.*;
import com.adobe.idp.Document;
import com.adobe.idp.dsc.clientsdk.ServiceClientFactory;
import com.adobe.repository.bindings.dsc.client.ResourceRepositoryClient;
import com.adobe.repository.infomodel.*;
import com.adobe.repository.infomodel.bean.*;
com.adobe.idp.Document testFile=patExecContext.getProcessDataDocumentValue("/process_data/InputDoc");
String  testFolderUri=patExecContext.getProcessDataValue("/process_data/Path");
Properties ConnectionProps = new Properties();
   ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_SOAP_ENDPOINT, "********");
   ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,"SOAP") ;         
   ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "WebSphere");
   ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "********");
   ConnectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "********");
   ServiceClientFactory myFactory = ServiceClientFactory.createInstance(ConnectionProps);
   ResourceRepositoryClient repositoryClient = new ResourceRepositoryClient(myFactory);
// Create a RepositoryInfomodelFactoryBean needed for creating resources
   RepositoryInfomodelFactoryBean repositoryInfomodelFactory = new RepositoryInfomodelFactoryBean(null);
   // Create the resource to be written to the folder
   Resource testResource = repositoryInfomodelFactory.newResource(
    new Id(),
    new Lid(),
    "testResource"
   // Set the resource’s description
   testResource.setDescription("test resource");
   ResourceContent testContent = repositoryInfomodelFactory.newResourceContent();
   testContent.setDataDocument(testFile);
   //testContent.setSize(testData.length);
   testResource.setContent(testContent);
   // Write the resource to the folder
   repositoryClient.writeResource(testFolderUri, testResource);
   // Retrieve the resource’s URI
   //String resourceUri = testFolderUri + "/" + testResource.getName();
   // Retrieve the resource to verify that it was successfully written
   //Resource r = repositoryClient.readResource(resourceUri);
   // Print the resource verification message
   //System.out.println("Resource " + resourceUri + " was successfully written.");
  } catch (Exception e) {}

Similar Messages

  • Is there any service like "kOversetFrameService" for indesign?

    Hi all
    I looked service providers there was "kOversetFrameService" for "incopy". is there any service like "kOversetFrameService" for indesign?
    thanks
    Hakkim

    Hi steven
    thanks for ur reply. I dont have much knowledge in sdk, how can i use it as seviceid. could u pls suggest?
    many thanks
    Hakkim

  • Is there any Service Number for Skype?

    Hi, Is there any Service Numbers for Skype? Ex: any Skype number where i can authenticate myself and dial the number where i want to cal.

    Jacquelinematth wrote:
    I did not ordered the special 5% discount package.
    Hello,
    Please file here:
    https://support.skype.com/en/faq/FA1170/How-can-I-contact-Skype-Customer-Service
    TIME ZONE - US EASTERN. LOCATION - PHILADELPHIA, PA, USA.
    I recommend that you always run the latest Skype version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I generally don't respond to unsolicited Private Messages. Thank you.

  • Is there any Read/Write capable ArchiveLink Repository Manager?

    Hello Experts and Super-Experts Thilo and Detlev:
        Are any of you aware of a Read/Write ArchiveLink Repository Manager for the KMC platform?
        I know that there are a few SAP partners that have repository managers that allow for read access into ArchiveLink repositories. I have not as yet found a read and write capable ArchiveLink repository manager.
        I would appreciate any information.
    Regards,
    - Vik.

    Hello Experts and Super-Experts Thilo and Detlev:
        Are any of you aware of a Read/Write ArchiveLink Repository Manager for the KMC platform?
        I know that there are a few SAP partners that have repository managers that allow for read access into ArchiveLink repositories. I have not as yet found a read and write capable ArchiveLink repository manager.
        I would appreciate any information.
    Regards,
    - Vik.

  • Is there any service desk guide for Solution Manager 7 configuration?

    Dear Sir:
    I would like to configure the service desk of solution manager 7.
    but all i found documents are for solution manager 4.
    the IMG setting and other steps are quite different...
    wondering is there any new guide or step by step documents for specific solution manager 7?
    Regards
    Jack Lee

    hi,
    There is no direct document which is that much specific
    Have you checked this document
    https://websmp101.sap-ag.de/~form/sapnet?_SHORTKEY=01100035870000722612&_OBJECT=011000358700000122472008E
    U can follow the steps and if u dont find any node u cn search in SPRO
    in solman 7 mainly all the activities are under the node SPRO->scenario-specific->service desk
    rest check this
    Service Desk: Support team determination
    /people/dolores.correa/blog/2007/10/06/service-desk-support-team-determination
    Service Desk Implementation Guide
    /people/bruyneel.guillaume/blog/2008/05/02/service-desk-implementation-guide-part-i
    /people/bruyneel.guillaume/blog/2008/06/13/service-desk-implementation-guide-part-ii
    Hope it helps,
    Regards
    Prakhar

  • Are there any services that can be removed for a smartphone line that hasn't been used since June of last year?  I can't afford the $300 cancellation fee.

    I'm in a very tight financial spot, and was hoping I could cancel text, or something.   My son hasn't used his phone since he got his own service in June of last year, and it's just silly to continue paying for it.  Very curious how the account continues to show text messages connected with the phone. 

    You might look into one of the services that helps match you up with a buyer that wants a phone and willing to take the contract with it (such as celltradeusa.com for instance).  I am listing this site only as an example, there are others as well.  Or alternatively find a friend or other family member who wants the phone and again willing to accept the contract with it.  It is legal and allowed by Verizon (and other cell companies) to transfer the contract to another person.

  • Is there any way (API ?) to access the UDS repository directly ...?

    This is probably reviving some older thread from way back in 1998 when similar questions where asked ...
    I am working on a program of my own (writing it in Borland Delphi), and I would like to have access to the Repository.
    One way I could think of is through the command line tools (like FScript) that come with UDS . However, I figure that there must e an 'easier' way to access the repository and retrieving/storing information.
    In one of the old threads I saw that an API would become available in v4 ...
    Alas ... no v4 ever saw the light. Instead of v4, the boys and girls of IPlanet/Sun went straight to v5 (and renamed their product from Forte to UDS).
    I can't find the API (documentation) mentioned above ...
    Does any of you guys out there have any information or, even better, examples on how to achieve access to the repository from a non-Forte application.
    If I could get this to work it would mean a huge (and that should be written HUGE) step forward in reaching my goal ...
    Hansz

    Of course there is an API to repository objects, and the SUN/iPlanet people are using it. Also in past times Forte-partners have used it. You can see the classes when you set certain cfg. flags. The problem is, there is no documentation about that API provided by SUN. If you find an expert within the community (who is not bound by a non disclosure ), it will be rather easy to set up C++ wrappers to integrate with an external (non TOOL) application.
    We feel a need for documented access to the repository objects as well, as that would make several tasks of development automatization and integration with other development tools (Forte for JAVA e.g.) more straight forward.

  • Today I deleted an email services I no longer need. Now when I go to the notes app I no longer have any notes.  Is there any way to get my notes back. I have the first iPad running iOS 5.1.1

    Today I deleted an email services I no longer need. Now when I go to the notes app I no longer have any notes.  Is there any way to get my notes back. I have the first iPad running iOS 5.1.1

    Ah, well, then the notes are probably gone. Did you save any of the email from that account on your computer? The notes might be there if you did.

  • I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?

    I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?

    Check this thread where people have already given their suggestion on learning SSIS
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f2cc1cf3-204d-454a-a189-47df87a3aa23/i-want-to-learn-ssis?forum=sqlintegrationservices
    I would suggest to go for You tube videos (type learn SSIS or begin SSIS step by step) you will get lot of good tutorials to start with.
    Happy Learning!!
    If this post answers your query, please click "Mark As Answer" or "Vote as Helpful".

  • Concerning: VGA monitors using an Aluminum Powerbook G4 PowerPC 2004 15"-screen 1.5Ghz  The DVI (converted to VGA) video output stopped working on this computer after 9 years of service. This raises question 1:  Is there any way of fixing this? I've tried

    Concerning: VGA monitors using an Aluminum Powerbook G4 PowerPC 2004 15"-screen 1.5Ghz
    The DVI (converted to VGA) video output stopped working on this computer after 9 years of service. This raises question 1:
    Is there any way of fixing this? I've tried the usual: triple checked all vga cables & devices through trial & error. Bought a new DVI-VGA adapter. Reset PRAM, PMU, etc. Nothing works. Something is probably damaged, because my KVM switch was not working unless I hot-reseated the vga cable into it, leading to this DVI port, and that is pretty rough stuff.
    Question 2 (related):
    This dovetails into this: Can I drive a VGA monitor with the s-video output port on this computer. It would take an s-video (male)-to-15-pin-VGA adapter. Has anyone does this? So far, I haven't even found the adapter mentioned anywhere.
    Thanks for reading this.
    el7

    Thanks for the useful feedback, Knucklesmac. I agree. I must have blown something on the logic board -- because I had a faulty old KVM switch that would not switch between computers without some nasty hot-plugging/unplugging the VGA video cables. (wince!). It's like when Dizzy Dean ruined his arm because a line drive hit him in the foot and he readjusted his mechanics around the injury. I take the blame because this has been a great computer, and does not deserve any blame.
    If it will help anyone else reading this thread, C2G (née Cables to Go) has some interesting ideas for still getting external video out of this computer:
    -USB-to-VGA
    http://www.cablestogo.com/product/30545
    -Convert s-video or composite video signals to high resolution VGA
    http://www.cablestogo.com/product/40971
    The price range is $75-$85, which doesn't make horse sense to me for such an old computer -- which has a lot of life in it anyway, because its own 15" monitor is not chopped liver.
    el7

  • Is there any way I can find out the service record on this mac ?

    I purchased a used QS from an authorized apple dealer at their after boxing day sales event. This QS is extremely quite compared to my polar express MDD.
    Is there any way I can find out the service record on this mac ?
    Somewhere away back when I heard that by knowing the serial number the details of the service record on the given mac could be found. However in those days I only bought new. These days with mac's inability to run applications that require the for real OS 9 ( not classic ) I have to scour the used market. I have some high end audio midi programmes ( for example emagic, cubase VST score ) that do the job and sometimes better then then the OS X versions.

    Hello,
    You can use System.getProperty("SAPSYSTEMNAME"); in your UDF as specified in this thread.
    Get name of XI System in mapping
    Hope this helps,
    Mark
    Edited by: Mark Dihiansan on Apr 27, 2011 7:51 AM

  • Is there any kind of Apple Company policy that Apple's iPhone can only be repair or service at the place from where the iPhone have bought?

    Hello,
    I'm Chintan from India. I have visited UK for study and brought iPhone 5 for me. I used it for about 16 days and now its started showing the problem of coverage. I mean, it shows "NO SERVICE" at the place of carrier name and tower symbol.
    My query:
    Do Apple have this kind of worthless service provider policy?
    I have visited the local authorized service center and they are not accepting my iPhone 5 and telling me that they can not accept it for repair or service because I have brought it from UK. I have checked my iPhone 5 status on the Apple Site and it is showing full cover of Repair and Service, then why the local Apple Authorized Service Center is not accepting my iPhone 5?
    Is there any kind of Apple Company policy that Apple's iPhone can only be repair or service at the place from where the iPhone have bought?
    Kindly help me out as I'm stuck with the so called APPLE IPHONE 5.
    Looking for the POSITIVE, SUPPORTIVE and HELPFUL reply.
    Thank You

    You should have read the warranty/support terms before you made your purchase. Had you, you would have found that iPhone warranty/support is only valid in the country of original purchase(except for the EU where warranty/support is EU wide). In your case, your warranty/support is only valid in the EU, as you have now found out...after your purchase. And, you are correct, they will not service the phone in India.
    Always been this way with the iPhone.

  • Is there any way we can set default value for a Date Attribute to current date in Master Data Services

    Is there any way we can set default value for a Date Attribute to current date in Master Data Services.
    I as well wants to know that is there any posibility to show Calendar control while input data into respective date attributes.
    Thanks.

    Hi Anagha,
    So far i havent found any way to set todays date by default from MMI, but i guess this flow should work as workaroud
    1. Add buisness rule which can set a default value when Date = NULL/Blank
    2.get the entity table ,use -select EntityTable from mdm.tblEntity where Name = '<enter entity name>'
    3.Go to that table and add a after update trigger like
    if uda_<entityid>_<attributeid(Date attribute)> = default value
    update uda_<entityid>_<attributeid(Date attribute)> =getdate() where id = <LastUpdatedRow>
    I will check on this too from my side.
    By the way AFAIK i dont think so calendar control integration is possible .

  • Is there any script to restart the workflow services

    Hi
    Is there any script to restate the workflow services in 11i and R12
    Regards

    Hi,
    Please see (Note: 743264.1 - How to Stop/Start Workflow Service Containers From Command Line).
    Regards,
    Hussein

  • Is there any command to find the running cloud services in the current PC in windows?

    Is there way to find the list of running cloud service providers in the current PC through C++ programming ?
    Or is there any other tool which gives the list of service providers running in the PC?
    I know this question is not related to Azure but Azure comes under this part..
    Please let me know the answer if any one is aware of it....

    Hello DeekshaBharathi,
    There are only 3 ways of communicating with the Azure cloud services:
    a. Management Portal
    http://azure.microsoft.com/en-us/documentation/articles/cloud-services-how-to-manage/
    b. REST APIs
    http://msdn.microsoft.com/en-us/library/azure/ee460799.aspx
    c. Powershell
    http://msdn.microsoft.com/en-us/library/azure/jj156055.aspx
    Since that you want to use commands to manage Cloud Services. You can do it using PowerShell. You can refer to the article above for more information on this.
    Thanks,
    Syed Irfan Hussain.

Maybe you are looking for

  • Can you see this video?

    Hi, Trying to convert my wife to an Arch user.  She doesn't have much of a chance :-),  but she usually enjoys finding media on the web which does not seem to be managed with mplayer.  Most times, it ends up being something to do with Java scrips whi

  • Making the TO  field in DATE mandatory

    i hav a select options for the date field. requirements: it shud work if i  give the TO field only! the FROM field can be optional!

  • Line Graph/Chart

    Post Author: vmm CA Forum: Charts and Graphs Hi All, Does anyone know how to make the 'Data Labels' in Line graph on the 'x axis' to be vertically align? The thing is, on the x axis I have 'date with timestamp' labels e.g. "2007/08/30 20:19:45". When

  • I upgraded to IOS 7 and seemed to lose my music ringtones but kept all my other music.  Is that typical?

    I seemed to lose my purchased ringtones from my device but I did not lose anything else in terms of apps and music.  I did back it up before the upgrade. Is this a known issue?

  • IDVD disk reading problem on MacBook Pro

    When I burn a movie using iDVD v.7.0.3, I'm not able to play it on my MacBook Pro. When I burn the same movie on another machine using iDVD v.6.0.4, I can play it on the MacBook Pro with no problem. Please advise. Thanks, Greg