Rest api webcenter State or walk of a workflow

Hi people!

I need your help, I am using the Rest API of oracle webcenter sites, but I have not found how to get the information from a specific asset in a workflow, for example: workflow, update, lately published, responsible role etc.

I need know if a specific asset has been approved for all steps whit the rest api.

Is this possible?

Thanks in advance.

Currently, there is no REST out-of-the-box service that allows to query or return information of workflow. If you need this report REST you can write your own page of utility (SiteEntry and CSElement) who works in a relaxing way, taking arguments and retrieve the necessary data based on workflow JSP tags, then return an XML response.

Phil

Tags: Fusion Middleware

Similar Questions

  • How to get assets via the REST API (Webcenter Sites)

    Hello world

    I need to get assets via the REST API using Javascript, but I don't know how to open a session. Can someone explain to me how do?

    I would really appreciate it.

    I also followed this guide Oracle Webcenter REST API permission | Stories of official codification but does not work.

    Best regards!

    Hello rvillamarin,

    Take a look at https://docs.oracle.com/cd/E29542_01/doc.1111/e29634/wemsecurity.htm#WBCSD306. With this, you should be able to get a ticket, to pass at the request of the REST.

    Kind regards

    Stephan.

  • WebCenter Sites REST API: How to add multiple attributes to Active?

    I created an asset with a multiple attribute, as for example, a set of images.

    I would like to insert images of this asset with the Webcenter Sites REST API but I Don t know how.

    Single attribute is like this:

    sourceAssetAttribute = new Attribute();
      sourceAssetAttributeData = new Data();
      sourceAssetAttribute.setName("FSIILongDescription");
      sourceAssetAttributeData.setStringValue("Test Long Description");
      sourceAssetAttribute.setData(sourceAssetAttributeData);
      sourceAsset.getAttributes().add(sourceAssetAttribute);

    And multiple is how?

    I finally got.

    https://support.Oracle.com/epmos/faces/DocumentDisplay?_afrLoop=563491042188574&parent=document&SourceID=1528601.1&ID=1510322.1&_afrWindowMode=0&_adf.CTRL-State=m55lxhl4z_58

    It s like this:

    sourceAssetAttribute = new Attribute();

    sourceAssetAttributeData = new Data();

    sourceAssetAttribute.setName ("attribute_name");

    sourceAssetAttributeData.getStringLists (.add(0,"Asset_type:"+asset_id));))

    sourceAssetAttributeData.getStringLists (.add(1,"Asset_type:"+asset_id));))

    sourceAssetAttribute.setData (sourceAssetAttributeData);

    sourceAsset.getAttributes () .add (sourceAssetAttribute);

  • Version of spring with rest api sites webcenter

    Hello world!

    I use other api sites webcenter, with this library: com.fatwire.wem.api.rest 11.1.1.8.0, com.fatwire.wem - sso-api-case - 11.1.1.8.0, com.fatwire.wem - sso-api - 11.1.1.8.0 in an application of spring with the 3.2.10.RELEASE version. And it works very well! I make a list of the assets and all its attributes, but I need use this application with spring version 4.0.6.RELEASE, then when I update the version of spring the rest api that libraries do not work. It's the method that fails:

    SSOSession ssoSession is SSO. getSSOSession (baseUri);

    multiticket = ssoSession.getMultiTicket (username, password); -> Error LINE

    baseResource is baseResource.queryParam ("multiticket", multiticket);.

    This because the application cannot get a mutiticket. I use the same code and the same structure only changes the spring version. Oracle webcenter is updated with all the patches up to this date.

    How can we solve this problem?

    THX

    SOLVED

    Private Sub authenticate() throws {RestConnectionException}

    try {}

    SSOSession ssoSession = SSO.getSSOSession ("CASConfig.xml");

    multiticket = ssoSession.getMultiTicket (username, password);

    baseResource = baseResource.queryParam ("multiticket", multiticket);

    } catch (SSOException e) {}

    throw new RestConnectionException (e);

    }

    }

    CASConfig.xml

    http://www.springframework.org/schema/MVC ".
    "" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance"
    "xmlns:beans ="http://www.springframework.org/schema/beans"
    "xmlns: jee ="http://www.springframework.org/schema/jee"xmlns:tx ="http://www.springframework.org/schema/tx"
    "xsi: schemaLocation ="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
      http://www.springframework.org/schema/JEE http://www.springframework.org/schema/JEE/spring-JEE.xsd http://www.springframework.org/schema/TX http://www.springframework.org/schema/TX/spring-TX.xsd">."

    ': http://application-tier server: port/AR ' / >

    ': http://application-tier server: port/AR ' / >


    Add the casconfig to the classpath in the spring, set up the server and port in xml and it works!

  • create the document using the CMIS REST API

    Hello! I would like to integrate my java application with Oracle Webcenter via the REST API of CMIS. I can read, delete documents, but have some problem with creating one.

    I get success only when I create document (type = "/ ucmserver / IDC:GlobalProfile") with the name "idcPrimaryFile". In other cases I have the exception:

    oracle.webcenter.content.integration.RepositoryException: November 12, 2015 08:52:06 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is XXX and the name of the file is idcPrimaryFile

    My properties:

    Properties =]

    (PropertyIds.OBJECT_TYPE_ID): type.

    (PropertyIds.NAME): name,.

    "/ ucmserver / IDC:GlobalProfile.ora:p:dDocType ':"Application. "

    ' / ucmserver / IDC:GlobalProfile.ora:p:dDocTitle ': 'Test ',.

    ' / ucmserver / IDC:GlobalProfile.ora:p:dSecurityGroup ': 'Public ',.

    ]

    I would appreciate help

    Hello! I solved my problem, but with a workaround.

    I will try to explain the problem and how it is possible to create documents via Oracle Webcenter Content Management API REST CMIS:

    For the next POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Content-Type: application/atom + xml; type = entry

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I get the response from the server

    Error 500 - Internal server error

    oracle.webcenter.content.integration.RepositoryException: 18 November 2015 05:24:04 oracle.webcenter.content.integration.spi.ucm.DocumentManager mapBinaryPropertiesToTransferFile

    GRAVE: Impossible to perform the action on document with binary because the binary name and the name of the node must be the same, but they are not.  The binary name is test , and the name of the file is idcPrimaryFile.

    When the test is the document name.

    This request, I checked with an another compatible services of CMIS (IBM FileNet and OpenCMIS InMemory repository). I created the document with name test it.

    Workaround solution:

    POST request:

    POST/rest/api/cmis/children/ucmserver? UID = IDC:Folder / FLD_USERS & versioningState = none HTTP/1.1

    Host: 192.168.32.192:8888

    User-Agent: Mozilla/5.0 (X 11; Linux x86_64; RV:38.0) Gecko/20100101 Firefox/38.0

    Accept-Encoding: gzip, deflate

    Connection: keep-alive

    Accept-Language: en-US, en; q = 0.5

    Host: 192.168.32.192:8888

    Content-Type: application/atomsvc + xml

    Slug: test

    Cache-Control: no cache

    "http://www.w3.org/2005/Atom' xmlns:cmis ="http://docs.oasis-open.org/ns/cmis/core/200908/"xmlns:cmisra ="http://docs.oasis-open.org/ns/cmis/restatom/200908/"xmlns:chemistry ="http://chemistry.apache.org/">."

    urn: uuid:00000000 - 0000-0000-0000-00000000000

    test

    2015 11-13 T 08: 06:27.014Z

    a text

    Public

    test

    Application

    MyTitle

    / ucmserver / IDC:GlobalProfile

    I created the document with the name test in Oracle Webcenter.

    The differences between applications are:

    Content-Type: application/atomsvc + xml

    Slug: test

    So I'm not sure that the Oracle Webcenter Content Management Service STILL provides "correct" implementation of the OASIS CMIS specification, because I found nothing in therehttp://docs.oasis-open.org/cmis/CMIS/v1.0/cmis-spec-v1.0.html on the Slug query parameter and it is not clear to me how the Oracle Webcenter Content Management REST Service works with Content-type application/atom + xml; type = entry (I mean according to CMIS specification().



    It will be very useful for me to get another point of view. Maybe someone could correct me if I'm wrong.

    Thanks in advance.

  • Updated filter shared via the REST API

    Hello I'm trying to update a shared API filter. I'm using PHP and client fredsakr/eloqua-php-application · GitHub.

    So far, I was able to retrieve the filter with the following call:

    <?php
    require('./eloquaRequest.php');
    $eloquaRequest = new EloquaRequest('site', 'User.Name', 'password', 'https://secure.eloqua.com/API/REST/1.0');
    $response = $eloquaRequest->get('assets/contact/filters?search=TheFilterName&depth=complete');
    print_r($response);
    ?>
    

    I can see the filter in the answer below:

    (
        [type] => ContactFilter
        [currentStatus] => Active
        [id] => 100761
        [createdAt] => 1380137168
        [createdBy] => 48
        [depth] => complete
        [folderId] => 1036
        [name] => TheFilterName
        [updatedAt] => 1383589417
        [updatedBy] => 48
        [count] => 254382
        [criteria] => Array
            (
                [0] => stdClass Object
                    (
                        [type] => ContactFieldCriterion
                        [id] => 1912
                        [condition] => stdClass Object
                            (
                                [type] => TextSetCondition
                                [operator] => in
                                [optionListId] => 193
                            )
    
                        [fieldId] => 100012
                    )
    
            )
    
        [lastCalculatedAt] => 1380137190
        [scope] => global
      statement] => 1912
    

    What I want to do is update that corresponds to the values of 'Compare the Contact fields' in the GUI Eloqua under Contact = > Shared Library = > Contact filters.

    Looks like he has the "[type] = ContactFieldCriterion" under the [criteria] field in the response.

    I'd get how this value in a call to REST, and also how I would update it.

    Please let me know if you need more details on this issue. Please help and thank you.

    After some research I found what I wanted to do has been updated the list of options for this filter. See http://topliners.eloqua.com/docs/DOC-3588 for documentation on the base object. But I had difficulty in updating an OptionList with the Rest API using PUT. If you can help, please visit http://topliners.eloqua.com/message/36739#36739 . Thank you.

  • VRA 6.2 REST API: resource Action with object mapped by VRO

    I created a resource Action (Advanced Services - resources Actions) who calls a workflow orchestrator (VRO) to do a few things.  The VRO workflow takes three objects as inputs: 2 channel and a VC:VirtualMachine.  Connecting the web GUI, when a user selects the action for the specific virtual machine, they are presented with a form asking to specify the content of the 2 strings.  The VC:VirtualMachine object is transparant and (I think) is automatically mapped internally to the enabled virtual machine.  This works very well at the launch through the web GUI.  Now, I need to create the same scenario using the REST API.  I created the "ResourceActionRequest" object JSON and included the 2 strings as indicated in the request data, but I have no idea how to do to add the VC:VirtualMachine object to the request.  I thought maybe it was too transparent, but I get an error if I try to send the JSON without the 3rd data item.  For example, here is my "ResourceActionRequest" object JSON:

    {

    "@type": "ResourceActionRequest",

    'resourceRef': {}

    'id': '< resourceRef-id >.

    },

    'resourceActionRef': {}

    'id': '< resourceActionRef-id >.

    },

    'Organization': {}

    "tenantRef': '< label >."

    "tenantLabel': '< label >."

    'subtenantRef': '< subtenantRef > ',.

    'subtenantLabel': '< subtenantLabel > '.

    },

    "State": "SUBJECT."

    "requestNumber": 0.

    'requestData': {}

    "items": [{}

    "key": "provider-MyFirstCustomProperty."

    'value': {}

    "type": "string",.

    "value': ' blah, blah, blah."

    }

    },

    {

    "key": "provider-MySecondCustomProperty."

    'value': {}

    "type": "string",.

    "value': ' blah, blah, blah."

    }

    }]

    }

    }

    I don't know how to provide the VC:VirtualMachine in the application.  Any help would be appreciated.  Thank you!

    -Stephen

    Hey Stephen,

    I do not see the bits that I expect:

    {

    "key": "provider-MachineName."

    'value': {}

    "type": "string",.

    'value': 'vra045 '.

    }

    }

    It's vRA identity Machine which must correspond to the rear.

    Grant

  • vCO 5.5.2 and vCAC 6.1 plugin error REST API

    Hello

    I get an error when you try to make applicants vCAC 6.1 REST API calls of vCO 5.5.2 for the items in the catalog.  This same code works very well with the vCAC 6.0.1 plugin.

    Error:

    Data serialization error. (Workflow: Test vCAC remains / Scriptable task (item1) #24)

    Code:

    var point = {'@type': 'CatalogItemRequest',}

    "catalogItemRef": {"id": "3e6c3f13-6ea0-4da5-8bac-d8cb27e64f24"},

    "Organization": {"tenantRef": "vcacadmin"}

    {"subtenantRef": "e931debb-6200-40e5-89a7-01d35d0cc306"},

    "requestedFor": "[email protected]",

    "State": "SUBJECT."

    "requestNumber": 0.

    "requestData": {"items": []}

    {"key": "provider-blueprintId', 'value': {'type': 'string', 'value':"catalogItem.id"}}.

    {"key": "provider-provisioningGroupId', 'value': {'type':"string","value":"e931debb-6200-40e5-89a7-01d35d0cc306"}},

    {"key": "requestedFor', 'value': {'type':"string","value":"[email protected]"}},

    {'key': 'provider - VirtualMachine.CPU.Count', 'value': {'type': 'integer', 'value': 1}},

    {'key': 'provider - VirtualMachine.Memory.Size', 'value': {'type': 'integer', 'value': 1024}},

    {'key': 'provider - VirtualMachine.LeaseDays', 'value': {'type': 'integer', 'value': 0}},

    {"key": "provider-__Notes', 'value': {'type': 'string', 'value': 'Test'}},

    {'key': 'provider - VirtualMachine.Disk0.Size', 'value': {'type': 'string', 'value': '40'}},

    {{[{"key": 'provider - VirtualMachine.Disk1.Size', 'value': {'type': 'string', 'value': '8'}}]}}

    var catalogRest = vcac.createRestClient (vCACCAFEServicesEnum.CATALOG_SERVICE);

    var answer = catalogRest.post("consumer/requests",item);

    vCAC 6.0.x plugin expects a json object in the call to rest.

    6.1 plugin expects a value of json string.

    This will do the trick:

    var response = catalogRest.post ("consumer/queries", JSON.stringify (item));

  • vShield does REST APIs support JSON?

    Hello

    I tried on vShield REST API. Support the JSON content type? All of the examples I see is using xml. I am able to get JSON content. But when I try to create/update it gives me the error.

    This gives me the answer in JSON format:

    curl k u < user >: < pass > h ' Accept: application / json ' https:// /API/2.0/services/ipset/ipset-150 < ip >

    But if I try:

    curl k u < user >: < pass > x POST h "Accept: application / json ' h ' Content-Type: application / json" d "{'description': 'test FPS',"name":" FPS-test-1', 'value': '22.22.22.1', 'revision': 0 '} " https:// /api/2.0/services/ipset/dvportgroup-1265 < ip >

    I get the following error:

    The HTTP 400 - the request sent by the client state is syntactically incorrect.

    Please help me with this.

    Kind regards

    Skander

    I think that our RESTful systems only manage the entry of XML format.  This is more of a general statement that specific POSSIBLE.

    You can file a request for assistance for a feature request?  Some people asking about it internally as a possible use scenarios to see what the benefits would be there.  If you make an SR, private Message me please the SR number.

  • REST API

    Hello

    Can someone tell me how to move from entry to the POST of the REST API method?

    My goal is to plan a deployment using the REST API with the changed value of the key - "domain_name_distingueshed".

    To plan a deployment by using the POST method with value key changed, I'm providing command as follows:

    curl - i - user admin:ca$ hc0w - d POST request ' < node > < name > AD - D_1.0 < / name > < node components > < name > cmf_ad_config > < / name > < property > < key > domain_name_distinguished < / key > < value > <! [CDATA [test_rest.com]] > < / value > < / property > < / node-components > < / node > ' https://10.99.130.221:8443/darwin/api/1.0/deployment-profile/182/action/deploy - url https://10.99.130.221:8443 / darwin -k

    But I am getting error as follows:

    localhost: / curl # Rest_Op - i - user admin:ca$ hc0w - d POST request ' < node > < name > AD - D_1.0 < / name > < node components > < name > cmf_ad_config > < / name > < property > < key > domain_name_distinguished < / key > < value > <! [CDATA [test_rest.com]] > < / value > < / property > < / node-components > < / node > ' https://10.99.130.221:8443/darwin/api/1.0/deployment-profile/182/action/deploy - url https://10.99.130.221:8443 / darwin -k

    HTTP/1.0 200 connection established

    Media type not supported HTTP/1.1 415

    Server: Apache-Coyote/1.1

    Set-Cookie: JSESSIONID = 008C1EA0E619382E6E08377C4E122205; Path = / darwin /; Guarantee; HttpOnly

    Content-Type: text/html; charset = utf-8

    Content-Length: 1123

    Date: Monday, April 8, 2013 09:18:02 GMT

    < html > < head > < title > VMware vFabric tc DURATION 2.6.5.RELEASE/7.0.26.A.RELEASE - error report < / title > < style > <!-H1 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 22px ;}} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 16px ;}} H3 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76; do-size: 14px ;}} BODY {do-family: Tahoma, Arial, without serif; color: black; background-color: white ;}} B {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76 ;}} P {do-family: Tahoma, Arial, without serif;: white background; color: black; do-size: 12px ;}} A {color: black ;}} B.SID {color: black ;}} HR {color: # 525 76 ;} - > < / style > < / head > < body > < h1 > State HTTP 415 - < / h1 > < HR size = "1" = "noshade" noshade > < p-type > < b > < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > < p > < b > description < /b > < u > the server refused} This request because the request entity is in a format not supported by the resource for the requested method (). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 > VMware vFabric tc DURATION 2.6.5.RELEASE/7.0.26.A.RELEASE < / h3 > < body / > < / html > HTTP/1.1 302 moved temporarily

    Server: Apache-Coyote/1.1

    Location: https://10.99.130.221:8443 / darwin /

    Transfer-Encoding: segmented

    Date: Monday, April 8, 2013 09:18:02 GMT

    I just wanted to confirm that I'm using the correct way to make a contribution to the POST method?

    I also tried with the entry of the POST command XML file:

    curl - i - user admin:ca$ hc0w - POST - h file request "Content-Type: text/xml"-d-Binary @dep_prop.xml https://10.99.130.221:8443/darwin/api/1.0/deployment-profile/182/action/deploy - url https://10.99.130.221:8443 / darwin -k

    But it is also in error.

    Am I missing something?

    Thanks in advance!

    Replace the profile-properties-response with the properties of the profile. Let me know if it works.

  • POST CURL with vCO 5.1 REST API

    I am trying to invoke a vco workflow by using the 5.1 REST API through curl. I could do GET without any issue; but POST always gives me the 400 bad request error below. I want to use json instead of xml, so I passed in "Content-Type: application/json". I am using windows curl.

    Initially I tried to create a settings file to json with "-d @filename"; It gives the same error.

    If someone could tell what is wrong with my syntax? Thank you.

    curl-i k - vcoadmin:vcoadmin of the user x POST h ' Content-Type: application / json ' https://192.168.1.7:8281 / api/stream/dec0e608 - 8 b 8
    3 4e32-8825-3e77ef31c4d7/presentation/instances - d '{} '.

    HTTP/1.1 400 Bad Request
    Content-Type: text/html; charset = utf-8

    Content-Length: 965
    Date: Tuesday, March 5, 2013 02:31:19 GMT
    Connection: close
    Server: vCO Server

    < html > < head > < title > JBossWeb/2.0.1.GA - error report < / title > < style > <!-H1 {make-f
    amily:Tahoma, Arial, without serif; color: white; background-color: # 525-76; font-size: 22 p
    x ;} H2 {do-family: Tahoma, Arial, without serif; color: white; background-color: # 525 76}
    do-size: 16px ;} H3 {do-family: Tahoma, Arial, without serif; color: white; background}
    -color: # 525 76; do-size: 14px ;} BODY {do-family: Tahoma, Arial, without serif; color:}
    Black; background-color: white ;} B {do-family: Tahoma, Arial, without serif; color: whit}
    e; background-color: # 525 76 ;} P {do-family: Tahoma, Arial, without serif; background: w}
    Hite; color: black; do-size: 12px ;} A {color: black ;}} B.SID {color: black ;}} HR {co
    Lor: # 525 76 ;} --> < / style > < / head > < body > < h1 > State HTTP 400 - < / h1 > < HR size = "1".
    NoShade = "noshade" > < p > < b > enter < /b > < /p > < p > < b > report message < /b > < u > < / u > < / p > <
    p > < b > description < /b > < u > the request sent by the client was syntactically incorr
    (CT). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < /.
    HTML >

    Hi jiang.

    Could you try without the quotes around the parameter d data?

    curl-i k - vcoadmin:vcoadmin of the user x POST h ' Content-Type: application / json ' https://192.168.1.7:8281 / api/stream/dec0e608 - 8 b 8
    3 4e32-8825-3e77ef31c4d7/presentation/instances - d {}

    -Ilian

  • Import a workflow with Orchestrator rest API

    Hello

    I am trying to import a workflow to Orchestrator through the REST API, but it always end upward with a 500 error:

    HTTP/1.1 100 continue
    HTTP/1.1 500 Internal Server Error
    Content-Type: text/html; charset = utf-8
    Transfer-Encoding: segmented
    Date: Thu, February 28, 2013 16:54:57 GMT
    Connection: close
    Server: vCO Server
    I proceed in this way:
    I prepare the file that will be sent:

    -5bf10fbcf09

    Content-Disposition: form-data; name = "listVm"; filename = "listVm.Workflow"

    Content-Type: application/zip

    Binary

    -5bf10fbcf09-

    and then make a POST request to my server of vCO:
    curl - ik u "user: pass" h "Accept: application / xml ' h ' Content-type: multipart / form - data; "limit = - 5bf10fbcf09 ' h ' content-length: 19442 ' https://IP:PORT/api/stream / x POST @listVm.wf d
    Then it'll wait state:
    HTTP/1.1 100 continue
    and about 60 years later it returns me an error 500
    Thanks for your help!

    Here is a code that a workflow is important in a category:

    SessionFactory VcoSessionFactory = new DefaultVcoSessionFactory (new URI ("https://vcohost:8281 / api")) {}
    @Override
    protected SSLContext newSSLContext() throw KeyManagementException, {NoSuchAlgorithmException}
    Return newUnsecureSSLContext();
    }
    @Override
    protected HostnameVerifier {} newHostnameVerifier()
    Return newUnsecureHostnameVerifier();
    }
    };
    This is for basic authentication in the what the vCO is in LDAP mode
    Authentication Authentication = new UsernamePasswordAuthentication ("userName", "password");
    It is to the SSO authentication
    Authentication Authentication = null;
    try {}
    SsoAuthenticator authenticator =
    new SsoAuthenticator (new
    1800 l);
    Authentication =
    authenticator.createSsoAuthentication ("userName",
    "password");
    } catch (IOException e) {}
    throw new RuntimeException ("Cannot authenticate to the OSP", e);
    } catch (URISyntaxException e) {}
    / / There are unlikely to occur
    // }
    Session VcoSession = sessionFactory.newSession (authentication);
    WorkflowService wfService = new WorkflowService (session);
    wfService.importWorkflowInCategory ("categoryId", new file)
    'path_to_some_workflow.workflow'));

    I have this code I use only the customer is provided with vCO:

    https://vcohost:8281/API/docs/downloads.html

    Hope this helps

    Concerning

    Ivan

  • How to set the time to preview using the REST Api of the assembler

    Hi all

    Using the REST API of the assembler, I can't feature "set the time to preview" to trigger a specific model that fires only at a specific time

    This is the format that I'm trying:

    http://xxxx:8006 / assembler/json/pages/home? Endeca_Time = 2020-04 - 05 T 14:30

    I use the correct format? This is the url parameter listed in the documentation of the Assembly

    Thank you

    It turns out that the documentation is wrong

    1. In assembler.properties (service\WEB-INF) of your REST API, you must define

      1. User.State.Ref = previewUserState
    2. You use Endeca_date and not Endeca_Time in the URL (documentation is wrong)
    3. Coding varies from a browser (you may need to URL encode the date in Firefox)

    Example:

    http://xxxx:8006 / assembler/json/pages/home? Endeca_date = 2020-01 - 11 T 18:00

    The date format is: YYYY-MM-dd' you HH: mm

  • C#, UCCX, Rest API, PUT (update a resource) and not taken media Type supported

    Hi, I'm developing an application to update the skills of resources with the REST API.

    I can get all the values I want to (GET), but when I try to update a resource using PUT, and then I get a "415 Unsupported Media Type" webException.

    I discovered that c# / UCCX works with demand. MediaType (instead of request. ContentType).

    I got this error when I tried to GET the data. He now works for the GET.

    But to PUT it, I got the error. Method is defined as SAID, MediaType = "application/xml".

    I tried to empty, ' text/xml '...

    Looked on the internet, Web sites, saying always specify ContentType/MediaType = "application/xml", I have already done.

    I also got the same error if I try an application COULD and without sending data.

    Thanks for your help!

    public string MakeRequest()
    {
    var request = (HttpWebRequest) WebRequest.Create (EndPoint);
    request. Credentials = new System.Net.NetworkCredential (login, password);
    request. Method = Method.ToString ();
    request. ContentLength = 0;
    request. Accept = ContentType;
    request. MediaType = ContentType;
                
    #region so PUT
    If (! string.) IsNullOrEmpty (PostData) & method == HttpVerb.PUT)
    {
    encoding of var = new UTF8Encoding();
    PostData = PostData.Replace ("\n", "");
    var bytes = Encoding.UTF8.GetBytes (PostData);
    request. ContentLength = bytes. Length;
                    
    using (var writeStream = request. GetRequestStream())
    {
    writeStream.Write (bytes, 0, bytes.) (Length);
    }
    }
    #endregion

    Try
    {
    assistance (response var = (HttpWebResponse) request. GetResponse())
    {
    var responseValue = string. Empty;

    If (answer. StatusCode! = HttpStatusCode.OK)
    {
    var message = String.Format ("request failed. Received HTTP {0}", response. StatusCode);
    throw new ApplicationException (message);
    }

    Enter the answer
    using (var responseStream = response. GetResponseStream())
    {
    If (responseStream! = null)
    using (var = new StreamReader (responseStream) Player)
    {
    responseValue = reader. ReadToEnd();
    }
    }

    Return responseValue;
    }
    }
    catch (WebException wex)
    {
    error string = wex. Message;
    Return ' ';
    }

    OK you got, in this case, post your request in the Sub forum as well which is sought after by developers and you can you expect a concrete answer/explanation on the same

    https://communities.Cisco.com/community/Developer/Express-configuration-API

    Concerning

    Deepak

  • CPO 3.0 call a REST API

    I try to call a remote REST API that returns a JSON object.

    The call browser API looks like this

    http://IPAM-dev/phpipam/API/?app_id=API&controller=sections&action=read&ID=6

    Returns

    {'success': true, 'data': {'id': '6', 'name': "Telford subnets", 'description': '',' masterSection': '0', 'permissions': "{\"4\":\"1\ ""} strictMode ',' ': '1', 'subnetOrdering': null, 'order': null, "editDate": null, "showVLAN": '0', 'showVRF': '0' "}}

    When I try to use the OPC Web HTTP Request activity it fails with the following error

    Unable to send a content-body with this type of verb.

    I think the problem here is the content type. The default is application/xml; charset = utf - 8 in the activity, I tried to change this text, html and json, but still did not work. I can't let the emty content type in the activity.

    Anyone have any suggestion how to make a REST of CPO call using the activity Web HTTP request

    Try to change GET to POST (in the form of CALL-CPO_REST - RQ.png).  Sends the contents of the body generally requires a POST not a GET.

Maybe you are looking for

  • 'downloads' folder missing from the dock.

    I have accidentally deleted my folder "downloads" of my dock. How do I restore it? I'm on a retina MacBook Pro 13 inch, mid-2014. OS X Yosemite 10.10.5 I tried to drag the original on the quay "Downloads" folder, as I do with the applications. It wil

  • Could not detect my IX2 of PC

    My IX2 is connected to my router. I can detect and connect to all computers, laptops and mobile devices on the network accept to a certain PC. The problematic PC is the only one connected directly (by cable) to the router, all the rest are via Wi - F

  • Two PC on the lan connection problem

    I wanted to connect two PCs using lan via the TCP protocol. I run a simple customer data and simple data on my PC server. But when I opened the single database server on my PC and the client of simple data on the other PC then error 63 I think it's e

  • Windows Vista SP2 Package Service

    Failed to install reason 80010108 on 22/09/09. Not previously had the same error. How will I know if SP 1 is installed on the computer?

  • Please help have installed some updates and now the laptop won't restart

    Please help I have installed the updates windows asked what I do, restasrted my laptopp and now it won, t start up. It's show on a black screen! 0xc01a001d! 29371/56275(\Registry\machine\Schema\wcm://Microsoft...) I turned off I tried to leave again