Skip to main content

Posts

Showing posts with the label Web services

Securing Web Services with WSO2 ESB - Securing a proxy service with basic authentication (Username Token)

Web Services Security , or to be more precise, SOAP message security, identifies and provides solutions for general computer security threats as well as threats unique to Web services. WSO2 Carbon supports WS Security, WS-Policy and WS-Security Policy specifications. These specifications define a behavioral model for Web services. A requirement for one Web service may not be valid for another. Thus, defining service-specific requirements might be necessary. The WSO2 SOA platform provides important security features to your service. By default the security features are  disabled . Securing a proxy service with basic authentication (Username Token) Pre-requisites  – Download the latest stable release of WSO2 ESB from here. Step 1 – Start WSO2 ESB server Step 2 – Create a Proxy Service. (We will use the Echo service shipped with WSO2 ESB here) <proxy xmlns=” http://ws.apache.org/ns/synapse&#8221 ; name=”PoxSecurityProxy” transports=”https” statistics=”dis...

WSO2 ESB quick reference - part III

WSO2 ESB uses a set of pre defined properties which can be used to configure the server with heterogeneous integration requirements. This blog post describes some of the most useful properties and their usage. <property name= " PRESERVE_WS_ADDRESSING "   value= "true" /> By default, the ESB adds a new set of WS-Addressing headers to the messages forwarded from the ESB. If this property is set to "true" on a message, the ESB will forward it without altering its existing WS-Addressing headers. <property name= " RESPONSE " value= "true"/> Once this property is set to 'true' on a message, the ESB will start treating it as a response message. It is generally used to route a request message back to its source as the response. <property name= " OUT_ONLY " value= "true" /> Set this property to "true" on a message to indicate that no response message is expected for it ...

Learning Apache Axis2 from level zero

Well I guess you have come to this page with the intention of learning something about Apache Axis2. If you search for google the word "Apache Axis2", you may get millions of pages. But most of them have some pre-requisites before teaching you about Apache Axis2. My intention with this post is to share my experience about learning Apache Axis2 from level zero. If you have used a computer and know how it works, that would be enough. Since you have used computers, you might know what it does. It does some computing task for you. All the processing, memory, power, data all the components are within a single place and that is what you called your personal computer. That is enough for processing your word document, print your photograph and many more personal things. Let's think about something bigger than your computing need. Think about a bank doing day to day transactions on their hundreds of branches and each one of them are connected with each other. In this scenario,...

Simple tutorial about complex OSGI framework

What is OSGI? If you are in the software industry, you might have heard the term OSGI. But most probably you might not heard about this. That does not mean that you don't need to know about it. OK. What really OSGI is? OSGI stands for Open Services Gateway Initiative. But that does not tell about it (That's the way most of the definitions are :D). It is a  Dynamic Module System for Java, which defines an architecture for modular application development. It allows you to break your application into multiple modules and thus more easily manage cross-dependencies between them.  Why you need OSGI? From a developer's perspective, OSGi offers the following advantages: You can install, uninstall, start, and stop different modules of your application dynamically without restarting the container. Your application can have more than one version of a particular module running at th...

Web services tutorial for beginners

Enterprise IT is becoming the masterpiece of the information era. Your systems are distributed everywhere, both geographically and system wise. Web services are the super hero who can save you in this context. What are Web services? A web service is a piece of business logic, ( ex: java program) located somewhere on the Internet, (ex: servlet container like Apache Tomcat) that is accessible through standard-based Internet protocols such as HTTP or SMTP. (ex: SOAP) Why Web services? The promise of web services is to enable a distributed environment in which any number of applications, or application components, can inter-operate seamlessly among and between organizations in a platform-neutral, language-neutral fashion. What are the features of Web services? XML-based By using XML as the data representation layer for all web services protocols and technologies that are created, these technologies can be inter-operable at their core level....