Showing posts with label Registry. Show all posts
Showing posts with label Registry. Show all posts

Monday, February 18, 2013

Retrieve values from a xml in config registry with WSO ESB

Configuration given below cane used for this.

<proxy xmlns="http://ws.apache.org/ns/synapse" name="test123" transports="https,http" statistics="disable" trace="disable" startOnLoad="true">
   <target>
      <inSequence>
         <property name="test" expression="get-property('registry','conf:/test.xml')" scope="default" type="OM" />
         <log level="custom">
            <property name="test.b" expression="$ctx:test//b" />
         </log>
      </inSequence>
      <outSequence>
         <send />
      </outSequence>
      <endpoint>
         <address uri="http://localhost:8280/services/Version" />
      </endpoint>
   </target>
   <publishWSDL uri="http://localhost:8280/services/Version?wsdl" />
   <policy key="conf:/repository/axis2/service-groups/test123/services/test123/policies/61afea637b914422e1753dde4e88864cc199fecbb66084e2" />
   <policy key="conf:/repository/axis2/service-groups/test123/services/test123/policies/urn:version" />
</proxy>
                              
Please create a xml file in the config registry with following content.

<a>Hello<b>WSO2</b></a>



You will see the following log

[2013-02-18 23:33:35,690] INFO - LogMediator test.b = WSO2 

Friday, December 7, 2012

Proxy Services with WSO2 ESB - ( From Registry )

Recently , i was looking into proxy services from registry and found a blog post about it. So i decided to share it in my blog

WSO2 ESB proxy from registry

If you are new to WSO2 ESB it is recommended to refer following links

Proxy Services with WSO2 ESB
Proxy Services with WSO2 ESB / Monitoring with TCPMon
WSO2 ESB Proxy Services with Custom URLs

Using Zotero for academic writing