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!

Tags: Fusion Middleware

Similar Questions

  • Mapping and querying objects for Contact with REST Api

    Hi all

    We are hoping to get some details on the DataCard management defined via REST API. Our implementation goal is to create Contacts and add the custom for each Contact object or to be more precise, add a set of map data for each Contact.

    At the present time, to associate a map Data Set (or custom object) to an existing contact, we provide a suite of fields in the custom when creating custom object object:

    new CustomObjectField  
    {
                                                                    name = "MappedEntityType",
                                                                    dataType = Enum.GetName(typeof(DataType), DataType.numeric),
                                                                    type = "CustomObjectField",
                                                                    defaultValue = "0"
                                                                },
                                                             new CustomObjectField
                                                                {
                                                                    name = "MappedEntityID",
                                                                    dataType = Enum.GetName(typeof(DataType), DataType.numeric),
                                                                    type = "CustomObjectField",
                                                                    defaultValue = "<ContactId>"
                                                                }
    
    

    This is the right approach? This is based on the information provided here: http://topliners.eloqua.com/community/code_it/blog/2012/05/31/eloqua-api-how-to-mapping-a-data-card-to-an-entity.

    The REST API would query the CustomObjects using the MappedEntityId value for the subsequent updates? If so, pointers on how to approach that?

    Thanks to ad.

    The REST API does not support this.  With the upcoming release of Eloqua, you will be able to update the MappedEntityID, as a query it.

  • Run a workflow with REST APIs

    Hi all

    I'm not able to run the workflow with the REST api.

    POST https:// < < HOST > >: < < PORT > > / api/workflows/94dd5f20-c190-4023-a0a7-1589c46f3792/executions/

    Here is the answer. VCO is not all workflow runs so I assumed nothing was performed. I can run to the https://wxpcpvcd006a:8281 / api/stream/f29ebe52-27b2-42d1-84f1-6ecfb939326c to get all the info on the workflow. Any help appreciated.

    {

    'relations': {}

    "total": 0.

    "link":]

    {

                    "href": " https://wxpcpvcd006a:8281 / vco/api/stream/94dd5f20-c190-4023-a0a7-1589c46f3792 / ",

    'rel': 'up '.

    },

    {

                    "href": " https://wxpcpvcd006a:8281 / vco/api/stream/94dd5f20-c190-4023-a0a7-1589c46f3792/executions/ ",

    'rel': 'Add '.

    }

    ]

    }

    }

    Simply enter the braces of opening and closing as your json content:

    {}
    
  • info point endpoint gettting with REST API vRA7

    Retrieving information of endpoint using vRealize Automation REST API (2145780). VMware KB

    Is this KB including vRA7?

    These are always created in IaaS in vRA 7.0, so are not accessible through the public API.

  • Use JSON with REST API vCO 5.1

    I'm developing a simple REST client to run a workflow in vCO.  I am using perl and the module REST::Client, which is pretty simple.  I can retrieve the items in the inventory and definition for my target workflow, but when I try to POST a run, I get an error report by stating:

    The request sent by the client is syntactically incorrect.

    I use JSON (as is the default output of the vCO if no Content-Type is specified, and my personal preference), and the JSON format documentation is pretty sparse compared to the XML documentation.  The documents describe the context of execution as follows:

    { "parameters" : [ { "name" : "...", "type" : "...", "description" : "...", "scope" : "local", "value" : { } }, ... ] }

    My workflow accepts two string for the input parameters and returns a string as output parameter.  I read that the scope and description fields are optional, and I am omitting the two.  Clearly, however, Miss something needed on the structure of the execution context.  Can anyone help to shed light on this?

    Complete debugging:

    Accept: application/json
    Accept-Encoding: gzip, x-gzip, deflate, bzip2-x
    Authorization: *.
    User-Agent: REST::Client/249
    Content-Length: 137
    Content-Type: application/json
    {"parameters":[{"value":"10.0.0.0/24","name":"network","type":"string"},{"value":"test-hostname.dom","name":"hostname","type":"string"}]}

    HTTP/1.1 400 Bad Request
    Connection: close
    Date: Wednesday, December 5, 2012 19:01:11 GMT
    Server: vCO Server
    Content-Length: 965
    Content-Type: text/html; charset = utf-8
    Client-Date: Wednesday, December 5, 2012 19:06:21 GMT
    Client-Peer: *: 8281
    Customer-response-Num: 1
    Client-SSL-Cert-Issuer: /C=US/O=VMware/OU=VMware/CN=localhost.localdom
    Client-SSL-Cert-subject: /C=US/O=VMware/OU=VMware/CN=localhost.localdom
    Client-SSL-Cipher: DHE-RSA-AES256-SHA
    Client SSL-Socket-class: IO::Socket
    Client alert-SSL: certificate of the peer unaudited
    Title: JBossWeb/2.0.1.GA - error report


    < html > < head > < title > JBossWeb/2.0.1.GA - 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 400 - < / 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 request sent by} the client was syntactically incorrect (). < /u > < /p > < HR size = "1" noshade "noshade" = > < h3 JBossWeb/2.0.1.GA > < / h3 > < body / > < / html >

    There was a problem with the value of the format JSON deserialization, it is fixed and will be available in version 5.1 of U1.

  • 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);

  • 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.

  • Get complete information of Contact with the REST API with Ruby

    Hello

    I'm trying to find information from a contact using the REST API from Ruby. I followed the example posted here and I was able to get good contact with Eloqua, but information are the basis and the FieldValues table is very long with fieldValues can only be and no label field.

    I don't know I asked for complete = depth, and I verified that the contact even on the side of Eloqua seen so many other areas.

    It's the URL that I use: https://secure.eloqua.com/API/REST/1.0/data/contacts?search= < emailAddress > & depth = full & count = 1

    and I don't get like this field in the fieldValues can only be: {'type': 'FieldValue', 'id': "100175"}

    With respect to the main information, they are basic.

    Is it possible to obtain all the contact fields, the same than the one I see on the site of Eloqua?

    Thank you

    Hi Theyaa,

    You can use the following endpoint to retrieve a list of all fields with their unique identifier and metadata:

    • GET /API/REST/1.0/assets/contact/fields?depth=complete&search=*&page=1&count=250

    Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • 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

  • QUESTION: Can't create a firewall rule to (edge) with the REST API

    Dear Sir

    I am trying to create a firewall rule for simple and basic edge using the REST API.

    I use the REST API guide as a reference on page 158.


    edge-fw-rule.png

    I use the following code (single) in my client REST API (with good content Type (application/xml)):

    < rule >

    < ruleTag > < / ruleTag >

    < name > edge5-rest-rule < / name >

    all < source > < / source >

    < destination > all < / destination >

    < application > all < / application >

    < matchTranslated > true < / matchTranslated >

    < management > in < / direction >

    < action > deny < / action >

    < enabled > false < / enabled >

    < loggingEnabled > true < / loggingEnabled >

    rest-api-rule of the < description > < / description >

    < / rule >

    The error message that I receive is the following:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < error >

    request details invalid <>. Found no match for item rule. < / details >

    < > 223 errorCode < / errorCode >

    < / error >

    The full screenshot of my action REST API is in the screenshot below:

    full-request.png

    Anyone know what I'm doing wrong here?

    Thank you!

    Try this as the body...

    rest-rule

    user

    true

    in

    deny

    fake

    true

    rest-api-rule

  • Connection to vCloud Director 5.1 with the REST api plugin

    vco3.PNGI can't get this to work.

    I'm following part of the manual, I found here: http://blogs.vmware.com/orchestrator/2011/07/vcloud-director-twitter-yahoo-and-foursquarecom-http-rest-plug-in-use-case-examples.html

    So I install the plugin and run the workflow to add a host:

    vco1.PNG

    And set the authentication with the workflow "Set vCloud to authenticate a host REMAINS:

    vco2.PNG

    And run the supplied workflow "show a vCloud, Director of the Organization:

    vco3.PNG

    And get the error: "no valid API version can be selected.

    I also tried with version 1.0 and 1.5 of putting in the URL, but cannot make it work. What Miss me?

    Thank you.

    Hello

    It is a problem with you REST plugin does not support the vCloud 5.1 authentication correctly.

    I created the following work around to fill the gap until a new version of the plugin REST solves this problem.

    Please find here.

    Christophe.

  • REST API: How to create e-mail/landing page with static/dynamic content?

    With the REST API, it seems that you can create/update the contents of an e-mail or a landing page by specifying html with the type "RawHtmlContent". How it works when this e-mail or a landing page includes a shared or dynamic content? What is the recommended method to create or update an e-mail/landing page and add a new shared or dynamic, content or update the "reference"?

    Unfortunately this is not currently supported by our API.  However, we are building a new point extension called content Cloud that can solve your use case.

  • Can not do a query with the REST api

    Hello

    After discovering that the use of the standard SOAP API what is like poking yourself in the eye with a sharp stick, I try to use the REST API. At first, I tried to exercise it through the extension of POSTMAN on Chrome. But I have no joy.

    Can I use caller ID to get the URL, so I know that my authentication is OK. But all other calls give me:

    Failure of 403 XSRF Protection


    Is an example of a call, that I'm trying:

    https://secure.Eloqua.com/API/rest/1.0/data/[email protected] & Count = 1

    I can't find any reference anywhere to this error 403.

    Help!

    Thank you

    Simon

    Hi Simon,.

    Looks like you're client (web browser) might have stored credentials for Eloqua, probably in the cookies collection. If you try to delete your cookies and rerun the query API with basic authentication, it should work.

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • 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

  • Create the edge with the NSX REST API

    Hello

    I am trying to create a new benefit using the REST API, but I get the following error over and over again: the server has refused the request because the request entity is in a format not supported by the resource for the requested method.

    I use using a xml model provided by the nsx_61_api.pdf and all the "ids" settings are ok. Can anyone tell my what of wrong in my XML?

    I'm able to get a list of the existing edges using GET on https:// < nsxmgr-ip > /api/4.0/edges/

    In this case, I use the same URL, but with the post OFFICE instead. In the body, I put the following XML code.

    < edge >
    <datacenterMoid>datacenter-2</datacenterMoid>
        < name > MyName-Edge-01 < / name >
        < holding > Default < / holding >
    <vseLogLevelemergency</vseLogLevel> >
    <devices>
    <applianceSize>compact</applianceSize>
            < appliance >
    <resourcePoolId>resgroup-5050</resourcePoolId>
    <datastoreId>datastore-104</datastoreId>
            < / appliance >
        < / appliances >

        < vnics >
            < vnic >
                < index > 0 < / index >
                < name > uplink01 < / name >
                < type > uplink < / type >
    <portgroupId>virtualwire-10</portgroupId>
    <addressGroups>
                    < addressGroup >
    <primaryAddress>10.0.0.1</primaryAddress>
    <secondaryAddresses>
                            < ipAddress > 10.0.0.2 < / ipAddress >
                            < ipAddress > 10.0.0.3 < / ipAddress >
    <>of theipAddress10.0.0.4</> of theipAddress
    </secondaryAddresses>
    <subnetPrefixLength>29</subnetPrefixLength>
                    < / addressGroup >
                < / addressGroups >
                < MTU > 1600 < / MTU >
    <enableProxyArp>false</enableProxyArp>
    <enableSendRedirects>true</enableSendRedirects>
    <isConnected>true</isConnected>
    <inShapingPolicy>
    <averageBandwidth>20000000</averageBandwidth>
    <peakBandwidth>20000000</peakBandwidth>
    <burstSize>0</burstSize>
                    < enabled > true < / enabled >
                    < inherited > false < / inherited >
    </inShapingPolicy>
    <outShapingPolicy>
    <averageBandwidth>20000000</averageBandwidth>
    <peakBandwidth>20000000</peakBandwidth>
                    < burstSize > 0 < / burstSize >
                    < enabled > true < / enabled >
                    < inherited > false < / inherited >
    </outShapingPolicy>
            < / vnic >
        < / vnics >
    <cliSettings>
    <>theusernameadmin</> user name
    <password># 123456 PasssworD</> password
    <remoteAccess>true</remoteAccess>
        < / cliSettings >
    < / edge >


    Thank you very much

    D.

    Finally, I discovered.

    You must add the header without papers:

    XML:application / xml

    Don't ask me why this non-standard header is not documented.

    D.

Maybe you are looking for