Coder Tech Blog

Compiling my IT searches….

  • Programming
    • Android
    • WordPress
  • ESB’s
    • WSO2
  • IDE’s
    • Netbeans
  • Tools
    • Notepad++
  • Windows

WSO2 – How to log in Javascript mediator

If you’re working with a Javascript script mediator in WSO2 and wan’t to log to the console / logfile for debugging you just need to do the following: <script language=”js”> var log = mc.getServiceLog(); log.info(“Logging inside Script Mediator”); </script>

Posted in WSO2 Leave a comment

Solving: SQLServerDriver cannot be found by jdbc-pool_7.0.34.wso2v2 Error

When creating a new Data Service in WSO2 to connect with Microsft SQL Server, if you don’t import the Microsoft SQL driver jar to WSO2 you’ll get the following error when testing the connection: Driver class com.microsoft.jdbc.sqlserver.SQLServerDriver can not be loaded or the following when trying to execute a dblookup: DBLookupMediator SQL Exception occurred while executing statement […]

Posted in WSO2 Leave a comment

WSO2 – How to compare two properties values

In order to compare the value of two properties in WSO2 ESB, for example to do a filter operation based in the result of a comparision, you can do as follows: Note: First filter use a regex to check if the “propertyCompare” is true. The second one uses xPath. <property name=”propertyA” value=”‘codertechblog.com'”/> <property name=”propertyB” value=”‘codertechblog.com'”/> <property […]

Posted in WSO2 Leave a comment

WSO2 – How to change payload soap envelope namespace

Default soap envelope namespace in WSO2 is xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”, as in the payload below: <soap:Envelope xmlns:soap=”http://schemas.xmlsoap.org/soap/envelope/”> <soap:Body> ………. </soap:Body> </soap:Envelope> Sometimes is useful to be able to change the payload envelope namespace or namespace prefix, for example, when you want to use soap 1.2 that requires it to be xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” In order to change the namespace […]

Posted in ESB's, WSO2 Leave a comment

    Categories

    • Android
    • Electrical
    • ESB's
    • HP
    • IDE's
    • Motorhome Repairs
    • Netbeans
    • Notebook Recovery
    • Notepad++
    • Programming
    • Toshiba
    • Uncategorized
    • Windows
    • WordPress
    • WSO2

    Recent Posts

    • Electroblock EBL 263-3 Electrical Schematic
    • WSO2 – How to log in Javascript mediator
    • Solving: SQLServerDriver cannot be found by jdbc-pool_7.0.34.wso2v2 Error
    • WinMerge not working in Windows 10
    • HP ZBook 14 G2 Mobile Workstation – How to restore Windows from the Recovery HDD

    WordPress Theme Custom Community 2 developed by Macho Themes