Coldfusion, JSON, and the Amazon CloudSearch API

Hi all,
We are using Amazon CloudSearch service for our site search.  We created a front end which uses jquery to communicate with the server to display search results.
The problem we are running into is with creating and updating data on the backend.  We have been creating new domains and uploading whole data sets manually from spreadsheets which is obviously not going to work for us long term.
The cloud search uses has an API that we can send JSON to for updating the items.  I have created the nested json like this (the query name and data has been changed to protect the innocent):
<cfscript>
  variables.dataFields = {};
          variables.dataFields['id'] = " #getsdata.id#";
          variables.dataFields['lang'] = "en";
          variables.dataFields['type'] = "add";
          variables.dataFields['version'] = " #DateFormat(Now(),"YYMMDD")##TimeFormat(Now(),"HHMM")#";
  variables.dataFields['fields'] = {};   
  variables.dataFields.fields['redfield'] = "#getsdata.redfield#";
          variables.dataFields.fields['blackfield'] = "#getdata.blackfield#";
  variables.dataFields.fields['purplefield'] = "#getdata.purplefield#";
variables.dataFields = serializejson(variables.dataFields);
</cfscript>
When I dump that json out, it looks pretty good (there are many more fields).  For now, I added a space before numbers to work around a bug I read about in the serializedjson function in CF8 that sees all numbers as numbers even if they are expressed as strings.  I will figure that out later.
The code to post the json is:
<cfhttp url="http://doc-ourcompanydomain-abunchofnumbers.us-west-2.cloudsearch.amazonaws.com/2011-02-01 /documents/batch" method="post"  result="httpResp">
  <cfhttpparam type="header" name="Content-Type" value="application/json"  />
  <cfhttpparam type="header" name="Accept" value="application/json" /> 
  <cfhttpparam type="header" name="Content-Length" value="#Len(variables.dataFields)#" />
  <cfhttpparam type="body" value="#variables.dataFields#" />
  </cfhttp>
The response I get is "400 Bad Request"
I know that there aren't that many people using cloud search and Coldfusion but I was hoping somebody might see a noob mistake in my code or methods.
Thanks!
Red

Hi Peter,
Thank you for your response.  For some reason, I was not able to reply to my own post.  Maybe I just wasn't signed in.
Anyway, the problem was with the json that I was uploading and not with my method for uploading it.  I was actually able to remove the "Accept" and "Content-Length" params.
I had added a space in front of the ID so that the serializedjson function would treat it as a string and not a number but the API required that field start with an alphanumeric character.  Since I am using the sku number for that product, I just changed it to sku12345 etc so that it was seen by the serializedjson function as a string and the API would accept it.
Also, I had to add brackets around the enitre body because the Cloudsearch API wanted the entry to be an array so I just added:
<cfset theuploaddata = "[" & variables.dataFields & "]">
Once I made those changes, the server responded with a 200 code and updated the item.  Now I just need to figure out how to get arrays past the CF json tag.  Some of our json is set up for the cloudsearch in arrays like colors.  The facets need to appear in the upload as "Colors" : ["Red","Blue"] but the serialized json tag automatically escapes the quotes in the facets.  I think I saw some third party custom tags that I can use as a work around. 
Thanks again for your help.  The Cloudsearch service has been awesome so far.  We are really happy with it.  We are a small to midsized company and the cost of a dedicated search company was 10-15 as much as the cloud search and they basically wanted total control of the site.  The cloudsearch required a considerable amount of work to set up but it works beautifully.  Since we use it for navigation too, I have been thinking about caching the json for the common requests.
Red

