Calling REST API security token error simple GET method

Please help me get past this error. I have yet to get a successful REST API request of Eloqua. API is enabled for our sandbox that I managed by instantiating different SOAP request/response.

This is my test RequestURI

https://secure.Eloqua.com/API/rest/2.0/data/contact/3

With the method 'GET' headers appropriate and what I have collected of their API guides, including the very useful

Eloqua REST API - authentication

Eloqua REST API - URL parameters

Eloqua REST API - HTTP request headers

RequestURI works when typed manually into a authenticated (connected to the Eloqua Sandbox session) tab of the FireFox browser.

When I try the request in my tools (middleware Tibco integration, acting as a client HTTP request), I always get the answer:

A security token that is associated with your session became invalid.

I saw this topic, but this was not useful in my case.

http://topliners.Eloqua.com/message/20371#20371

The behavior in my case is pretty consistent, and seems not to care if I even spoil RequestURI making it invalid. The same error persists.

Help, please! Thank you

Heath

A more complete answer follows:

< RequestActivityOutput >

< header > HTTP/1.1 200 OK

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

Content-Length: 2355

Date: Friday, April 19, 2013 19:43:19 GMT

cache-control: private

connection: close

P3P: CP = "IDC DSP COR DEVa TAIa OUR PHY ONL UNI COM NAV CNT STA BUS."

< / header >

< statusLine >

< httpVersion > HTTP/1.1 < / httpVersion >

< statusCode 200 > < / statusCode >

< reasonPhrase > OK < / reasonPhrase >

< / statusLine >

....

A security token that is associated with your session became invalid.

This can happen if you open multiple instances of Eloqua, in

different browser Windows or tabs, then the diary of one of

These instances.  Please either close this window or tab, or

& lt; a href = "" / FormsLogin.aspx "target ="_top"> click here to connect to new & lt;" /a >. & lt; br >

Heath,

I'm not able to simply navigate to this URL in my browser either, even though I am connected to my sandbox (which has access to the API). I don't know how you manage to get there in Firefox.

That being said, I can hit this page of the REST API very well when I base64 encode my credentials HTTP as described here:

Eloqua REST API - authentication

May be useful to take a look at the auth string you use when calling from rest.

Jim

Tags: Marketers

