Posts

Showing posts from February, 2015

Remove duplicate XML elements using XSLT

Today I faced an issue where I am receiving a XML message with duplicate elements. So I wanted to remove those duplicate elements using some condition . For that I came up with a XSLT which does that. My XML input: <OurGuestsCollection  xmlns="http://ws.wso2.org/dataservice">    <OurGuests>       <id>2</id>       <firstname>Sample</firstname>       <lastname>Sample</lastname>       <email>One</email>       <reg_date>2015-02-18T13:59:43.000+05:30</reg_date>    </OurGuests>    <OurGuests>       <id>3</id>       <firstname>Sample1</firstname>       <lastname>Sample1</lastname>       <email>One</email>       <reg_date>2015-02-18T14:13:18.000+05:30</reg_date>    </OurGuests>    <OurGuests>       <id>4</id>       <firstname>Sample1</firstname>       <lastname>Sample1</lastname

Writing a Create API Executor for API.RXT

One of the use cases of the WSO2 Governance Registry is storing metadata information of different artifacts. In an Organization, there can be different metadata of different artifacts such their REST APIs, SOAP Services etc. In such a scenario you can use API and Service RXT which are available in the WSO2 Governance Registry to store metadata information. With the use of API metadata which is stored in the WSO2 Governance Registry, you can publish APIs into WSO2 API Manager without accessing the web interface of the API Manager. This API creation is handled through lifecycle executor of the WSO2 Governance Registry. Once lifecycle state of the api publisher is reached, the executor will invoke Publisher REST API of the WSO2 API Manager and create the API. "Integrating with WSO2 API Manager" documentation explains about how to create an API using SOAP service meta data information. If you want to create an API using the REST API metadata information available in the WS