Similar Messages

  • Using Mail Transport Rules and the Exchange AWS API

    I am looking to programmatically Enable and Disable hub transport rules from VS.NET and was hoping these functions would be available via the REST API. However, I can't find any references, which indicates that perhaps they don't exist. 
    The rules I want to access can be used from PowerShell "Enable-TransportRule" and "Disable-TransportRule" and I can use them fine from Powershell.
    So, my first question is, are these rules available from the Exchange EWS API? They need to be triggered when users perform certain events within the application.
    If not, I am guessing I will be able to automate these cmdlets into a C# application or ASP.NET/C# application. Is this a correct assumption?
    Thanks.
    Jonathan.

    No you can't set Transport rules from EWS, EWS is a mailbox access API and setting Transport Rule would be considered an Administrative Task so you need to use and Admin API which for Exchange is still the Exchange Management Shell. You can automate
    the EMS cmdlet with Managed code (eg you could front end them with your own rest service) using Remote Powershell the best place to start would be
    http://msdn.microsoft.com/en-us/library/office/jj943721(v=exchg.150).aspx
    Cheers
    Glen

  • Is there a way to create a virtual network using C# and the Azure SDK/API?

    I don't see a clear way to create an Azure Virtual Network using the SDK.
    I have all the methods to create the virtual network configuration, but no way to submit it:
    IList<string> VirtualNetworkAddressPrefixes = new List<string>();
    IList<string> LocalNetworkAddressPrefixes = new List<string>();
    IList<NetworkListResponse.DnsServer> DNSServers = new List<NetworkListResponse.DnsServer>();
    IList<NetworkListResponse.Subnet> Subnets = new List<NetworkListResponse.Subnet>();
    NetworkListResponse.Gateway Gateway = new NetworkListResponse.Gateway();
    IList<NetworkListResponse.LocalNetworkSite> LocalSites = new List<NetworkListResponse.LocalNetworkSite>();
    IList<NetworkListResponse.Connection> Connections = new List<NetworkListResponse.Connection>();
    VirtualNetworkAddressPrefixes.Add("a.b.c.d/cidr");
    DNSServers.Add(new NetworkListResponse.DnsServer() { Name = "TestDNS1", Address = "a.b.c.d" });
    Subnets.Add(new NetworkListResponse.Subnet() { Name = "Subnet-1", AddressPrefix = "a.b.c.d/cidr" });
    Subnets.Add(new NetworkListResponse.Subnet() { Name = "GatewaySubnet", AddressPrefix = "a.b.c.d/cidr" });
    Connections.Add(new NetworkListResponse.Connection() { Type = LocalNetworkConnectionType.IPSecurity });
    LocalNetworkAddressPrefixes.Add("a.b.c.d/cidr");
    LocalSites.Add(new NetworkListResponse.LocalNetworkSite()
    Name = "On-Prem",
    Connections = Connections,
    VpnGatewayAddress = "a.b.c.d",
    AddressSpace = new NetworkListResponse.AddressSpace() { AddressPrefixes = LocalNetworkAddressPrefixes }
    Gateway.Sites = LocalSites;
    Gateway.Profile = GatewayProfile.ExtraLarge;
    NetworkManagementClient netMgmtClient = new NetworkManagementClient(CloudCredentials);
    NetworkListResponse netlistresp = GlobalSettings.mainWindow.netMgmtClient.Networks.List();
    netlistresp.VirtualNetworkSites
    .Add(new NetworkListResponse.VirtualNetworkSite()
    Name = "TestVirtualNetwork",
    AddressSpace = new NetworkListResponse.AddressSpace() { AddressPrefixes = VirtualNetworkAddressPrefixes },
    DnsServers = DNSServers,
    Subnets = Subnets,
    AffinityGroup = "East US",
    Gateway = Gateway,
    Label = "LabelValue"
    I have also created the entire XML response and sent it to the NetworkManagementClient -> Networks.SetConfiguration() method, but it appears this command expects the virtual network to already be in existence. If anyone could give guidance, it would be
    appreciated.

    Hi,
    As discuss above , we have to create the XML response  ,before that first you have to
    GetConfiguration() details of existing virtual network. 
    string.format("@<NetworkConfiguration xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns='http://schemas.microsoft.com/ServiceHosting/2011/07/NetworkConfiguration'>
                <VirtualNetworkConfiguration>
                <Dns />
                <VirtualNetworkSites>
                <VirtualNetworkSite name=""{0}"" Location=""{1}"">
                <AddressSpace>
                <AddressPrefix>10.0.0.0/8</AddressPrefix>
                </AddressSpace>
                <Subnets>
                <Subnet name=""Subnet-2"">
                <AddressPrefix>10.0.0.0/11</AddressPrefix>
                </Subnet>
                </Subnets>
                </VirtualNetworkSite>",Networkname,location)+(@"<VirtualNetworkSite name=""demodsf1"" Location=""West Europe"">
            <AddressSpace>
              <AddressPrefix>10.0.0.0/8</AddressPrefix>
            </AddressSpace>
            <Subnets>
              <Subnet name=""Subnet-1"">
                <AddressPrefix>10.0.0.0/11</AddressPrefix>
              </Subnet>
            </Subnets>
          </VirtualNetworkSite>  </VirtualNetworkSites>
                </VirtualNetworkConfiguration>
                </NetworkConfiguration>")
    you have to append the node for existing node with new values , i got it its adding new virtual network 
    Best regards,

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase from a Java desktop application and I am unable to do so. I need to know if I am in principle doing the right things and if I have the correct environment set up.
    We have a server with Essbase version 9.3.1. We normally use essbase via the Excel Addin, and I have already written Excel applications that utilise both the addin and the Essbase VB API. Now I need to connect to Essbase but from outside Excel and using the Java API. I have no idea what APS is nor does my Essbase Administrator.
    My application has the following code (adapted from a post in this forum) -
    public static void main(String[] args) {
    String s_userName = "user";
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI";
    try{
    IEssbase ess = IEssbase.Home.create(IEssbase.JAPI_VERSION);
    IEssDomain dom = ess.signOn(s_userName, s_password, false, null, s_provider);
    IEssOlapServer olapSvr = dom.getOlapServer(s_olapSvrName);
    olapSvr.connect();
    System.out.println("Connection to Analyic server '" + olapSvr.getName() + "' was successful.");
    olapSvr.disconnect();
    }catch(EssException exp){
    System.out.println(exp.getMessage());
    I am running my application on my computer, not on the Essbase server, and the username I am using is the same one I use (as a user of Essbase) via the Essbase Addin in Excel, not an admin login.
    When I run the app I get:
    "Cannot connect to Provider Server.Make sure the signon parameters are correct and the Provider Server is running."
    Please can you confirm:
    1) Do I need an admin login for my client application to connect to the Essbase server or can I use a normal read-access login, like the one I use in Excel?
    2) Is the provider always the same regardless of the computer, i.e. "http://localhost:13080/aps/JAPI"; How do I know what this has to be? Where do I get this information from?
    3) How can I make sure that the Server is running the necessary "Provider Server", is this just a service that will show on services.msc of the server? What should I ask the Essbase Administrator for him to tell me what I need?
    Thank you very much.
    Leo

    Tim, when I look in my computer's Essbase installation path I can only find the following jar files (from the ones you have listed).
    C:\Hyperion\AnalyticServices\JavaAPI\external\css\log4j-1.2.8.jar
    C:\Hyperion\AnalyticServices\JavaAPI\lib\ess_es_server.jar
    C:\Hyperion\AnalyticServices\JavaAPI\lib\ess_japi.jar
    I do not have css-9_3_1.jar or interop-sdk.jar.
    In order to try the embedded mode, I added the three jars I have to the classpath, and have re-built and ran with "embedded" as the provider. This is what I got in my output screen:
    run:
    Error accessing the properties file. essbase.properties: essbase.properties (The system cannot find the file specified). Using default values.
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    Copyright (c) 1991, 2007 Oracle and / or its affiliates. All rights reserved.
    connection mode : EMBEDDED
    essbase.properties: essbase.properties
    domain.db location: domain.db
    console log enable : false
    file log enable : false
    logRequest : false
    logLevel : ERROR
    java System properties -DESS_ES_HOME: null
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 2 seconds)
    As you can see, this has worked (as I get the data I was looking for at the end), but when I had the url in the provider string, I just get the below, without the initial errors:
    run:
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 2 seconds)
    Now that I can get both modes to work I intend to write a Windows application, place it in a shared drive, and allow multiple users to use it. Which mode should I use?
    By the way, I found the essbase.properties file in C:\Hyperion\AnalyticServices\JavaAPI\bin, but when I add it to my app and test it in embedded mode, I get even more errors, but it still gives me the result...output below:
    run:
    java.io.FileNotFoundException: ..\bin\apsserver.log (The system cannot find the path specified)
    at java.io.FileOutputStream.openAppend(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
    at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
    at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
    at org.apache.log4j.FileAppender.<init>(FileAppender.java:96)
    at org.apache.log4j.RollingFileAppender.<init>(RollingFileAppender.java:60)
    at com.hyperion.dsf.server.framework.BaseLogger.addAppender(Unknown Source)
    at com.hyperion.dsf.server.framework.BaseLogger.setFileLogEnable(Unknown Source)
    at com.hyperion.dsf.server.framework.DsfLoggingService.sm_initialize(Unknown Source)
    at com.essbase.server.framework.EssOrbPluginDirect.setupLoggingService(Unknown Source)
    at com.essbase.server.framework.EssServerFramework.<init>(Unknown Source)
    at com.essbase.api.session.EssOrbPluginEmbedded.<init>(Unknown Source)
    at com.essbase.api.session.EssOrbPlugin.createPlugin(Unknown Source)
    at com.essbase.api.session.Essbase.signOn(Unknown Source)
    Hyperion Provider Services - Release 9.3.1.0.0 Build 168
    at com.essbase.api.session.Essbase.signOn_internal(Unknown Source)
    at com.essbase.api.session.Essbase.signOn(Unknown Source)
    at esstest.Main.main(Main.java:22)
    Copyright (c) 1991, 2007 Oracle and / or its affiliates. All rights reserved.
    connection mode : EMBEDDED
    log4j:WARN No appenders could be found for logger (com.hyperion.dsf.server.framework.BaseLogger).
    essbase.properties: essbase.properties
    log4j:WARN Please initialize the log4j system properly.
    domain.db location: ./data/domain.db
    console log enable : false
    file log enable : true
    logFileName : ../bin/apsserver.log
    logRequest : false
    logLevel : WARN
    java System properties -DESS_ES_HOME: null
    Scenario Markets Total Legal Entities Products
    Jan Feb Mar
    Standard Units 1.053264054859E7 1.60849856762E7 2.6234553348270003E7
    BUILD SUCCESSFUL (total time: 3 seconds)
    Thank you
    Leo

  • Problem linking into Amazon Advertising API

    Hi,
    I am quite new to Flex and have been connecting to the Amazon Advertising API to create a sample application. The problem is that as of August 15th, the API requires an TimeStamp and Signature parameter. I created them by using the Signed Requests Helper at http://associates-amazon.s3.amazonaws.com/signed-requests/helper/index.html and plugged the values into the http request as follows:
    <mx:HTTPService 
    id="searchRPC" showBusyCursor="true" url="http://ecs.amazonaws.com/onca/xml" method="POST" result="searchResultHandler(event)" fault="searchFaultHandler(event)"
    >
    <mx:request >
    <AWSAccessKeyId>MYACCESSID</AWSAccessKeyId>
    <Keywords>{escape(this.parentDocument.keywordsTextInput.text)}</Keywords>
    <Operation>ItemSearch</Operation>
    <ResponseGroup>Medium,Reviews</ResponseGroup>
    <SearchIndex>Books</SearchIndex>
    <Service>AWSECommerceService</Service>
    <TimeStamp>2009-08-18T16:23:16.000Z</TimeStamp>
    <Title>{escape(this.parentDocument.titleTextInput.text)}</Title>
    <Version>2009-07-01</Version>
    <Signature>HDDIYtjmLPiP47FGFDf2aTe9TC0BeeM5uUUL7P2Paww=</Signature>
    </mx:request>  
    </mx:HTTPService>
    Here is what the signed request would look like if passed as a url
    http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=MYACCESSID&Keywords=flex%0D&Operation=Ite mSearch%0D&ResponseGroup=Medium%2CReviews%0D&SearchIndex=Books%0D&Service=AWSECommerceServ ice%0D&Timestamp=2009-08-18T16%3A23%3A16.000Z&Title=Training%0D&Version=2009-03-31%0D&Sign ature=HDDIYtjmLPiP47FGFDf2aTe9TC0BeeM5uUUL7P2Paww%3D
    It shoots back a fault saying that my timestamp and signature are invalid.
    I would appreciate it if anyone could help me with this.
    Anthony

    Is this the right way? How to implement it right. Is there any good tutorial regarding this topic?
    Regarding the <xsl:template match="/ItemAttributes"> I have seen that some people put one or more slashes in front of the itemattributes. What does it mean? How can I get the attributes of the LargeImages. What do I have to take care about when my structure is deeper? Sorry.. questions over questions

  • Open Letter to Apple and the Pages DEV Team

    Dear Apple -
    I am a web developer and a beginning fiction author... I love my macbook... I am planning to get a ipad with the Pages App soon (upgrading to a Macbook Pro first). I am also an owner of the iphone 4, and therefore have explored ibooks. Here is a hint from someone who while I am a beginning author, I have done ebooks for technical writing and user guides with my paying clients.
    Do you want to kill the kindle and the Amazon eformat?
    There is one thing you at Apple can do that will hasten the death of AZW. Add a export to epub format option in Pages. I have bought iworks every time a new version has been released. This is something I can not say about any other product, including OSes. For someone who has been in IT for over ten years, such product loyalty is rare. Please make it easier for me to use epub then it is to use Amazon.
    Thank you
    Tom S.

    Martin Luther had an easier job of getting noticed.
    If memory serves, the worthy doctor was protected at the Diet of Worms by Friedrich der Weise, Frederick the Wise, the Elector of Saxony. There is an excellent engraving of Friedrich by Albrecht Dührer.
    The problem in the present situation is that the institution that has been selling letters of absolution has been doing so on paper that allows the letters to fall off the page, so to speak. And it has some problems admitting to this.
    /hh

  • Coldfusion broke and i can't fix it.

    ehllo all,
    I had the developers addition of coldfusion mx7 installed. I
    use windows xp running with apache 1.3 server and it was working
    just fine. Then I went and destroyed some key files on my server
    whops
    reinstalled the server but can't seam to get
    coldfusion working again i tried uninstalling it and installing it,
    about 12 times, but it doesn’t want to work for me. when i
    reinstall it dose not create the cfmx directory?
    Any help at all would be greatly appreciated
    karmapool

    adam thanks for the direction
    here is were it lead me...
    Coldfusion is not reinstalling at all. Apache is running fine
    with PHP and mySQL. Going through the install wizard it never makes
    it to the server configuration page (it just skips it?) there is an
    install log created and I took a closer look at it.
    Install Directory: C:\Documents and Settings\Owner\Local
    Settings\Temp\7433.tmp\
    Status: SUCCESSFUL
    Additional Notes: NOTE - Directory already existed
    There seams to be several files been left behind in the
    directory
    C:\Documents and Settings\Owner\Local Settings\Temp\
    • hsperfdata_Owner(folder)
    • persistent_state
    • 1416.tmp (folder)—always diff 4 nums—
    • .com.zerog.registry.xml
    • .cleanup.tmp(folder)
    • removefiles.txttemp
    strange thing at first I deleted the entire directory. It
    then moved where it was installing the files to C:\Temp\ I deleted
    this directory too. It then started installing the files into
    C:\Documents and Settings\Owner\ didn’t want to delete this
    directory because of other key files so I created another
    C:\Documents and Settings\Owner\Local Settings\Temp\ directory and
    it started installing them in there again
    another strange thing is some where along the line of going
    through the install wizard I did make it to the configure server
    page. Thought I had it but I had installed a version of apache that
    it didn’t like so I had to start over and never made it back
    final strange thing is a I tried coldfusion MX6 and the
    installer always says to pick another directory to unpack in wont
    even launch any more
    I think it maybe because my hard drive is almost full I am
    going to delete some things then defragment it
    Cheers,
    Karmapool

  • Where is settings.json for the transmission-cli package?

    I installed transmission-cli earlier today, I've spent a while trying to work out where settings.json is (via google and trawling my mounts), but have been unable to locate it.
    People seem to say that the user configuration file is at ~/.config/transmission-daemon/settings.json, and the global configuration file is at /etc/transmission-daemon/settings.json, but neither of these exist on my system. I did notice that /etc/conf.d/transmissiond has a commented out line regarding it, but I can't find the default file to copy over and modify in any case.
    Any ideas?

    Have you started transmissiond yet? IIRC, doing so will create the files in ~/.config, at which point you can stop the daemon, edit settings.json and start it up again.

  • Want a JSON response by the Bing Synonyms API

    Hello,
    How do I request for a JSON response from the synonyms API. I could not find the answer in the documentation found here: https://onedrive.live.com/view.aspx?resid=23DD320B9FC9364A!113&app=Word&authkey=!AAxXlP949CZOQyA
    I decided to try query param format=json and it did not work, neither did it work if I passed in the Content-Type: application/json
    Everytime the API sends back the response in XML.
    Please let me know,
    AJ

    What I could get from the documentation is basically:
    A request to the HTTP endpoint consists of an HTTP GET request to the appropriate URI. There are two
    URIs, one for XML results and one for JSON results. These are http://api.bing.com/xml.aspx and
    http://api.bing.net/json.aspx, respectively.
    Now the synonyms API URL is: 
    https://api.datamarket.azure.com/Bing/Synonyms/GetSynonyms?Query=%27word%27
    what I am supposed to do here?

  • Pros and cons of jxl api and apache poi of manipulating the excel sheet.

    i want a list of pros and cons of jxl api and apache poi of manipulating the excel sheet.
    also i need to know which one is better jxl or apache poi.

    Hi Ricardo_Lorenzo,
    Whether to go for Multiserver instances or Single server, is totally a user requirement based decison. If a user has Single website, or multiple websites (of the same nature, in terms of functionality), usually the part of same domain, then they would go for Single sever installation. One single instance will handle the requests from all the websites (if there are multiple). There would not be a clustering/failover setup within ColdFusion and can use the ColdFusion Standard or Enterprise version.
    On the other hand, if a user has multiple websites, all with different functionality and have multiple applications (may or may not) running, then they can go for Multiserver installation. Each website can be configured with individual instances. Clustering can be done within ColdFusion if needed. One would need an Enterprise license of ColdFusion for the same.
    Hope this helps.
    Regards,
    Anit Kumar

  • In the address bar, how do you get rid of the Amazon button, the "e-pub catalogue" button and change my search button to Google vs Babylon? Where is the button beside the forward arrow that would allow you to see your current history of links?

    On my address bar, there is now a superfluous Amazon button at the right of the forward arrow where there used to be a button that would allow you to see your recent links. It's gone. In addition there is a useless "epub catalog" button and the search button is Babylon instead of Google. How do I go back to my working address bar.

    Right click the Back / Forward buttons to get a list of sites you visited.
    To reinstate Google as your search engine, do the following.
    * In the location bar, type '''about:config '''and hit Enter.
    * In the filter at the top, type: '''keyword.URL'''
    * Double click it and remove whatever's in there and replace it with http://www.google.com/search?q=
    * Go to File | Exit
    * Restart Firefox, go to the site you want to set as your homepage.
    * Go to '''Tools '''| '''Options '''| '''General'''.
    * Make sure it says "''Show My Homepage''" in the first dropdown menu.
    * Click the button called "'''Use Current Pages'''" to set the homepage to the one you have on the screen.
    The URL to add in "keyword.URL" becomes a link in this post, so right click it and choose "Copy Link Location" to copy it to the Windows clipboard. Then hit CTRL+V to paste it. Saves you having to type the whole thing.
    '''EDIT''': Remove the AmAzon button by right clicking a blank part of the tab bar and click '''Customize'''. Then drag it into the panel which opens.

  • Acrobat Pro for Mac bought on Amazon;how can I register it?. registration code they give me, it doesn't work. (It has letters and the registration boxes won't accept letters.)  How do I get this to work?

    I purchased Acrobat Pro for Mac on Amazon. When I try to register with the registration code they give me, it doesn't work. (It has letters and the registration boxes won't accept letters.) How do I get this to work?

    If you don't have original install disks for your Mac, you can order replacements disks directly from Apple at a nominal cost. The original install DVDs are required to reset the password.
    If you have no data on your drive that you want to keep, you can boot up from the OSX Snow Leopard disk and install OSX SL.
    Insert the Snow Leopard DVD and hold the C key during startup. The Mac should boot from the CD/DVD drive into the installer.
    Follow the prompts, erase the disk and install OSX Snow Leopard.

  • Where is the Google Web APIs Developer's Kit and developer's license key???

    Hi!
    I'm trying to follow the web services tutorial on page 490 of the Oracle JDeveloper 10g Handbook (written in 2004 so it is a little dated). Part I of the tutorial is to register with Google and download the Google Web APIs Developer's Kit, but I can't find it anywhere (at least not with that name). Does anyone know where is it?
    On a related topic, this tutorial (http://www.oracle.com/technology/oramag/webcolumns/2003/techarticles/balusamy.html) talks about a Google developer's license key (Understanding Google Web APIs section), but again, when I created a Google account I did get a confirmation email, but no second email with no key. Where do I find this?
    TIA for any help.

    what type of application?
    Here is the basic of how to use a Web service in a JSF/ADF based application:
    http://www.oracle.com/technology/products/jdev/viewlets/1013/WebServicesAndADF_viewlet_swf.html
    and this section of the how-to shows you how to create a basic Java client:
    http://www.oracle.com/technology/obe/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm#t6s1

  • Passing username and password while calling the simple HTTP API

    Hi,
    I want to execute a graph by calling the http api from a java code. However, this gives me a 401 unauthorized http error as I am not passing the username and password to the clover http url.
    The following is the format of the constructed url. - http://<host>:<port>/clover/simpleHttpApi/graph_run?sandbox=<sandboxname>&graphID=graph/Baseline.grf&verbose=FULL
    Can anyone suggest how to pass user credentials to this url.
    Thanks

    Brett,
    Thanks for the response.
    The idea is to run the baseline graph using the simple http api and get the run id of the job. Then I plan to call
    this url - http://<host>:<port>/clover/simpleHttpApi/graph_status?runID=1310924&returnType=STATUS_TEXT&waitForStatus=FINISHED_OK by passing the obtained run ID of the previous job dynamically to this url. This status has to be read and printed on the screen. Now all this is easy to write using java and executing the java class using the JAVA EXECUTE component of Integrator ETL 3.1. My only problem is how do I pass the user credentials.
    Thanks

  • Create a Participant and assign roles using API (outside the process)

    I want to create a participant in the BPM directory using API, which I believe is available in the fuegopapi-client.jar file. What is missing is a sample or documentation for that API. PAPI Javadocs found on the web don't cover the rest of the API available in the mentioned jar file.
    There are examples of how to do this within a process, but not outside the context of the process. Any references to documentation or samples, you may have come across is greatly appreciated. I have not had success in finding anything on this forum and the web. Thanks.

    Hope it helps
         private void openSesionDFI() throws ProtocolNotSupportedException, AuthenticationException {
              if (directorySessionRol==null){
                             DirectoryConfigurationManager.getRuntime().setPropertiesFileName(props.getProperty("fuego.custom.replication.config.directoryFile").trim());
    Directory.DEFAULT_ENGINE_PRESET);
                             DirectoryPassport directoryPassport = DirectoryPassport.createWithIDAndPreset(props.getProperty("fuego.custom.replication.config.directoryId").trim(), props.getProperty("fuego.custom.replication.config.preset").trim());
                                  if (directoryPassport == null)
                                       throw new RuntimeException("Invalid directory passport for FDI");
                                  System.out.println("openSesionDFI: " +directoryPassport.getUrl());
                                  directoryPassport.fillPassport();          
                                  directorySessionRol = Directory.startAdminSession(directoryPassport);
              System.out.println("openSesionDFI: " +"fin");
         }

Maybe you are looking for

  • Can I DELETE an iCloud account associated with my AppleID?

    I have two AppleIDs - one that my wife and I share for purchases (apple ID is a gmail address) and one that I now use for all iCloud activities (@me.com).  I accidentally created an iCloud account while signed in using our shared AppleID and now want

  • Error 513, no message was created in support desk system BCOS005

    Hi All, After completing the ITSM config on Solution Manager 7.1, I am stuck with the following error when creating message from any of the satellite system, or from SM itself. "Because of error 513, no message was created in support desk system" Mes

  • Dimension 'Years' failed validation

    Hi All, I am getting this error while deploying the application. Error : Dimension 'Years' failed validation 'YearMembersSequential' for the following reason(s): Year members must be sequential. I am seeing my Year dimension is sequential only. I am

  • High CPU Usage while getting input from JTextArea

    I have a core class (emulator) that can receive and handle command strings of varying sorts. I have an Interface that, when implemented, can be used to work with this emulator. I have code that works, but the CPU is pegged. The emulator has its own t

  • How to buy snow leopard currently?

    Hi, i wanted to update an old leopard mac (which is supported) to mountain lion now that it is out. Turns out snow leopard cant be bought in the mac store anymore and telephone support says it should be bought at retail sellers. However i phoned thre