Posts tagged as:
rest
Daily del.icio.us for March 27th through April 3rd
- Create a Shortcut or Hotkey to Immediately Eject a Specific USB Drive :: the How-To Geek - Using the built-in Windows dialog is more powerful and probably would suffice for most people, but for those of us that want complete control there's a small freeware utility called USB Disk Ejector.
- Thermal Reaction: Tom Gleeson - You're Beautiful - take on James Blunt Song - Tom Gleeson - You're Beautiful - take on James Blunt Song
- Ext JS Blog - » Implementation Spotlight: Jama Contour - Contour is a fully web-based requirements management application, sports a complete Ext-based user interface from top to bottom. It’s easily one of the most sophisticated and visually polished Ext applications we’ve seen yet
- Ajax on the network side - Java World - Making the most of Ajax doesn't end with beautiful code: you also need a solid network infrastructure that won't choke when client calls surge. This article introduces Ajax basics, offers tips for optimizing, monitoring, and securing Ajax applications
- SpringSource Team Blog » What's New in Spring Web Services 1.5? - Spring Web Services 1.5.0 has been released and itincludes two new transports: JMS and email. Using these new transports requires no Java code changes - some configuration, and you're off! The JMS integrates with Spring's Message-Driven POJO model
- 451 CAOS Theory » Open source database adoption: widespread but shallow - One of the key findings is that open source software has had a superficial impact on the enterprise database market in that adoption has been widespread but shallow. While open source databases have been widely deployed for Web-tier applications, there ha
- Spring to get upgraded with REST | InfoWorld | News | 2008-03-27 | By Paul Krill - The planned 3.0 version of Spring will have significant enhancements with respect to Web technologies and it will have comprehensive support for RESTful Web services. Also planned for Spring 3.0 is unification in the programming model between Spring Web F
- Janice J. Heiss's Blog: The Story of Ruby, JRuby, and Rails at Sun - Sun is making Ruby and Rails faster and enhancing functionality through JRuby which allows Ruby to enter enterprises where Ruby and/or Rails have never entered as Ruby developers gain access to the Java APIs and the Java community.
- Techno Paper: CRUD application using Ext and Java - I have the CRUD application built on Ext and Java. I have used Java as my server side and Oracle XE to store my data. You can use any server side technology and persistence technology
Related posts
{ 0 comments }
Daily del.icio.us for March 26th through March 27th
- Ext JS Ext.ux.YoutubePlayer - The Ext.ux. YoutubePlayer is a user extension that utilizes the Youtube Chromeless API. You can embed any Youtube video into Ext native controls and place it in your application. It's like a mediaplayer built on top of Ext JS and the Youtube API.
- InfoQ: Real World Web Services - In this presentation, Scott Davis provides a pragmatic, down-to-earth introduction to Web services as used in the real world by public sites, including SOAP-based, REST and POX-style examples. While the buzzword density leaves nothing to be desired, the p
- Microsoft and Sourcesense Partner to Contribute to Open Source, Apache POI to Support Ecma Office Open XML File Formats: Companies to collaborate on the development of open source solutions for the Microsoft Office product suite. - Microsoft and Sourcesense announced that the two companies will collaborate on the strategy, development and deployment of open source solutions for the MS Office. One of the initial goals is contributing to the development of a new version of Apache POI
- Watch Out - Adobe Is Slowly Building an Online Empire - ReadWriteWeb - Adobe seems to "get it" - they know that software is moving online, but they're betting on the co-existence of both online software with their corresponding offline apps, like those built with Adobe AIR
- Brian Alvey: The Audacity of Code - Code in the face of difficulty. Code in the face of uncertainty. The audacity of code!
- GigaOM Interview: Ray Ozzie, Chief Software Architect, Microsoft Corp. - GigaOM - Fresh from his Mix’08 keynote, Microsoft’s Chief Software Architect and industry luminary, Ray Ozzie, spent some time on the phone with me, discussing everything from the company’s services strategy, to the economics of cloud computing, to the relev
- Cobra: Java HTML Parser - The all-Java Cobra HTML Toolkit includes a HTML DOM parser that can be used independently of the rendering engine. The following are some of its features: * It implements W3C HTML DOM Level 2 interfaces. It parses "street HTML", can be used in headless mo
- Coding Horror: Is Eeyore Designing Your Software? - I think sometimes programmers forget how much work it is to create software at large companies. What may seem like a no-brainer five line code change to us on the outside is perhaps five man-weeks of work once you factor in all the required process overhe
- Dabblers and Blowhards - As for the mystical connection between painters and programmers, the famous Lloyd Bentsen put-down keeps coming to mind…. You, sir, are no painter. And while you hack away at your terminal, or ride your homemade Segway, we painters and musicians are goi
- Google's five-year plan to hit Enterprise continues (Cemaphore helps Google out) « Scobleizer — Tech geek blogger - Enterprises will never move wholesale over to Gmail and Google’s other offerings. Users just don’t like that kind of change. There would be revolt at work, if CTOs tried to force it.
Related posts
{ 0 comments }
Daily del.icio.us for January 9th
- enunciate - Enunciate is a Web service deployment framework. It is not another Web service stack implementation. Rather, Enunciate leverages existing Web service technologies to provide a mechanism to build, package, deploy, and to clearly, accurately deliver your We
- Ryan Heaton's Blog: Web Service Programming for the Masses, Part I: Developing the Web Service API - This is the first part of a tutorial will walk you through developing a Web service API that could meet the requirements of all of the above-mentioned use cases. For the sake of clarity and brevity, we'll keep the operations simple, but by the time we're
- Bob Rhubart's Blog: The SOA Governance Prescription - A significant part of getting your SOA to do what it's supposed to do is getting the people involved in the SOA to do what they're supposed to do
- Pinaki Poddar's Blog: Slice: OpenJPA for Distributed Databases - Slice is a OpenJPA plug-in for horizontally-partitioned, distributed databases. As distributed databases are being increasingly common in enterprise IT ecosystem, I considered extending OpenJPA to transact against a set of databases instead of a a single
- Top 10 SQL Server Integration Services (SSIS) and DTS tips - Whether you plan to migrate SQL Server Data Transformation Services (DTS) packages to SQL Server Integration Services (SSIS) or run DTS packages in SQL Server 2005, this expert advice can help
- How to Dynamically and Iteratively Populate An Excel Workbook from SQL Server - SQL Server Central - In this article, I will show you how to create a new Excel output file and populate the file with discrete spreadsheets containing specific data from a database. We will Integration Services for the task
- Application Development Trends - SpringSource Offers Spring.NET 1.1 - SpringSource is offering the final release of Spring.NET 1.1. Spring.NET 1.1 supports the ASP.NET Framework for Web development. It enables dependency injection for pages, controls, modules and providers
- InfoQ: Bruce Johnson discusses Google Web Toolkit - Google Web Toolkit (GWT) tech lead Bruce Johnson discusses the design of GWT, how GWT converts Java into JavaScript, community involvement with GWT, new features in GWT 1.4, and the philosophy behind GWT.
- Book Review: Google Web Toolkit Applications - Google Web Toolkit, by Ryan Dewsbury, is an excellent book for those looking to use GWT to good advantage, covering most areas of GWT functionality in exceptional detail. It covers software engineering, server integration, custom component composition, CS
- Adobe - Developer Center : Using BEA Workshop Studio and Java to create Flex-based RIAs - In this tutorial, I walk you through the steps to creating an RIA using Java for the back-end business logic and Flex for the front-end view of the application. I will use the BEA Workshop Studio (Flex Bundle) to create a simple Java mid-tier and a simple
- smarturls-s2 - Google Code - SmartURLs-S2 is a Struts 2 plugin that provides a rich set of convention based handling for web applications. In addition, it also provides a component framework for developing web application components in separate codebases and the deploying them into a
- Building Struts 2 Apps Without XML Gluecode - In this article, we jettison XML gluecode for "convention over configuration". Using the SmartURLs plugin for Struts 2, we can autowire Action classes to page templates with search-engine-optimized URIs.
- Embedding Flickr Photos - In this article, I'll explain how to fetch data from Flickr using a proxy client library and displaying the data in a Visual Web Application page.
- Atlassian Developer Blog - How to build an Atlassian plugin - There's a single command that will download Tomcat, install Confluence or JIRA, start them up, load sample data, then install your plugin for testing. And once you've started the application once, you can just leave it running while you uninstall and rein
Related posts
Daily del.icio.us for Mar 21, 2007 through Mar 27, 2007
- Enunciate Your Web Service API - From your source code, Enunciate will build a fully-documented, interoperable web application in the form of a web application archive (war file). A consolidated, annotated XML contract is generated at compile-time. Each service class is published as a SO
- Uni-Form - One Form to Rule Them All - Uni-Form is an attempt to standardize form markup (xhtml) and css, "modularize" it, so even people with only basic knowledge of these technologies can get nice looking, well structured, highly customizable, semantic, accessible and usable forms.
- sq1-struts2 - Google Code - 'Apache Struts 2 from Square One' is a training course designed for people who want to create Java web applications, not just quickly, but correctly. Training sessions include a technology primer and a coding exercise. This Project hosts materials used by
- Scand Unveils dhtmlxCombo, Ajax Combobox with Autocomplete - Scand LLC announced the release of new Ajax-based UI component dhtmlxCombo v1.0. It's a JavaScript combobox control which provides suggestion search and automatic completion functionality to web-based applications
- Ultimate htaccess Examples | evolt.org - Here's my list of the ultimate htaccess code snippets and examples that I use all the time.
- Dr. Dobb's | Adobe Woos Web Developers With Apollo Alpha | March 19, 2007 - Apollo is something of an anti-AJAX: It brings elements of online interaction to a desktop client application. Like Flash, Apollo includes a free runtime that users will need to download to their PCs. Using Adobe's free Apollo development kit, programmers
Related posts
Daily del.icio.us for Mar 17, 2007
- SXC - Simple XML Compiler - SXC (Simple XML Compiler) allows you to created optimized parsers and writers for XML. Through a declarative API you're able to tell SXC what type of XML to expect and what actions to associate with it.
- On the Stre@m - Flex has become more accessible - The Flex module for Apache and IIS provides web-tier compilation of MXML and ActionScript files on Apache and IIS web servers.
- Assessing the Survivors of the Java IDE Wars - For enterprise development, I'd say IDEA wins out with its rich support for both J2EE and Java EE 5, followed closely by NetBeans (which also does an impressive job here), and last is Eclipse/MyEclipse (mostly due to their current lack of support for Java
- An XQuery Servlet for RESTful Data Services - This paper shows how to use XQuery for data integration, and how to expose an XQuery as a RESTful data service using a Java servlet
- Control.Tabs : Projects : LivePipe - Control.Tabs is a javascript library for creating accessible, flexible & unobtrusive tabbed interfaces in your applications or pages.
Related posts
Daily del.icio.us for Mar 05, 2007 through Mar 06, 2007
- Coding Horror: Reducing Your Website's Bandwidth Usage - What can we do to reduce a website's bandwidth usage?
- Amazon Web Services Developer Connection : Building a Struts-Based Web Application on Amazon S3 - This article provides a tutorial on integrating the Amazon S3 REST API for Java with the Struts web application framework to create a web management user interface to the Amazon Simple Storage Service (Amazon S3).
- mxGraph - JavaScript library for diagrams - mxGraph is a Javascript library that uses built-in browser capabilities to provide an interactive drawing and diagramming solution.
- AJAX Magazine: Why Can Google Not Eat Its Dogfood, While Yahoo and Microsoft Do? - What's surprising is that Google is not using GWT for its critical online service, which almost all of them are AJAX-based or have AJAX veneer: GMail, GMaps, GReader, GDocs, GSpreadsheet, GAJAX-Search, GFinance, GHomePage, … none of them use GWT! The qu
- Ten Javascript Tools Everyone Should Have - Javascript frameworks have exploded on the scene over the last few years but they're no replacement for a good toolbox: those little snippets of code you seem to include in every single project. Here's my list of 10 essential Javascript tools everyone sho
- 0xCAFEBABE - Securing Spring WS Client with XWSS - In this post, I will show you how I used XWSS to add WS-Security support to web services invocations. I used XWSS 2.0 from jwsdp-2.0. I had to add xmlsec.jar from the jwsdp-shared/lib in order for the example to work.
- Tableless forms - Another nice CSS stylesheet for styling forms without tables
- Getting Started with Google Code Hosting, Subversion, and TortoiseSVN without feeling like an Idiot « //engtech - Getting Started with Google Code Hosting, Subversion, and TortoiseSVN without feeling like an Idiot
- Starbucks' 'venti' problem - Los Angeles Times - Time and again in recent years, we've seen small, cutting-edge and quirky brands gain critical mass ? only to lose their charm and customer appeal after they engage in breakneck expansion.
- When is Scrum not Scrum? (Agile Advice) - Tobias mentions that one must insist on agile engineering practices when doing Scrum. There are two problems with this.
- Agile Thoughts » Blog Archive » When is Scrum not Scrum? - I teach what I know works and what I see as being appropriate; there are slight differences in each context of course, but there are certain practices I have found to be effective, all of which differ from standard Scrum practices
- coded ruminations - Selling Agile, a Smell? - The use of Agile must be adopted using an iterative incremental approach - a nimble approach - an Agile approach. Agile is not to be sold, it is to be used.
Related posts
Daily del.icio.us for Feb 27, 2007
- Discover the magic world of software development: GWT-Spring Integration Demistified - The purpose of this blog entry is to explain as simple as possible how GWT and Spring can be brought together and make the the most of your entreprise application.
- TagCrowd - TagCrowd is a web application for visualizing word frequencies in any user-supplied text by creating what is popularly known as a tag cloud.
- Granite Data Services Overview - Confluence - Granite Data Services aims to be a free, open source alternative to Adobe Flex 2 Data Services for J2EE application servers
- JavaScript Crossword Puzzle - Gang Of Four (GOF) Software Design Patterns Crossword This crossword tests your knowledge of software design patterns.
- RESTEasy - The Site - RESTEasy is a REST framework for Java to create RESTful web services from POJOs, EJB3 Session Beans, Message Driven Beans
- Enterprise Java Community: Google Web Toolkit Solutions: Cool & Useful Stuff - This Short Cut explores cool stuff you can do with the GWT using two applications: an address book and a Yahoo! trip viewer.
- Tutorial on Flex using freeware - If you just want to know how to compile mxml file to swf file using the SDK then this tutorial is for you
- Hello World: Why I don't get Adobe Flex - Why would an architect choose to rely on a proprietary runtime, available only from a single vendor to do stuff that can be done just as easily with standard XHTML, CSS and JavaScript?
Related posts
Daily del.icio.us for Feb 25, 2007 through Feb 26, 2007
- New Articles/Tutorials and Presentation : jMaki Has Moved into High Gear (cld.blog-city.com) - jMaki has been making great progress. It is generating alot of excitement. What is it ? jMaki is about enabling Java developers to use JavaScript in their Java based applications as either a JSP tag library or a JSF component.
- Speed Up Your Javascript Load Time | BetterExplained - Javascript is becoming increasingly popular on websites, from loading dynamic data via AJAX to adding special effects to your page… with a price
- If you like to build easy to install JPA-applications - start with TopLink essentials - Java Persistence API (JPA) allows persisting objects in Java SE and EE environments. But JPA is only the API - the SPI (service provider) ist still needed. JPA is already supported by openJPA, Hibernate and TopLink essentials (a part of the Java EE RI).
- LINUX ON DESKTOP: 13 Things to do immediately after installing Ubuntu - In this article i describe some of the things to do immediately after installing ubuntu on your machine
- Expose Your POJO-Based Domain Apps as Web Services - This article explains how to expose existing POJO-driven J2EE applications as web services using Axis2
Related posts
Daily del.icio.us for Nov 28, 2006
-
For this roundup, we examined four of the leading products, in alphabetical order: Backbase, Bindows, JackBe NQ Suite, and Tibco General Interface
-
HtmlCleaner is open-source HTML parser written in Java
-
Jen Mazzon and Sam Schillace, both formerly of Writely, and now part of the Google Docs and Spreadsheets team interviewed for a podcast (via Ajaxian)
-
The Restlet framework is composed of two main parts. First, there is the "Restlet API", a neutral API supporting the concepts of REST and a mechanism called Restlet facilitating the handling of REST uniform calls. (via dzone)
-
I had fun making a graph comparing Java, PHP, and Rails, and you might enjoy it too
-
Terracotta DSO acts like network attached memory, sharing critical parts of the JVM … all » heap across servers. This allows multiple servers to act together in a cluster.
Related posts
Life is beautiful with XMLBeans and XStream
XML creation, parsing and processing with Java has gotten so much easier with tools like XMLBeans, XStream and many other such tools. I personally love XMLBeans and XStream and I try to use them for all of my XML processing needs. While they both consume XML, they solve different problems. XMLBeans allows you to process XML by binding it to Java types using XML schema that has been compiled to generate Java types that represent schema types. XStream on the other hand allows you to serialize objects to XML and back again using special reflective secret sauce.
I've been using these tools for many years now and so you tend to forget just how useful and powerful they are and how productive they make you. Case in point – A friend of mine came to me for help. He was building an application that would allow him to resale items from Amazon on his site and he wanted to use the Amazon eCommerce Web Services to search for products programmatically and update a local database that housed his content. Having played with Amazon E-Commerce Service (ECS) before, I offered to write up a simple application that would make the Web Services call, process the results and present them back to you.
Amazon's ECS is an API that allows you to access Amazon data and functionality through a Web site or Web-enabled application. ECS follows the standard Web services model: users of the service request data through XML over HTTP (REST) or SOAP and data is returned by the service as an XML-formatted stream of text. In addition to the WSDL, ECS also provides XML schemas for validating the XML output of REST requests. So I decide to use XMLBeans to create my type system using the XML Schema provided by Amazon. XMLBeans provides you with a utility (scomp) to compile your schema into Java XMLBeans classes and metadata. To generate the Java code, use the following command:
scomp –jar amznws.jar AWSECommerceService.xsd
This generates a jar file named amznws.jar, which will contain all of the code needed to bind an XML instance to the Java types representing your schema. In my application, I use HttpClient to make my REST request and then use the XMLBeans generated jar file to process the result. Here's a snippet of code from my sample class:
[code lang="java"]
if (StringUtils.isNotBlank(searchCriteria)) {
String url = "http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&" +
"AWSAccessKeyId=*YOUR_KEY*&AssociateTag=*YOUR_TAG*&Operation=ItemSearch&SearchIndex=Books&" +
"Keywords=" + searchCriteria + "&ResponseGroup=Large,Images";
GetMethod method = new GetMethod(url);
List
try {
int statusCode = client.executeMethod(method);
if (statusCode != HttpStatus.SC_OK) {
log.error("Method failed: " + method.getStatusLine());
}
// Read the response body.
InputStream in = method.getResponseBodyAsStream();
String xmlPayload = parseISToString(in);
// Set up the validation error listener.
ArrayList validationErrors = new ArrayList();
XmlOptions validationOptions = new XmlOptions();
validationOptions.setErrorListener(validationErrors);
ItemSearchResponseDocument items = ItemSearchResponseDocument.Factory.parse(xmlPayload);
if (items != null) {
ItemsDocument.Items[] itemsArray = items.getItemSearchResponse().getItemsArray();
for (int i = 0; i < itemsArray.length; i++) {
AmazonWSObject amzn = processResults(itemsArray, i);
results.add(i, amzn);
}
// During validation, errors are added to the ArrayList
boolean isValid = items.validate(validationOptions);
// Print the errors if the XML is invalid.
if (!isValid) {
for (Object validationError : validationErrors) {
log.error(">> " + validationError + "\n");
}
}
} else {
log.error("Search returned no results");
}
} catch (HttpException e) {
log.error("Fatal protocol violation: " + e.getMessage());
} catch (IOException e) {
log.error("Fatal transport error: " + e.getMessage());
log.error(e.toString());
} catch (XmlException e) {
log.error(e.toString());
} finally {
method.releaseConnection();
}
return results;
} else {
return null;
}
[/code]
As you can tell, HttpClient makes the REST call a snap and XMLBeans makes processing the results easy as well. In total, I spent 3-4 hours getting the application working and a lot of the time was spent figuring out the data set returned from Amazon and trying to come up with a meaningful example. Here is a zip file with the IDEA project that has all the stuff needed to make this work including a simple JSP and a JUnit test class.
Links of Interest:
- Amazon Web Services
- Amazon ECS WSDL
- Amazon ECS XML Schema
- Localized editions of xsd and wsdl
- XMLBeans
- XStream
- HttpClient
Related posts