Let’s assume that we want to make a SOAP call to a service at http://localhost:8080/samplewebservices/echoserviceinterface, and it requires that we add an API / Access token as a HTTP header, we can do it this way: Assumptions Endpoint: http://localhost:8080/samplewebservices/echoserviceinterface Service Interface: singz.ws.test.interface.EchoService ACCESS_TOKEN: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 (HTTP Header) Spring Application Context Configuration Custom Interceptor to add HTTP […]


SOAP uses XML to marshal data that is transported to a software application.  Since SOAP’s introduction, three SOAP encoding styles have become popular and are reliably implemented across software vendors and technology providers: SOAP Remote Procedure Call (RPC) encoding, also known as Section 5 encoding, which is defined by the SOAP 1.1 specification SOAP Remote Procedure Call Literal […]


Related articles Creating OSGi projects using Eclipse IDE and Maven (singztechmusings.wordpress.com) Working with OSGi and Maven in Eclipse IDE (singztechmusings.wordpress.com) Java download file from URL with unknown filename (stackoverflow.com) OSGi adoption by Large Scale Java-based Enterprise Software Platforms – LinkedIn Case Study (singztechmusings.wordpress.com) How to create/generate OSGi bundles from existing third-party jars? (singztechmusings.wordpress.com)


Here’s some interesting NoSQL stuff guys. It’s a presentation about how Twitter uses NoSQL for analytics by Kevin Weil (@kevinweil), Analytics Lead, Twitter. About the presentation Collecting data (Scribe) Storing and Analyzing data (Hadoop) Rapid Learning over Big Data (Pig) .. and Cassandra, HBase, FlockDB. For those who are not aware of the said technologies… […]


If you get to work with OSGi, you often have to generate OSGi bundles. Any third party jar can’t be included straightaway in your application – you need to create an OSGi bundle of the jar you want to include. Quoting from http://blog.springsource.org/2008/02/18/creating-osgi-bundles/, a bundle is a JAR file that: Contains [...] resources Contains a […]


I’ve noticed an issue in WSDLs generated by .NET 2.0 apps: some of the element(s) and their corresponding complextype definitions have same name. If you happen to generate JAX-WS portable artifacts (see below) from one such WSDL for your project (during technology migration etc. and you don’t want the consumers who use this WSDL to […]


This Week in Spring, September 20th, 2011 Got another mention in this post by Josh Long in SpringSource News & Announcements Singaram Subramanian has written up a blog on how he was tasked with solving an email integration problem and decided to use Spring Integration. The blog details the code and approach and even talks […]


Assume there’s a file @ /home/user/testmsg.txt If you want to change the file timestamp to 09/20/2011 08:30 using touch command, here’s how you can do it: From Wikipedia, touch is a standard Unix program used to change a file‘s access and modification timestamps. It is also used to create a new empty file. Related articles […]


I’ve recently had a requirement to do some Enterprise Integration stuff and tried out Spring Integration for it. I’ve found it to be simple, easy-to-use, and flexible. So, I thought of sharing it with you all. Here’s the requirement: A daemon program should look for XML files in a particular directory every ‘n’ minutes and […]

Follow

Get every new post delivered to your Inbox.

Join 26 other followers