Similar Questions

  • Trying to do a simple REST, the security token error installation

    I'm trying to put in place a series of calls to API using c# .net. I have combed through the documents of installation, download the sample code from Github and contacted the support of Eloqua, but I can't seem to shake this same error:

    Eloqua security

    A security token that is associated with your session became invalid.

    This can happen if you open multiple instances of Eloqua, in different browser windows or tabs and then log out of one of these bodies. Please either close this window or tab or click here to log in again.

    I checked with Eloqua to make sure that my user name is configured to perform API calls. Now, I'm just trying to make an API call. Finally, I would like to add contacts, send emails and possibly to other activities through the API fires from a web application. I don't know if it's important, but I noticed that all of the code is a client application, not a web application. Is it possible to make API calls in code-behind to a .aspx page?

    The debug error I get is:

    System.Xml.XmlException: ' > ' is an unexpected token. The expected token ' "' or"'. " Line 3, position 62.

    This error occurs because the answer is the above HTML error message.

    Here's the code I'm running. It fires on a Page_Load handler on a .aspx page that compiles:

    var client = new Eloqua.Api.Rest.ClientLibrary. Customer (Instance, UserId, UserPass, 'https://secure.eloqua.com/API/1.0/');

    int emailId = 1;

    Eloqua.Api.Rest.ClientLibrary.Models.Assets.Emails. email email = customer. Assets.Email.Get (emailId);

    Response.Write (e-mail. (ToString());

    From: EloquaClient/Client.cs:

    public Customer (string site, user string , string password, string baseUrl)

    {

    BaseClient = new BaseClient(site, user, password, baseUrl);

    }

    From: EloquaClient/BaseClient.cs:

    public BaseClient (string site, user string , string password, string baseUrl)

    {

    Client = new RestClient

    {

    BaseUrl = baseUrl,

    Authenticator = new HttpBasicAuthenticator(site + '-' + user, password)

    };

    Client.AddHandler ("text/plain", new JsonDeserializer());

    }

    public T get < T > (int id, depth depth = depthletter) where T: RestObject, new)

    {

    var point = new {id = id} T;

    var request = Request. Get (request. ) Type of. Get, item);

    return Run < T > (request);

    }

    From: EloquaClient/Request.cs:

    internal public static RestRequest Get (Type , type, RestObject restObj)

    {

    restObj.type = restObj.Type;

    var request = new RestRequest

    {

    RequestFormat DataFormat=. JSON

    };

    switch (type)

    {

    case The type. Download:

    request. Method = method. GET;

    request. Resources = restObj.Uri + ' / ' + restObj.id;

    Break;

    case The type. Put:

    request. Method = method. PUT;

    request. Resources = restObj.Uri + ' / ' + restObj.id;

    request. AddBody (restObj);

    Break;

    case The type. Publish:

    request. Method = method. POST;

    request. Resources = restObj.Uri;

    request. AddBody (restObj);

    Break;

    case The type. Delete:

    request. Method = method. DELETE;

    request. Resources = restObj.Uri + ' / ' + restObj.id;

    Break;

    case The type. Search:

    request. Method = method. GET;

    var resource = new StringBuilder(100);

    resources. Append (restObj.Uri);

    if (restObj.id! = null & & restObj.id > 0)

    {

    resources. Append ("/" + restObj.id);

    } else

    {

    resources. Append ("s"); / / pluralize endpoint

    }

    var searchObj is restObj as ISearchable;.

    resources. Append ('? ') Search =" + searchObj.searchTerm +.

    "& count =" + searchObj.pageSize +.

    '& page =' + searchObj.page +.

    "& depth =" + restObj.depth

    );

    request. Resources = resource. ToString();

    Break;

    default:

    throw new NotSupportedException (type. (ToString());

    }

    return request;

    }

    From: EloquaClient/BaseClient.cs:

    internal T run < T > (applicationIRestRequest ) where T: ( new)

    {

    Answer IRestResponse< T > = Client.Execute < T > (request);

    if (answer. ResponseStatus! ResponseStatus=. Completed)

    {

    This is where it is throwing this error:

    ' > ' is an unexpected token. The expected token ' "' or"'. " Line 3, position 62.

    response to throw . ErrorException;

    }

    response to return . Data;

    }


    No idea where the code is a failure and how can I get this (supposedly) simple API call to return a value instead of a security token error?


    Thanks in advance.

    Nick

    Hi Fred,.

    I have cleared my cookies and unfortunately it does not solve the problem. Frank Shih to Eloqua stressed that endpoint was wrong ('REST1.0 ' rather than 'secure.eloqua.com/API/1.0' secure.eloqua.com/API/). I fixed who and receive is no longer the security token error. Now, I get a new error, but I'll make another post for that to keep things organized.

    Thank you.

    Nick

  • Add vNIC PortGroup scope with the REST API security group

    I created a security group within the reach of a PortGroup via the REST API. Now, I'm trying to add a vNIC, also via the REST API.

    To help illustrate, I have a JMTest1 VM with 1 vNIC connected to the PortGroup which is the scope of the security group. When I change this group the first item in the list that could be added to the security group is the first (and only) JMTest1 vNIC.

    AddvNICToSecurityGroup.PNG

    To add it via the REST API, I need to provide the following:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/ < member-moref >

    for example I need to understand what the < member-moref > for the vNIC to JMTest1 and this is what I have a problem with.

    If I add the vNIC through the user interface and then interrogate the security group it gives me below the answer:

    < securitygroup >

    < objectIdobjectId > securitygroup-xx < / objectId >

    < type >

    < typeName > SecurityGroup < / typeName >

    < / type >

    < name > JMTest7 < / name >

    < description / >

    < revision > 9 < / revision >

    < objectTypeName > SecurityGroup < / objectTypeName >

    < scope >

    < id > dvportgroup-xxxxx / < ID >

    < objectTypeName > DistributedVirtualPortgroup < / objectTypeName >

    < name > dv-xxxxx < / name >

    < / scope >

    < extendedAttributes / >

    < inheritanceAllowed > false < / inheritanceAllowed >

    < member >

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    < type >

    Vnic < typeName > < / typeName >

    < / type >

    < name > JMTest1 - NIC 1 < / name >

    < revision > 6 < / revision >

    < objectTypeName > Vnic < / objectTypeName >

    < scope >

    < id > vm-xxxxx / < ID >

    < objectTypeName > VirtualMachine < / objectTypeName >

    < name > JMTest1 < / name >

    < / scope >

    < extendedAttributes / >

    < / member >

    < / securitygroup >

    It seems that the < member-moref > for the JMTest1 vNIC is < objectId > 500758f6-b97b - a 7, 79 - 0c 04 - 996f53edf3f0.000 < / objectId >

    If I run now:

    https://192.168.x.x/API/2.0/services/SecurityGroup/SecurityGroup-XX/members/500758f6-b97b-7a79-0c04-996f53edf3f0.000

    then the vNIC is successfully added to the security group. (yay!) So I am now left with the task of how to get

    500758f6-b97b - 7A 79 - 0c < objectId > 04 - 996f53edf3f0.000 < / objectId >

    of a vNIC?

    I have looked at the object in the Mob vCenter and via PowerCLI, but cannot see how to derive from it.

    Anyone know the answer to that?

    The uuid vnic is created by concatenating the vm instanceUuid + '. ' + the last three digits of the vnic device key.  (The vnic is located in the area of the config.hardware.device of the virtual machine and the key will be to shape 4xxx, where xxx represents the 3 numbers you need).

  • REST API transport layer error

    Hello. I'm having a bad time in train to deploy openstack. When I click on finish and it starts to deploy, the following message appears: "Deploy Openstack Instance failed. "Internal error: error of transport REST API layer.

    restapierror.png

    The oms.log, despite the mistakes of java, looking at this part caught my attention:

    [2015-07 - 02T 16: 40:35.531 - 0000] Tomcat http ERROR - 32 | com.vmware.openstack.rest.RestResource: com.fasterxml.jackson.core.JsonParseException: Illegal side character (CTRL-CHAR, code 10)): must be escaped using the backslash to be included in the string value to [Source: java.io.FileInputStream@b4b6451, line: 146, column: 31]

    Did anyone had trouble like this?

    Hello everyone, thanks for all of you who have tried to help.

    I tried to mix the two real esxi hosts mixed with esxi embedded to meet the needs of the guests... and maybe I could have configured something wrong in the network.

    Then I saw a post where affinity rules could be changed by editing the file /opt/vmware/vio/etc/omjs.properties change false to true oms.disable_hosts_anti_affinity.

    In doing so I could use only two real esxi hosts, using one in each of the two groups that are needed.

    Thanks again, Marcelo.

  • Using c# to access the REST API - 404 not found

    Hi all!

    Since there is currently no available c# example to access the REST API, I'm going at this from scratch using the Nuget - Microsoft.AspNet.WebApi.Client package.

    I was able to successfully implement a framework for code that is able to make a call to the base_uris method and successfully receive a response.

    I'm doing a transientDocuments call, but I still get a 404 not found error.  I'm hoping somewhere here may be able to enlighten.  I tried to use the current examples of Java to call REST API to get help on how to go about things.

    I create an instance of the AdobeDCREST class, and pass the BaseUrl (https://api.echosign.com/api/rest/v5/) and my key to integration.  When I make a call to the PostTransientDocuments method I pass into the path of the pdf file that I am trying to download.  PostTransientDocuments then deals with the creation of an object the HttpContent (StreamContent) of the file, and then adding the headers, ContentType and ContentDisposition.  The call to GetClient() will determine whether base_uris should be called still or not (I make the call to base_uris and storage of the api_access_point in a variable static for all other calls, as well as the java examples) and returns an object of the HttpClient with the access in the header already token.  The call to base_uris works and returns a https://api.na1.echosign.com/ api_access_point

    I then add/api/rest/v5 to the url access_point to call transientDocuments. Failure occurs during the call to PostAsync in transientDocuments with a 404 not found error.

    Here's the code I'm using to test things so far.  Any help would be greatly appreciated.  I've been spinning my wheels on that for too long already.

    using System;

    using System.Collections.Generic;

    using System.IO;

    using System.Linq;

    using System.Net.Http;

    using System.Net.Http.Headers;

    using System.Text;

    using System.Threading.Tasks;

    namespace Ivezt.Documents {}

    public class AdobeDCREST {}

    < Summary >

    A static variable that is defined by an initial call to GetBaseURIs() and used for all API calls later.

    < / Summary >

    Private Shared ReadOnly Property SERVICES_BASE_URL as string = string. Empty;

    < Summary >

    The end point of API to use.  This aspect will have to be changed if Adobe is moving to a new version of the API and we update this

    the code to use this new version.

    < / Summary >

    Private Shared ReadOnly Property API_URL as string = "api/rest/v5 /";

    < Summary >

    This BaseUrl is passed to the constructor and used to make a call to GetBaseURIs().

    < / Summary >

    private string m_strBaseUrl = string. Empty;

    < Summary >

    The IntegrationKey is passed to the constructor and must be added to the header of each API request.

    < / Summary >

    private string m_strIntegrationKey = string. Empty;

    public AdobeDCREST (string strBaseUrl, string strIntegrationKey) {}

    m_strBaseUrl = strBaseUrl;

    m_strIntegrationKey = strIntegrationKey;

    }

    private HttpClient GetDefaultClient() {}

    HttpClient client = new HttpClient();

    Add an Accept header for JSON format.

    customer. () DefaultRequestHeaders.Accept.Add

    (new MediaTypeWithQualityHeaderValue("application/json"));

    Add the access token

    customer. DefaultRequestHeaders.Add ("Access token", m_strIntegrationKey);

    customer feedback;

    }

    private HttpClient GetClient() {}

    If we have not yet the SERVICES_BASE_URL, then we must do a GetBaseURIs call

    If (SERVICES_BASE_URL. Length == 0) {}

    HttpClient baseClient = GetDefaultClient();

    Use the BaseUrl passed to the constructor

    baseClient.BaseAddress = new Uri (m_strBaseUrl);

    URI BaseURIs_Response = GetBaseURIs (baseClient);

    SERVICES_BASE_URL = string. Format ("{0} {1}", uris.api_access_point, API_URL);

    baseClient.Dispose ();

    }

    If (SERVICES_BASE_URL. Length == 0)

    throw new Exception ("failed to retrieve Adobe Document cloud Base URI");

    HttpClient client = GetDefaultClient();

    customer. BaseAddress = new Uri (SERVICES_BASE_URL).

    customer feedback;

    }

    public BaseURIs_Response GetBaseURIs(HttpClient client) {}

    Call base_uris

    HttpResponseMessage response = client. GetAsync ("base_uris"). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (BaseURIs_Response). Content.ReadAsAsync (typeof (BaseURIs_Response)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    public TransientDocument_Response PostTransientDocuments (string strFilePath) {}

    Call transientDocuments

    Content the HttpContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));

    content. Headers.ContentType = new MediaTypeHeaderValue("application/pdf");

    content. Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}

    Name = "file."

    FileName = 'Template.pdf.

    };

    HttpClient client = GetClient();

    HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    }

    public class BaseURIs_Response {}

    public string web_access_point {get; set ;}}

    public string api_access_point {get; set ;}}

    }

    public class TransientDocument_Response {}

    public string transientDocumentId {get; set ;}}

    }

    }

    I think I found my problem.  I was not a multi-part post form data.  Once I changed this, everything worked as expected.  Here is an updated version of the PostTransientDocuments() method that works:

    public TransientDocument_Response PostTransientDocuments (string strFilePath) {}

    Call transientDocuments

    using (var = {GetClient() customer)}

    using (var content = new MultipartFormDataContent()) {}

    var multiplesContent = new StreamContent (new FileStream (strFilePath, FileMode.Open, FileAccess.Read));

    fileContent.Headers.ContentType = new MediaTypeHeaderValue("application/pdf");

    fileContent.Headers.ContentDisposition = new ContentDispositionHeaderValue("form-data") {}

    Name = "file."

    FileName = 'Template.pdf.

    };

    content. Add (FileContent);

    HttpResponseMessage response = client. PostAsync ("transientDocuments", content). Result;  Call blocking!

    If (answer. IsSuccessStatusCode) {}

    Analyze the response body. Blocking!

    answer back (TransientDocument_Response). Content.ReadAsAsync (typeof (TransientDocument_Respons e)). Result;

    }

    else {}

    throw new Exception (string. Format ("{0} ({1})", (int) response. ") StatusCode, response. ReasonPhrase));

    }

    }

    }

    }

  • 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

  • Get the 500 error trying to create a table using the REST API

    Hello

    I tried to create a table using the REST API for Business Intelligence Cloud, but I got 500 Internal Server Error for a while now.

    Here are the details that I use to create a table.

    Capture.JPG

    and the json to create the schema that I use is

    [{'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ["ROWID"]}]

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['RELATIONID']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['ID']}

    , {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['RESPONDEDDATE']},

    {'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [255], 'columnName': ['RESPONSE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_CREATEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_CREATEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_LASTMODIFIEDDATE']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [18], 'columnName': ['SYS_LASTMODIFIEDBYID']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['TIMESTAMP'], 'precision': [0], 'length': [0], 'columnName': ['SYS_SYSTEMMODSTAMP']},

    {'Nullable': [false], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [10], 'columnName': ['SYS_ISDELETED']},

    [{'Nullable': [true], 'defaultValue': 'dataType' [null],: ['VARCHAR'], 'precision': [0], 'length': [50], 'columnName': ['TYPE']}]

    I tried this using postman and code, but I always get the following response error:

    Error 500 - Internal server error

    Of RFC 2068 Hypertext Transfer Protocol - HTTP/1.1:

    10.5.1 500 internal Server Error

    The server encountered an unexpected condition which prevented him from meeting the demand.

    I am able to 'get' existing table schemas, delete the tables, but I'm not able to make put them and post operations. Can someone help me to identify the problem, if there is no fault in my approach.

    Thank you

    Romaric

    I managed to create a table successfully using the API - the only thing I see in your JSON which is different from mine is that you have square brackets around your values JSON where I have not. Here is my CURL request and extract my JSON file (named createtable.txt in the same directory as my CURL executable):

    curl u [email protected]: password UPDATED h x ' X-ID-TENANT-NAME: tenantname ' h ' Content-Type: application/json '-binary data @createtable.txt https://businessintell-tenantname.analytics.us2.oraclecloud.com/dataload/v1/tables/TABLE_TO_CREATE k

    [

    {

    'columnName': 'ID',

    'dataType': 'DECIMAL ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': false

    },

    {

    'columnName': 'NAME',

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'STATUS."

    'dataType': 'VARCHAR ',.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    "columnName': 'CREATED_DATE."

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    },

    {

    'columnName': 'UPDATED_DATE ',.

    'dataType': 'TIMESTAMP '.

    'Length': 20,.

    "accuracy": 0.

    'Nullable': true

    }

    ]

  • REST api call for the properties of the object in the html bridge provides resource not found (404) error.

    Hello

    I added a bridge Html summary view to our existing plugin (which is in Flex). The html page is displayed in the Summary tab with static data like images and titles. But the .gestJSON of the REST api call fails with the error ' could not load resources: the server responded with a 404 (Not Found) status.

    I followed the bridge Html sample chassisB (chassis - summary.js and html) to create the new page.

    Web.XML of the user interface of the plugin is configured to map/rest / *. bean dataAccessController is defined in the bundle context.

    Java package has the DataAccessController same class as the DataAccessController chassisB class

    This is the URL that I see in the javascript debugger and call API is a failure for this url.  There is no error in the virgo.log.

    https:// /vsphere-client/webui_ui_ns/rest/data/properties/323de5b9-4D2E-4dd7-ae32-98277dd44e90%252Fmf8k-h38?properties=name,model,version < vcenter ip >

    webui_ui_ns-client/vSphere is the value of Web-ContextPath in the plugin MANIFESTO. MF

    I spent a lot of time to understand the issue, but no luck. What I'm doing wrong here? Any help is appreciated.

    version of vCenter server appliance 6.0.0

    SDK - vSphere SDK Web 5.5.0

    1.7.0_79 64-bit JDK

    Thank you

    Deepa

    It was a configuration problem. I missed the tag in the bundle context of spring.

    After you add the 2 lines, it worked.

    Thanks for your time.

  • How to generate the message body to call the API REST Eloqua?

    I can GET my contact details via the URL: https://secure.eloqua.com/Api/rest/2.0/data/contact/229?xsrfToken=80267e50-30db-4e16-9dd3-7d42ef75dc2d as below:

    GET the answer:

    {

    'type': 'Contact,'

    'currentStatus': 'Action pending ',.

    "id": "229."

    'converted': '1439800672 ',.

    "depth':"full. "

    « nom » : » [email protected] ",

    "updatedAt": "1440662349",

    "accountName": "Oracle."

    "address1": "333333333",

    'city': 'unknown ',.

    "country':"KR. "

    ' 'emailAddress': ' [email protected] ",

    "emailFormatPreference": "not specified."

    "fieldValues can only be:

    [

    {

    'type': 'FieldValue ',.
    'id': '100005.

    },

    {

    'type': 'FieldValue ',.
    'id': '100017.

    },

    {

    'type': 'FieldValue ',.
    'id': '100023.

    },

    {

    'type': 'FieldValue ',.
    'id': '100024.

    },

    {

    'type': 'FieldValue ',.
    'id': "100032,"
    'value': 'CZZOC000000000229 '.

    },

    {

    'type': 'FieldValue ',.
    'id': '100033.

    },

    {

    'type': 'FieldValue ',.
    'id': '100034.

    },

    {

    'type': 'FieldValue ',.
    'id': '100035.

    },

    {

    'type': 'FieldValue ',.
    'id': '100036 ".

    },

    {

    'type': 'FieldValue ',.
    'id': '100041.

    },

    {

    'type': 'FieldValue ',.
    'id': '100043.

    },

    {

    'type': 'FieldValue ',.
    'id': '100044.

    },

    {

    'type': 'FieldValue ',.
    'id': '100045.

    },

    {

    'type': 'FieldValue ',.
    'id': '100046.

    },

    {

    'type': 'FieldValue ',.
    'id': '100047'

    },

    {

    'type': 'FieldValue ',.
    'id': '100048.

    },

    {

    'type': 'FieldValue ',.
    'id': '100049.

    },

    {

    'type': 'FieldValue ',.
    'id': '100051.

    },

    {

    'type': 'FieldValue ',.
    'id': '100065.

    },

    {

    'type': 'FieldValue ',.
    'id': '100066.

    },

    {

    'type': 'FieldValue ',.
    'id': '100068.

    },

    {

    'type': 'FieldValue ',.
    "id': '100069."
    'value': 'in Europe.

    },

    {

    'type': 'FieldValue ',.
    'id': '100072.

    },

    {

    'type': 'FieldValue ',.
    'id': '100081.

    },

    {

    'type': 'FieldValue ',.
    "id': '100171."
    "value": "oracle.com.

    },

    {

    'type': 'FieldValue ',.
    "id': '100172."
    "value': 'Ken Jin."

    },

    {

    'type': 'FieldValue ',.
    'id': '100174.

    },

    {

    'type': 'FieldValue ',.
    'id': '100175'

    },

    {

    'type': 'FieldValue ',.
    'id': '100176.

    },

    {

    'type': 'FieldValue ',.
    'id': '100177.

    },

    {

    'type': 'FieldValue ',.
    'id': '100178.

    },

    {

    'type': 'FieldValue ',.
    'id': '100179.

    },

    {

    'type': 'FieldValue ',.
    'id': '100180.

    },

    {

    'type': 'FieldValue ',.
    'id': '100184.

    },

    {

    'type': 'FieldValue ',.
    'id': '100187.

    },

    {

    'type': 'FieldValue ',.
    'id': '100188.

    },

    {

    'type': 'FieldValue ',.
    'id': '100189.

    },

    {

    'type': 'FieldValue ',.
    'id': '100190.

    },

    {

    'type': 'FieldValue ',.
    'id': '100191.

    },

    {

    'type': 'FieldValue ',.
    'id': '100192.

    },

    {

    'type': 'FieldValue ',.
    'id': '100193.

    },

    {

    'type': 'FieldValue ',.
    'id': '100194.

    },

    {

    'type': 'FieldValue ',.
    "id': '100195."
    'value': 'KenJinL888MJ '.

    },

    {

    'type': 'FieldValue ',.
    'id': '100196.

    },

    {

    'type': 'FieldValue ',.
    'id': '100197.

    },

    {

    'type': 'FieldValue ',.
    "id': '100198."
    'value': 'unknown '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100199."
    'value': '66.0000.

    },

    {

    'type': 'FieldValue ',.
    "id': '100200."
    ' 'value': ' [email protected] "

    },

    {

    'type': 'FieldValue ',.
    "id': '100201."
    'value': 'female '.

    },

    {

    'type': 'FieldValue ',.
    'id': '100202.

    },

    {

    'type': 'FieldValue ',.
    "id': '100203."
    'value': 'Energy & Utilities '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100204."
    'value': '0.0000 '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100205."
    'value': '0.0000 '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100206 Uganda."

    },

    {

    'type': 'FieldValue ',.
    'id': '100207.

    },

    {

    'type': 'FieldValue ',.
    'id': '100208.

    },

    {

    'type': 'FieldValue ',.
    'id': '100209.

    },

    {

    'type': 'FieldValue ',.
    'id': '100210.

    },

    {

    'type': 'FieldValue ',.
    'id': '100211.

    },

    {

    'type': 'FieldValue ',.
    "id': '100212."
    'value': "day 1".

    },

    {

    'type': 'FieldValue ',.
    "id': '100213."
    'value': 'Purple '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100214."
    'value': 'unknown '.

    },

    {

    'type': 'FieldValue ',.
    'id': '100215.

    },

    {

    'type': 'FieldValue ',.
    'id': '100216.

    },

    {

    'type': 'FieldValue ',.
    'id': '100217.

    },

    {

    'type': 'FieldValue ',.
    "id': '100218."
    'value': '1.0000.

    },

    {

    'type': 'FieldValue ',.
    'id': '100219.

    },

    {

    'type': 'FieldValue ',.
    "id': '100220."
    'value': 'Purple '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100221."
    'value': 'school '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100222."
    'value': "don't like".

    },

    {

    'type': 'FieldValue ',.
    'id': '100223.

    },

    {

    'type': 'FieldValue ',.
    'id': '100224.

    },

    {

    'type': 'FieldValue ',.
    'id': '100225.

    },

    {

    'type': 'FieldValue ',.
    "id': '100226."
    "value':" ' 0 - 5 hours/week ""

    },

    {

    'type': 'FieldValue ',.
    'id': '100227.

    },

    {

    'type': 'FieldValue ',.
    "id': '100228."
    'value': 'PC '.

    },

    {

    'type': 'FieldValue ',.
    "id': '100229."
    "value':" ' 0 - 5 hours/week ""

    },

    {

    'type': 'FieldValue ',.
    'id': '100230.

    },

    {

    'type': 'FieldValue ',.
    'id': '100231.

    },

    {

    'type': 'FieldValue ',.
    'id': '100232.

    },

    {

    'type': 'FieldValue ',.
    'id': '100233.

    },

    {

    'type': 'FieldValue ',.
    "id': '100234."
    'value': '0.0000 '.

    },

    {

    'type': 'FieldValue ',.
    'id': '100235.

    },

    {

    'type': 'FieldValue ',.
    'id': '100236.

    },

    {

    'type': 'FieldValue ',.
    "id': '100237."
    'value': '2 '.

    },

    {

    'type': 'FieldValue ',.
    'id': '100238'

    },

    {

    'type': 'FieldValue ',.
    'id': '100239.

    },

    {

    'type': 'FieldValue ',.
    'id': '100240.

    }

    ],

    "FirstName": "Ken."

    'isBounceback': 'false. '

    'isSubscribed': 'true ',.

    'Name': 'Jin ',.

    'subscriptionDate': '1439800672 '.

    }

    However, I get an error response if I want to update my contact information via a call to POST the URL: https://secure.eloqua.com/Api/rest/2.0/data/contact?xsrfToken=80267e50-30db-4e16-9dd3-7d42ef75dc2d

    For example: update my "lastName" to "Kim" current value "Jin".

    POST request: <-I think it's a bad Message body that I don't know the correct format... Almost of the Eloqua REST API documents mentioned on GET rather than POST.

    {"id": "229",}

    ' 'emailAddress': ' [email protected] ",

    {'Name': 'Kim'}


    POST reply:

    [{'type' ": 'ObjectValidationError',' container': {'type': 'ObjectKey', 'objectType': 'Contact'}, 'ownership':"emailAddress","requirement": {'type': 'UniquenessRequirement', 'uniquenessScope': 'global'}, 'value' ': ' '[email protected]'}]

    Could someone tell me how to build a correct Message to the body?  Using the above example (updated an existing contact name) would be much better. Thank you!

    A POST is used to create new records in the database of Eloqua.  If you want to update an existing record, you want to use a call PUT.

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

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

  • 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

  • Make a call to REST API through c# to 'change a fixed cost value.

    HI -.

    I am trying to make a call to REST API through c# for "change to a fixed cost value.

    I did successfully the following tasks via c# with the call of the API REMAINS the chargeback manager 2.0

    -Connection to the chargeback manager 2.0

    -Add a custom Chargeback hierarchy

    -Add vCenter Server entity in the hierarchy of Chargeback that was created by the REST API

    -Add the fixed cost model.

    But when I tried to use the REST API to 'change a value of fixed cost' based on the version of the document programming API 2.0.

    He is not successful... Here are the error messages and the code I had.

    Code:

    Public Shared ReadOnly Property ModifiyFixedCost (CookieContainer cookieContainer) as string
    {
    HttpWebRequest request;
    Stream streamReq;
    = request (WebRequest.Create ("https://10.63.11.34/vCenter-CB/api/fixedCost/707/values"); )
    = //request (WebRequest.Create ("https://10.63.11.34/vCenter-CB/api/hierarchy/696/entity/697/costModel/701/fixedCosts/values"); )
    request. CookieContainer = cookieContainer;
    request. Method = "PUT";
    request. KeepAlive = true;
    request. Timeout = 600000;
    request. ContentType = "application/x-www-formulaires-urlencoded; application/x-www-form-urlencoded
    streamReq = request. GetRequestStream();

    Reading XML file.
    String strXML;
    String strCurrentPath = System.IO.Directory.GetCurrentDirectory;
    String strPath = "";
    strPath = strCurrentPath + "\\ModifiyFixedCostXML.txt";

    using (StreamReader sr = new StreamReader (strPath))
    {
    strXML = sr. ReadToEnd();
    }

    String strResp;
    Byte [] byteArray = Encoding.UTF8.GetBytes (strXML);
    streamReq.Write (byteArray, 0, byteArray.Length);
    streamReq.Close ();

    to using (WebResponse response = request. GetResponse())
    {
    Stream streamResp = response. GetResponseStream();
    StreamReader streamReaderResp = new StreamReader (streamResp);
    strResp = streamReaderResp.ReadToEnd ();
    }
    Return strResp;
    }

    XML file:

    <? XML version = "1.0" encoding = "UTF-8"? >
    < application >
    < FixedCosts >
    < FixedCost id = "1" >
    values <>
    < value >
    < cost > 3.14 < / cost >
    < span id = "1" / >
    < / value >
    < / value >
    < / FixedCost >
    < / FixedCosts >
    < / request >

    Error messages;

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

    " < response xmlns =" http://www.VMware.com/vCenter/chargeback/2.0 "" xmlns: xsi = " http://www.w3.org/2001/XMLSchema-instance " status = "Failure" > ""

    < majorErrorCode error = '500' minorErrorCode = '0' message = "No such method defined or an API call lack of required arguments. / >

    < / answer >

    Please explain what is the problem here... Is the chargeback REST API c# 2.0 support?

    Thank you

    Yale

    Yale,

    I see the following changes are required in the application:

    1. URL is missing, the startTime and endTime, if the end time is not required to send it as -1. For example: http://localhost: 8080/vCenter-CB/api/fixedCost/553/values? startTime = endTime =-1 & 1340130600000
    2. In XML, fixed cost id must be the same as that mentioned in the URL. XML tag is

    Thank you

    Diomande

  • How do to identify the documents called "models of library" using the RESTful API?

    How do to identify the documents called "models of library" using the RESTful API? Furthermore, what constitutes a document to be a "model of library"? I see nothing in the libraryDocuments RESTful documentation that describes this type of document, such as presented on the tab 'Manage' my developer account. Please see the screenshot below. There is a model of Document named "[DEMO ONLY] Test model" listed under "Library Templates" and I try to figure out which classifies that document to be included this way and how does produce a similar announcement by using the RESTful API.

    Screen Shot 2014-10-29 at 11.16.48 AM.png

    Thank you!

    Hello

    You can connect to access library models using the REST API, use 'GET /libraryDocuments' allowing to recover documents in library for a user. Models are created in the account of EchoSign, which later are accessible via the REST method mentioned above.

    Jat

  • I get a 'Secure connection' error failed with google stating "certificate contains the same serial number.

    When I click on a link to a google search, I get the "Secure connection" error failed in Firefox. He says, "please contact the administrator of the server or email correspondent and give them the following information: your certificate contains the same serial number for another certificate issued by the certification authority."

    I followed the instructions here:
    https://support.Mozilla.org/en-us/KB/certificate%20contains%20The%20Same%20serial%20number%20As%20another%20certificate
    and looked at this article:
    https://support.Mozilla.org/en-us/questions/1028103?ESAB=a & As = AAQ

    I uninstalled and reinstalled Firefox, deleted the entire folder profiles and reset Firefox. I see that the older (orphans) article points to my router. However, I have a new router and have updated their software. There is no button to add an exception (as stated in the article), so I can't just work around it. This problem does not occur with IE, so I have a hard time to believe that it is my router.

    How to solve this problem? I really want to change browser.

    Finally, I tracked the issue. The answer was found here:
    https://support.Mozilla.org/en-us/questions/1028985

    It turns out that Avast has a web shield that passes through its own verification of certificate https. Of course, this feature is not quite right and loses track of the certificates. Disable "https scanning" in the settings of Avast resolved the problem.

Maybe you are looking for