Skip to content

Instantly share code, notes, and snippets.

<datasource>
<name>WSO2_CARBON_DB</name>
<description>The datasource used for registry and user manager</description>
<jndiConfig>
<name>jdbc/WSO2CarbonDB</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:jtds:sqlserver://localhost:1433/testDB;integratedSecurity=true;</url>
<driverClassName>net.sourceforge.jtds.jdbc.Driver</driverClassName>
<DeploymentSynchronizer>
        <Enabled>true</Enabled>
        <AutoCommit>true</AutoCommit>
        <AutoCheckout>true</AutoCheckout>
        <RepositoryType>svn</RepositoryType>
<DeploymentSynchronizer>
        <Enabled>true</Enabled>
        <AutoCommit>false</AutoCommit>
        <AutoCheckout>true</AutoCheckout>
        <RepositoryType>svn</RepositoryType>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="testProxy"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<log level="full"/>
<log>
<proxy name="IpFilteringProxy"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<log level="full">
<property name="TO Property" expression="get-property('axis2','REMOTE_ADDR')"/>
</log>
<proxy name="StockQuoteProxy"
transports="https http"
startOnLoad="true"
trace="disable">
<description/>
<target>
<inSequence>
<sequence key="delivery_seq"/>
</inSequence>
<outSequence>
<ns:return>
value1
</ns:return>
<ns:return>
value2
</ns:return>
<ns:return>
value3
public workOrderResponse getWorkOrders(String version){
System.out.println( "City Works Service,get workorders ");
return new workOrderResponse();
}
public class workOrderResponse {
String workOrderId;
String name;
String address;
public workOrderResponse (){
workOrderId= "A1234";
name= "WSO2 Inc";
address= "787 Castro Street, Mountain View, CA 94041";
<ns:return xmlns:ax21="http://sample.wso2.com/xsd">
<ax21:workorderid>A1234</ax21:workorderid>
<ax21:name>WSO2 Inc</ax21:name>
<ax21:address>787 Castro Street, Mountain View, CA 94041</ax21:address>
</ns:return>