This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<service name="HelloService"> | |
<description> | |
Simple implementation of a HelloService. | |
</description> | |
<parameter name="ServiceClass"> | |
HelloService | |
</parameter> | |
<operation name="sayHello"> | |
<messagereceiver class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"> | |
</messagereceiver> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
var msg="Hi Jaggery"; | |
print(msg); | |
%> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<% | |
var msg="Hi Jaggery"; | |
print(msg); | |
%> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"httpMethod": "PUT", | |
"summary": "", | |
"nickname": "", | |
"parameters": [ | |
{ | |
"name": "Payload", | |
"description": "Request Payload", | |
"paramType": "body", | |
"required": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<CORSConfiguration> | |
<!--Configuration to enable/disable sending CORS headers from the Gateway--> | |
<Enabled>true</Enabled> | |
<!--The value of the Access-Control-Allow-Origin header. Default values are | |
API Store addresses, which is needed for swagger to function.--> | |
<Access-Control-Allow-Origin>*</Access-Control-Allow-Origin> | |
<Access-Control-Allow-Methods>GET,PUT,POST,DELETE,OPTIONS</Access-Control-Allow-Methods> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Property name="UsernameJavaRegEx">^[^~!#$;%^*+={}\\|\\\\<>,\'\"]{3,30}$</Property> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<definitions xmlns="http://ws.apache.org/ns/synapse"> | |
<registry provider="org.wso2.carbon.mediation.registry.WSO2Registry"> | |
<parameter name="cachableDuration">15000</parameter> | |
</registry> | |
<proxy name="AMQPProxy" | |
transports="rabbitmq" | |
startOnLoad="true" | |
trace="disable"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.esb.rabbitmq; | |
import java.util.HashMap; | |
import java.util.Map; | |
import com.rabbitmq.client.AMQP; | |
import com.rabbitmq.client.ConnectionFactory; | |
import com.rabbitmq.client.Connection; | |
import com.rabbitmq.client.Channel; | |
public class RPCClient { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.wso2.esb.rabbitmq; | |
import java.io.IOException; | |
import com.rabbitmq.client.*; | |
public class RPCReceiver { | |
static String queue = "callback-queue"; | |
static String exchange = "callback-exchange"; | |
static String host = "localhost"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log4j.logger.org.apache.synapse.transport.vfs=DEBUG, CARBON_VFS_LOGFILE | |
log4j.additivity.org.apache.synapse.transport.vfs = false | |
log4j.appender.CARBON_VFS_LOGFILE=org.wso2.carbon.logging.appenders.CarbonDailyRollingFileAppender | |
log4j.appender.CARBON_VFS_LOGFILE.File=${carbon.home}/repository/logs/${instance.log}/wso2carbon-vfs${instance.log}.log | |
log4j.appender.CARBON_VFS_LOGFILE.Append=true | |
log4j.appender.CARBON_VFS_LOGFILE.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout | |
log4j.appender.CARBON_VFS_LOGFILE.layout.ConversionPattern=TID: [%T] [%S] [%d] %P%5p {%c} - %x %m {%c}%n | |
log4j.appender.CARBON_VFS_LOGFILE.layout.TenantPattern=%U%@%D [%T] [%S] | |
log4j.appender.CARBON_VFS_LOGFILE.threshold=DEBUG |