Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop send sms #173

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,30 @@
<name>com.wso2telco.dep.hub.smsmessagingapi.capp</name>
<description>com.wso2telco.dep.hub.smsmessagingapi.capp</description>
<properties>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.splitter.fault.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.splitter.fault.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.gather.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.gather.Sequence>
<com.wso2telco.dep.hub.endpoint_._com.wso2telco.dep.hub.smsmessagingapi.dummy.Endpoint>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.endpoint_._com.wso2telco.dep.hub.smsmessagingapi.dummy.Endpoint>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.notification.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.notification.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.fault.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.fault.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.splitter.fault.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.splitter.fault.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.stop.outbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.stop.outbound.subscriptions.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.gather.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.gather.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.notification.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.notification.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.splitter.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.splitter.Sequence>
<artifact.types>jaggery/app=zip,synapse/priority-executor=xml,synapse/inbound-endpoint=xml,service/rule=aar,synapse/message-store=xml,event/stream=json,service/meta=xml,synapse/proxy-service=xml,bpel/workflow=zip,synapse/sequence=xml,synapse/endpointTemplate=xml,carbon/application=car,wso2/gadget=dar,synapse/api=xml,synapse/event-source=xml,synapse/message-processors=xml,event/receiver=xml,lib/dataservice/validator=jar,synapse/template=xml,synapse/endpoint=xml,lib/carbon/ui=jar,lib/synapse/mediator=jar,event/publisher=xml,synapse/local-entry=xml,synapse/task=xml,webapp/jaxws=war,registry/resource=zip,synapse/configuration=xml,service/axis2=aar,synapse/lib=zip,synapse/sequenceTemplate=xml,event/execution-plan=siddhiql,service/dataservice=dbs,web/application=war,lib/library/bundle=jar</artifact.types>
<com.wso2telco.dep.hub.endpoint_._com.wso2telco.dep.hub.smsmessagingapi.dummy.Endpoint>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.endpoint_._com.wso2telco.dep.hub.smsmessagingapi.dummy.Endpoint>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.Sequence>
<com.wso2telco.dep.hub.endpoint_._com.wso2telco.dep.hub.smsmessagingapi.dummy.Endpoint>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.endpoint_._com.wso2telco.dep.hub.smsmessagingapi.dummy.Endpoint>
<com.wso2telco.dep.hub.api_._smsmessagingAPI>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.api_._smsmessagingAPI>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.gather.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.gather.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.gather.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.gather.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.notification.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.notification.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.splitter.fault.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.splitter.fault.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.splitter.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.splitter.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.stop.outbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.stop.outbound.subscriptions.Sequence>
<com.wso2telco.dep.hub.resource_._smsmessagingConfig>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.resource_._smsmessagingConfig>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.splitter.fault.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.splitter.fault.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.Sequence>
<artifact.types>jaggery/app=zip,synapse/priority-executor=xml,synapse/inbound-endpoint=xml,service/rule=aar,synapse/message-store=xml,event/stream=json,service/meta=xml,synapse/proxy-service=xml,bpel/workflow=zip,synapse/sequence=xml,synapse/endpointTemplate=xml,carbon/application=car,wso2/gadget=dar,synapse/api=xml,synapse/event-source=xml,synapse/message-processors=xml,event/receiver=xml,lib/dataservice/validator=jar,synapse/template=xml,synapse/endpoint=xml,lib/carbon/ui=jar,lib/synapse/mediator=jar,event/publisher=xml,synapse/local-entry=xml,synapse/task=xml,webapp/jaxws=war,registry/resource=zip,synapse/configuration=xml,service/axis2=aar,synapse/lib=zip,synapse/sequenceTemplate=xml,event/execution-plan=siddhiql,service/dataservice=dbs,web/application=war,lib/library/bundle=jar</artifact.types>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.gather.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.gather.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.splitter.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.splitter.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.splitter.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.subscriptions.splitter.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.stop.inbound.subscriptions.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.stop.inbound.subscriptions.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.gather.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.subscriptions.gather.Sequence>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.notification.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.notification.Sequence>
<com.wso2telco.dep.hub.api_._smsmessagingAPI>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.api_._smsmessagingAPI>
<com.wso2telco.dep.hub.resource_._smsmessagingConfig>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.resource_._smsmessagingConfig>
<com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.Sequence>capp/EnterpriseServiceBus</com.wso2telco.dep.hub.sequence_._com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.Sequence>
</properties>
<dependencies>
<dependency>
Expand Down Expand Up @@ -145,6 +148,30 @@
<version>3.0.0-SNAPSHOT</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>com.wso2telco.dep.hub.sequence</groupId>
<artifactId>com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.Sequence</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>com.wso2telco.dep.hub.sequence</groupId>
<artifactId>com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.gather.Sequence</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>com.wso2telco.dep.hub.sequence</groupId>
<artifactId>com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.Sequence</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>xml</type>
</dependency>
<dependency>
<groupId>com.wso2telco.dep.hub.sequence</groupId>
<artifactId>com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.fault.Sequence</artifactId>
<version>3.0.0-SNAPSHOT</version>
<type>xml</type>
</dependency>
</dependencies>
<repositories>
<repository>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,16 @@
<artifact name="com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.gather.Sequence" groupId="com.wso2telco.dep.hub.sequence" version="3.0.0-SNAPSHOT" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/com.wso2telco.dep.hub.smsmessagingapi.handle.inbound.registrations.gather.Sequence.xml</file>
</artifact>
<artifact name="com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.Sequence" groupId="com.wso2telco.dep.hub.sequence" version="3.0.0-SNAPSHOT" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.Sequence.xml</file>
</artifact>
<artifact name="com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.Sequence" groupId="com.wso2telco.dep.hub.sequence" version="3.0.0-SNAPSHOT" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.Sequence.xml</file>
</artifact>
<artifact name="com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.fault.Sequence" groupId="com.wso2telco.dep.hub.sequence" version="3.0.0-SNAPSHOT" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.splitter.fault.Sequence.xml</file>
</artifact>
<artifact name="com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.gather.Sequence" groupId="com.wso2telco.dep.hub.sequence" version="3.0.0-SNAPSHOT" type="synapse/sequence" serverRole="EnterpriseServiceBus">
<file>src/main/synapse-config/sequences/com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.gather.Sequence.xml</file>
</artifact>
</artifacts>
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<api context="/smsmessaging/v1" name="smsmessagingAPI" xmlns="http://ws.apache.org/ns/synapse">
<resource methods="POST" protocol="http" uri-template="/outbound/requests">
<inSequence>
<!-- SMS : Send SMS -->
<sequence key="com.wso2telco.dep.hub.smsmessagingapi.handle.outbound.requests.Sequence"/>
</inSequence>
<outSequence/>
<faultSequence>
<sequence key="com.wso2telco.dep.common.response.unexpectedError.Sequence"/>
</faultSequence>
</resource>
<resource methods="POST" protocol="http" uri-template="/inbound/registrations">
<inSequence>
<!-- SMS : Receiving SMS -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@
<class name="org.wso2telco.dep.nashornmediator.NashornMediator">
<property name="script" value="
var payload = mc.getPayloadJSON();
payload.subscription.clientCorrelator = mc.getProperty("uniqueClientCorrelator");
payload.subscription.callbackReference.notifyURL = mc.getProperty("generatedNotifyURL");
payload.subscription.clientCorrelator = mc.getProperty('uniqueClientCorrelator');
payload.subscription.callbackReference.notifyURL = mc.getProperty('generatedNotifyURL');
mc.setPayloadJSON(payload);
"/>
</class>
Expand Down
Loading