cellular 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.rspec +2 -0
- data/.travis.yml +6 -0
- data/Guardfile +6 -0
- data/README.md +39 -3
- data/Rakefile +8 -0
- data/cellular.gemspec +10 -1
- data/lib/cellular/backends.rb +1 -0
- data/lib/cellular/backends/cool_sms.rb +33 -0
- data/lib/cellular/backends/sendega.rb +19 -9
- data/lib/cellular/models/sms.rb +2 -2
- data/lib/cellular/version.rb +1 -1
- data/spec/cellular/backends/cool_sms_spec.rb +67 -0
- data/spec/cellular/backends/sendega_spec.rb +101 -0
- data/spec/cellular/configuration_spec.rb +14 -0
- data/spec/cellular/models/sms_spec.rb +68 -0
- data/spec/cellular_spec.rb +28 -0
- data/spec/fixtures/backends/cool_sms/failure.xml +6 -0
- data/spec/fixtures/backends/cool_sms/success.xml +11 -0
- data/spec/fixtures/backends/sendega/failure.xml +13 -0
- data/spec/fixtures/backends/sendega/service.wsdl +491 -0
- data/spec/fixtures/backends/sendega/success.xml +13 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/support/fixture.rb +4 -0
- metadata +139 -13
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Cellular do
|
4
|
+
|
5
|
+
describe '::config' do
|
6
|
+
it 'creates a new configuration if none exists' do
|
7
|
+
described_class.config = nil
|
8
|
+
expect(described_class.config).to be_a described_class::Configuration
|
9
|
+
end
|
10
|
+
|
11
|
+
it 'retrieves any existing configuration' do
|
12
|
+
config = described_class::Configuration.new
|
13
|
+
described_class.config = config
|
14
|
+
expect(described_class.config).to eq config
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
describe '::configure' do
|
19
|
+
it 'sets configuration options correctly' do
|
20
|
+
described_class.config = nil
|
21
|
+
described_class.configure do |config|
|
22
|
+
config.username = 'username'
|
23
|
+
end
|
24
|
+
expect(described_class.config.username).to eq 'username'
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
+
<!DOCTYPE smsc SYSTEM "https://sms.coolsmsc.dk/dtd/smsc.dtd">
|
3
|
+
<smsc version="1.0">
|
4
|
+
<status>success</status>
|
5
|
+
<message>
|
6
|
+
<to>47xxxxxxxx</to>
|
7
|
+
<status>success</status>
|
8
|
+
<msgid>XXXXXXXXX</msgid>
|
9
|
+
<result>The message was sent correctly.</result>
|
10
|
+
</message>
|
11
|
+
</smsc>
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
3
|
+
<soap:Body>
|
4
|
+
<SendResponse xmlns="http://smsc.sendega.com/Content">
|
5
|
+
<SendResult>
|
6
|
+
<MessageID>00000000-0000-0000-0000-000000000000</MessageID>
|
7
|
+
<ErrorMessage>Not validated - Username and password does not match (e)</ErrorMessage>
|
8
|
+
<ErrorNumber>9001</ErrorNumber>
|
9
|
+
<Success>false</Success>
|
10
|
+
</SendResult>
|
11
|
+
</SendResponse>
|
12
|
+
</soap:Body>
|
13
|
+
</soap:Envelope>
|
@@ -0,0 +1,491 @@
|
|
1
|
+
|
2
|
+
<?xml version="1.0" encoding="utf-8"?>
|
3
|
+
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://smsc.sendega.com/Content" xmlns:s1="http://microsoft.com/wsdl/types/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://smsc.sendega.com/Content" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
|
4
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This WebService contains all functions needed for sending all type of content, deleting queued messages and request different type of enquiries (Like positioning, hlr and dlr)</wsdl:documentation>
|
5
|
+
<wsdl:types>
|
6
|
+
<s:schema elementFormDefault="qualified" targetNamespace="http://smsc.sendega.com/Content">
|
7
|
+
<s:import namespace="http://microsoft.com/wsdl/types/" />
|
8
|
+
<s:element name="SendMms">
|
9
|
+
<s:complexType>
|
10
|
+
<s:sequence>
|
11
|
+
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
|
12
|
+
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
|
13
|
+
<s:element minOccurs="1" maxOccurs="1" name="destination" type="s:double" />
|
14
|
+
<s:element minOccurs="1" maxOccurs="1" name="pricegroup" type="s:int" />
|
15
|
+
<s:element minOccurs="0" maxOccurs="1" name="subject" type="s:string" />
|
16
|
+
<s:element minOccurs="0" maxOccurs="1" name="messageText" type="s:string" />
|
17
|
+
<s:element minOccurs="0" maxOccurs="1" name="dlrUrl" type="s:string" />
|
18
|
+
<s:element minOccurs="0" maxOccurs="1" name="extID" type="s:string" />
|
19
|
+
<s:element minOccurs="0" maxOccurs="1" name="refID" type="s:string" />
|
20
|
+
<s:element minOccurs="0" maxOccurs="1" name="imageUrl" type="s:string" />
|
21
|
+
</s:sequence>
|
22
|
+
</s:complexType>
|
23
|
+
</s:element>
|
24
|
+
<s:element name="SendMmsResponse">
|
25
|
+
<s:complexType>
|
26
|
+
<s:sequence>
|
27
|
+
<s:element minOccurs="0" maxOccurs="1" name="SendMmsResult" type="tns:SendResult" />
|
28
|
+
</s:sequence>
|
29
|
+
</s:complexType>
|
30
|
+
</s:element>
|
31
|
+
<s:complexType name="SendResult">
|
32
|
+
<s:sequence>
|
33
|
+
<s:element minOccurs="1" maxOccurs="1" name="MessageID" type="s1:guid" />
|
34
|
+
<s:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="s:string" />
|
35
|
+
<s:element minOccurs="1" maxOccurs="1" name="ErrorNumber" type="s:int" />
|
36
|
+
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
|
37
|
+
</s:sequence>
|
38
|
+
</s:complexType>
|
39
|
+
<s:element name="Send">
|
40
|
+
<s:complexType>
|
41
|
+
<s:sequence>
|
42
|
+
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
|
43
|
+
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
|
44
|
+
<s:element minOccurs="0" maxOccurs="1" name="sender" type="s:string" />
|
45
|
+
<s:element minOccurs="0" maxOccurs="1" name="destination" type="s:string" />
|
46
|
+
<s:element minOccurs="1" maxOccurs="1" name="pricegroup" type="s:int" />
|
47
|
+
<s:element minOccurs="1" maxOccurs="1" name="contentTypeID" type="s:int" />
|
48
|
+
<s:element minOccurs="0" maxOccurs="1" name="contentHeader" type="s:string" />
|
49
|
+
<s:element minOccurs="0" maxOccurs="1" name="content" type="s:string" />
|
50
|
+
<s:element minOccurs="0" maxOccurs="1" name="dlrUrl" type="s:string" />
|
51
|
+
<s:element minOccurs="1" maxOccurs="1" name="ageLimit" type="s:int" />
|
52
|
+
<s:element minOccurs="0" maxOccurs="1" name="extID" type="s:string" />
|
53
|
+
<s:element minOccurs="0" maxOccurs="1" name="sendDate" type="s:string" />
|
54
|
+
<s:element minOccurs="0" maxOccurs="1" name="refID" type="s:string" />
|
55
|
+
<s:element minOccurs="1" maxOccurs="1" name="priority" type="s:int" />
|
56
|
+
<s:element minOccurs="1" maxOccurs="1" name="gwID" type="s:int" />
|
57
|
+
<s:element minOccurs="1" maxOccurs="1" name="pid" type="s:int" />
|
58
|
+
<s:element minOccurs="1" maxOccurs="1" name="dcs" type="s:int" />
|
59
|
+
</s:sequence>
|
60
|
+
</s:complexType>
|
61
|
+
</s:element>
|
62
|
+
<s:element name="SendResponse">
|
63
|
+
<s:complexType>
|
64
|
+
<s:sequence>
|
65
|
+
<s:element minOccurs="0" maxOccurs="1" name="SendResult" type="tns:SendResult" />
|
66
|
+
</s:sequence>
|
67
|
+
</s:complexType>
|
68
|
+
</s:element>
|
69
|
+
<s:element name="RequestNumberEnquiry">
|
70
|
+
<s:complexType>
|
71
|
+
<s:sequence>
|
72
|
+
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
|
73
|
+
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
|
74
|
+
<s:element minOccurs="1" maxOccurs="1" name="msisdn" type="s:double" />
|
75
|
+
<s:element minOccurs="0" maxOccurs="1" name="returnUrl" type="s:string" />
|
76
|
+
</s:sequence>
|
77
|
+
</s:complexType>
|
78
|
+
</s:element>
|
79
|
+
<s:element name="RequestNumberEnquiryResponse">
|
80
|
+
<s:complexType>
|
81
|
+
<s:sequence>
|
82
|
+
<s:element minOccurs="0" maxOccurs="1" name="RequestNumberEnquiryResult" type="tns:NumberEnquiryResult" />
|
83
|
+
</s:sequence>
|
84
|
+
</s:complexType>
|
85
|
+
</s:element>
|
86
|
+
<s:complexType name="NumberEnquiryResult">
|
87
|
+
<s:sequence>
|
88
|
+
<s:element minOccurs="0" maxOccurs="1" name="ErrorMessage" type="s:string" />
|
89
|
+
<s:element minOccurs="1" maxOccurs="1" name="ErrorNumber" type="s:int" />
|
90
|
+
<s:element minOccurs="1" maxOccurs="1" name="Msisdn" type="s:double" />
|
91
|
+
<s:element minOccurs="0" maxOccurs="1" name="City" type="s:string" />
|
92
|
+
<s:element minOccurs="0" maxOccurs="1" name="Zip" type="s:string" />
|
93
|
+
<s:element minOccurs="0" maxOccurs="1" name="Address2" type="s:string" />
|
94
|
+
<s:element minOccurs="0" maxOccurs="1" name="Address1" type="s:string" />
|
95
|
+
<s:element minOccurs="0" maxOccurs="1" name="Surname" type="s:string" />
|
96
|
+
<s:element minOccurs="0" maxOccurs="1" name="Firstname" type="s:string" />
|
97
|
+
<s:element minOccurs="1" maxOccurs="1" name="MessageID" type="s1:guid" />
|
98
|
+
<s:element minOccurs="1" maxOccurs="1" name="Success" type="s:boolean" />
|
99
|
+
</s:sequence>
|
100
|
+
</s:complexType>
|
101
|
+
<s:element name="SetOperator">
|
102
|
+
<s:complexType>
|
103
|
+
<s:sequence>
|
104
|
+
<s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
|
105
|
+
<s:element minOccurs="0" maxOccurs="1" name="password" type="s:string" />
|
106
|
+
<s:element minOccurs="1" maxOccurs="1" name="msisdn" type="s:decimal" />
|
107
|
+
<s:element minOccurs="1" maxOccurs="1" name="mcc" type="s:short" />
|
108
|
+
<s:element minOccurs="1" maxOccurs="1" name="mnc" type="s:short" />
|
109
|
+
</s:sequence>
|
110
|
+
</s:complexType>
|
111
|
+
</s:element>
|
112
|
+
<s:element name="SetOperatorResponse">
|
113
|
+
<s:complexType />
|
114
|
+
</s:element>
|
115
|
+
<s:element name="SendResult" nillable="true" type="tns:SendResult" />
|
116
|
+
<s:element name="NumberEnquiryResult" nillable="true" type="tns:NumberEnquiryResult" />
|
117
|
+
</s:schema>
|
118
|
+
<s:schema elementFormDefault="qualified" targetNamespace="http://microsoft.com/wsdl/types/">
|
119
|
+
<s:simpleType name="guid">
|
120
|
+
<s:restriction base="s:string">
|
121
|
+
<s:pattern value="[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}" />
|
122
|
+
</s:restriction>
|
123
|
+
</s:simpleType>
|
124
|
+
</s:schema>
|
125
|
+
</wsdl:types>
|
126
|
+
<wsdl:message name="SendMmsSoapIn">
|
127
|
+
<wsdl:part name="parameters" element="tns:SendMms" />
|
128
|
+
</wsdl:message>
|
129
|
+
<wsdl:message name="SendMmsSoapOut">
|
130
|
+
<wsdl:part name="parameters" element="tns:SendMmsResponse" />
|
131
|
+
</wsdl:message>
|
132
|
+
<wsdl:message name="SendSoapIn">
|
133
|
+
<wsdl:part name="parameters" element="tns:Send" />
|
134
|
+
</wsdl:message>
|
135
|
+
<wsdl:message name="SendSoapOut">
|
136
|
+
<wsdl:part name="parameters" element="tns:SendResponse" />
|
137
|
+
</wsdl:message>
|
138
|
+
<wsdl:message name="RequestNumberEnquirySoapIn">
|
139
|
+
<wsdl:part name="parameters" element="tns:RequestNumberEnquiry" />
|
140
|
+
</wsdl:message>
|
141
|
+
<wsdl:message name="RequestNumberEnquirySoapOut">
|
142
|
+
<wsdl:part name="parameters" element="tns:RequestNumberEnquiryResponse" />
|
143
|
+
</wsdl:message>
|
144
|
+
<wsdl:message name="SetOperatorSoapIn">
|
145
|
+
<wsdl:part name="parameters" element="tns:SetOperator" />
|
146
|
+
</wsdl:message>
|
147
|
+
<wsdl:message name="SetOperatorSoapOut">
|
148
|
+
<wsdl:part name="parameters" element="tns:SetOperatorResponse" />
|
149
|
+
</wsdl:message>
|
150
|
+
<wsdl:message name="SendMmsHttpGetIn">
|
151
|
+
<wsdl:part name="username" type="s:string" />
|
152
|
+
<wsdl:part name="password" type="s:string" />
|
153
|
+
<wsdl:part name="destination" type="s:string" />
|
154
|
+
<wsdl:part name="pricegroup" type="s:string" />
|
155
|
+
<wsdl:part name="subject" type="s:string" />
|
156
|
+
<wsdl:part name="messageText" type="s:string" />
|
157
|
+
<wsdl:part name="dlrUrl" type="s:string" />
|
158
|
+
<wsdl:part name="extID" type="s:string" />
|
159
|
+
<wsdl:part name="refID" type="s:string" />
|
160
|
+
<wsdl:part name="imageUrl" type="s:string" />
|
161
|
+
</wsdl:message>
|
162
|
+
<wsdl:message name="SendMmsHttpGetOut">
|
163
|
+
<wsdl:part name="Body" element="tns:SendResult" />
|
164
|
+
</wsdl:message>
|
165
|
+
<wsdl:message name="SendHttpGetIn">
|
166
|
+
<wsdl:part name="username" type="s:string" />
|
167
|
+
<wsdl:part name="password" type="s:string" />
|
168
|
+
<wsdl:part name="sender" type="s:string" />
|
169
|
+
<wsdl:part name="destination" type="s:string" />
|
170
|
+
<wsdl:part name="pricegroup" type="s:string" />
|
171
|
+
<wsdl:part name="contentTypeID" type="s:string" />
|
172
|
+
<wsdl:part name="contentHeader" type="s:string" />
|
173
|
+
<wsdl:part name="content" type="s:string" />
|
174
|
+
<wsdl:part name="dlrUrl" type="s:string" />
|
175
|
+
<wsdl:part name="ageLimit" type="s:string" />
|
176
|
+
<wsdl:part name="extID" type="s:string" />
|
177
|
+
<wsdl:part name="sendDate" type="s:string" />
|
178
|
+
<wsdl:part name="refID" type="s:string" />
|
179
|
+
<wsdl:part name="priority" type="s:string" />
|
180
|
+
<wsdl:part name="gwID" type="s:string" />
|
181
|
+
<wsdl:part name="pid" type="s:string" />
|
182
|
+
<wsdl:part name="dcs" type="s:string" />
|
183
|
+
</wsdl:message>
|
184
|
+
<wsdl:message name="SendHttpGetOut">
|
185
|
+
<wsdl:part name="Body" element="tns:SendResult" />
|
186
|
+
</wsdl:message>
|
187
|
+
<wsdl:message name="RequestNumberEnquiryHttpGetIn">
|
188
|
+
<wsdl:part name="username" type="s:string" />
|
189
|
+
<wsdl:part name="password" type="s:string" />
|
190
|
+
<wsdl:part name="msisdn" type="s:string" />
|
191
|
+
<wsdl:part name="returnUrl" type="s:string" />
|
192
|
+
</wsdl:message>
|
193
|
+
<wsdl:message name="RequestNumberEnquiryHttpGetOut">
|
194
|
+
<wsdl:part name="Body" element="tns:NumberEnquiryResult" />
|
195
|
+
</wsdl:message>
|
196
|
+
<wsdl:message name="SetOperatorHttpGetIn">
|
197
|
+
<wsdl:part name="username" type="s:string" />
|
198
|
+
<wsdl:part name="password" type="s:string" />
|
199
|
+
<wsdl:part name="msisdn" type="s:string" />
|
200
|
+
<wsdl:part name="mcc" type="s:string" />
|
201
|
+
<wsdl:part name="mnc" type="s:string" />
|
202
|
+
</wsdl:message>
|
203
|
+
<wsdl:message name="SetOperatorHttpGetOut" />
|
204
|
+
<wsdl:message name="SendMmsHttpPostIn">
|
205
|
+
<wsdl:part name="username" type="s:string" />
|
206
|
+
<wsdl:part name="password" type="s:string" />
|
207
|
+
<wsdl:part name="destination" type="s:string" />
|
208
|
+
<wsdl:part name="pricegroup" type="s:string" />
|
209
|
+
<wsdl:part name="subject" type="s:string" />
|
210
|
+
<wsdl:part name="messageText" type="s:string" />
|
211
|
+
<wsdl:part name="dlrUrl" type="s:string" />
|
212
|
+
<wsdl:part name="extID" type="s:string" />
|
213
|
+
<wsdl:part name="refID" type="s:string" />
|
214
|
+
<wsdl:part name="imageUrl" type="s:string" />
|
215
|
+
</wsdl:message>
|
216
|
+
<wsdl:message name="SendMmsHttpPostOut">
|
217
|
+
<wsdl:part name="Body" element="tns:SendResult" />
|
218
|
+
</wsdl:message>
|
219
|
+
<wsdl:message name="SendHttpPostIn">
|
220
|
+
<wsdl:part name="username" type="s:string" />
|
221
|
+
<wsdl:part name="password" type="s:string" />
|
222
|
+
<wsdl:part name="sender" type="s:string" />
|
223
|
+
<wsdl:part name="destination" type="s:string" />
|
224
|
+
<wsdl:part name="pricegroup" type="s:string" />
|
225
|
+
<wsdl:part name="contentTypeID" type="s:string" />
|
226
|
+
<wsdl:part name="contentHeader" type="s:string" />
|
227
|
+
<wsdl:part name="content" type="s:string" />
|
228
|
+
<wsdl:part name="dlrUrl" type="s:string" />
|
229
|
+
<wsdl:part name="ageLimit" type="s:string" />
|
230
|
+
<wsdl:part name="extID" type="s:string" />
|
231
|
+
<wsdl:part name="sendDate" type="s:string" />
|
232
|
+
<wsdl:part name="refID" type="s:string" />
|
233
|
+
<wsdl:part name="priority" type="s:string" />
|
234
|
+
<wsdl:part name="gwID" type="s:string" />
|
235
|
+
<wsdl:part name="pid" type="s:string" />
|
236
|
+
<wsdl:part name="dcs" type="s:string" />
|
237
|
+
</wsdl:message>
|
238
|
+
<wsdl:message name="SendHttpPostOut">
|
239
|
+
<wsdl:part name="Body" element="tns:SendResult" />
|
240
|
+
</wsdl:message>
|
241
|
+
<wsdl:message name="RequestNumberEnquiryHttpPostIn">
|
242
|
+
<wsdl:part name="username" type="s:string" />
|
243
|
+
<wsdl:part name="password" type="s:string" />
|
244
|
+
<wsdl:part name="msisdn" type="s:string" />
|
245
|
+
<wsdl:part name="returnUrl" type="s:string" />
|
246
|
+
</wsdl:message>
|
247
|
+
<wsdl:message name="RequestNumberEnquiryHttpPostOut">
|
248
|
+
<wsdl:part name="Body" element="tns:NumberEnquiryResult" />
|
249
|
+
</wsdl:message>
|
250
|
+
<wsdl:message name="SetOperatorHttpPostIn">
|
251
|
+
<wsdl:part name="username" type="s:string" />
|
252
|
+
<wsdl:part name="password" type="s:string" />
|
253
|
+
<wsdl:part name="msisdn" type="s:string" />
|
254
|
+
<wsdl:part name="mcc" type="s:string" />
|
255
|
+
<wsdl:part name="mnc" type="s:string" />
|
256
|
+
</wsdl:message>
|
257
|
+
<wsdl:message name="SetOperatorHttpPostOut" />
|
258
|
+
<wsdl:portType name="ContentSoap">
|
259
|
+
<wsdl:operation name="SendMms">
|
260
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Use this to send an mms - Undocumented. Consult Sendega support</wsdl:documentation>
|
261
|
+
<wsdl:input message="tns:SendMmsSoapIn" />
|
262
|
+
<wsdl:output message="tns:SendMmsSoapOut" />
|
263
|
+
</wsdl:operation>
|
264
|
+
<wsdl:operation name="Send">
|
265
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Use this to send sms and mms. Consult documentation for more information about message types, parameters and limitations.</wsdl:documentation>
|
266
|
+
<wsdl:input message="tns:SendSoapIn" />
|
267
|
+
<wsdl:output message="tns:SendSoapOut" />
|
268
|
+
</wsdl:operation>
|
269
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
270
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Accepts msisdn input, full length. Only implemented for Norway</wsdl:documentation>
|
271
|
+
<wsdl:input message="tns:RequestNumberEnquirySoapIn" />
|
272
|
+
<wsdl:output message="tns:RequestNumberEnquirySoapOut" />
|
273
|
+
</wsdl:operation>
|
274
|
+
<wsdl:operation name="SetOperator">
|
275
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Used to temporary set operator to an msisdn. HLR enquiry will be run.</wsdl:documentation>
|
276
|
+
<wsdl:input message="tns:SetOperatorSoapIn" />
|
277
|
+
<wsdl:output message="tns:SetOperatorSoapOut" />
|
278
|
+
</wsdl:operation>
|
279
|
+
</wsdl:portType>
|
280
|
+
<wsdl:portType name="ContentHttpGet">
|
281
|
+
<wsdl:operation name="SendMms">
|
282
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Use this to send an mms - Undocumented. Consult Sendega support</wsdl:documentation>
|
283
|
+
<wsdl:input message="tns:SendMmsHttpGetIn" />
|
284
|
+
<wsdl:output message="tns:SendMmsHttpGetOut" />
|
285
|
+
</wsdl:operation>
|
286
|
+
<wsdl:operation name="Send">
|
287
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Use this to send sms and mms. Consult documentation for more information about message types, parameters and limitations.</wsdl:documentation>
|
288
|
+
<wsdl:input message="tns:SendHttpGetIn" />
|
289
|
+
<wsdl:output message="tns:SendHttpGetOut" />
|
290
|
+
</wsdl:operation>
|
291
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
292
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Accepts msisdn input, full length. Only implemented for Norway</wsdl:documentation>
|
293
|
+
<wsdl:input message="tns:RequestNumberEnquiryHttpGetIn" />
|
294
|
+
<wsdl:output message="tns:RequestNumberEnquiryHttpGetOut" />
|
295
|
+
</wsdl:operation>
|
296
|
+
<wsdl:operation name="SetOperator">
|
297
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Used to temporary set operator to an msisdn. HLR enquiry will be run.</wsdl:documentation>
|
298
|
+
<wsdl:input message="tns:SetOperatorHttpGetIn" />
|
299
|
+
<wsdl:output message="tns:SetOperatorHttpGetOut" />
|
300
|
+
</wsdl:operation>
|
301
|
+
</wsdl:portType>
|
302
|
+
<wsdl:portType name="ContentHttpPost">
|
303
|
+
<wsdl:operation name="SendMms">
|
304
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Use this to send an mms - Undocumented. Consult Sendega support</wsdl:documentation>
|
305
|
+
<wsdl:input message="tns:SendMmsHttpPostIn" />
|
306
|
+
<wsdl:output message="tns:SendMmsHttpPostOut" />
|
307
|
+
</wsdl:operation>
|
308
|
+
<wsdl:operation name="Send">
|
309
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Use this to send sms and mms. Consult documentation for more information about message types, parameters and limitations.</wsdl:documentation>
|
310
|
+
<wsdl:input message="tns:SendHttpPostIn" />
|
311
|
+
<wsdl:output message="tns:SendHttpPostOut" />
|
312
|
+
</wsdl:operation>
|
313
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
314
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Accepts msisdn input, full length. Only implemented for Norway</wsdl:documentation>
|
315
|
+
<wsdl:input message="tns:RequestNumberEnquiryHttpPostIn" />
|
316
|
+
<wsdl:output message="tns:RequestNumberEnquiryHttpPostOut" />
|
317
|
+
</wsdl:operation>
|
318
|
+
<wsdl:operation name="SetOperator">
|
319
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Used to temporary set operator to an msisdn. HLR enquiry will be run.</wsdl:documentation>
|
320
|
+
<wsdl:input message="tns:SetOperatorHttpPostIn" />
|
321
|
+
<wsdl:output message="tns:SetOperatorHttpPostOut" />
|
322
|
+
</wsdl:operation>
|
323
|
+
</wsdl:portType>
|
324
|
+
<wsdl:binding name="ContentSoap" type="tns:ContentSoap">
|
325
|
+
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
326
|
+
<wsdl:operation name="SendMms">
|
327
|
+
<soap:operation soapAction="http://smsc.sendega.com/Content/SendMms" style="document" />
|
328
|
+
<wsdl:input>
|
329
|
+
<soap:body use="literal" />
|
330
|
+
</wsdl:input>
|
331
|
+
<wsdl:output>
|
332
|
+
<soap:body use="literal" />
|
333
|
+
</wsdl:output>
|
334
|
+
</wsdl:operation>
|
335
|
+
<wsdl:operation name="Send">
|
336
|
+
<soap:operation soapAction="http://smsc.sendega.com/Content/Send" style="document" />
|
337
|
+
<wsdl:input>
|
338
|
+
<soap:body use="literal" />
|
339
|
+
</wsdl:input>
|
340
|
+
<wsdl:output>
|
341
|
+
<soap:body use="literal" />
|
342
|
+
</wsdl:output>
|
343
|
+
</wsdl:operation>
|
344
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
345
|
+
<soap:operation soapAction="http://smsc.sendega.com/Content/RequestNumberEnquiry" style="document" />
|
346
|
+
<wsdl:input>
|
347
|
+
<soap:body use="literal" />
|
348
|
+
</wsdl:input>
|
349
|
+
<wsdl:output>
|
350
|
+
<soap:body use="literal" />
|
351
|
+
</wsdl:output>
|
352
|
+
</wsdl:operation>
|
353
|
+
<wsdl:operation name="SetOperator">
|
354
|
+
<soap:operation soapAction="http://smsc.sendega.com/Content/SetOperator" style="document" />
|
355
|
+
<wsdl:input>
|
356
|
+
<soap:body use="literal" />
|
357
|
+
</wsdl:input>
|
358
|
+
<wsdl:output>
|
359
|
+
<soap:body use="literal" />
|
360
|
+
</wsdl:output>
|
361
|
+
</wsdl:operation>
|
362
|
+
</wsdl:binding>
|
363
|
+
<wsdl:binding name="ContentSoap12" type="tns:ContentSoap">
|
364
|
+
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
|
365
|
+
<wsdl:operation name="SendMms">
|
366
|
+
<soap12:operation soapAction="http://smsc.sendega.com/Content/SendMms" style="document" />
|
367
|
+
<wsdl:input>
|
368
|
+
<soap12:body use="literal" />
|
369
|
+
</wsdl:input>
|
370
|
+
<wsdl:output>
|
371
|
+
<soap12:body use="literal" />
|
372
|
+
</wsdl:output>
|
373
|
+
</wsdl:operation>
|
374
|
+
<wsdl:operation name="Send">
|
375
|
+
<soap12:operation soapAction="http://smsc.sendega.com/Content/Send" style="document" />
|
376
|
+
<wsdl:input>
|
377
|
+
<soap12:body use="literal" />
|
378
|
+
</wsdl:input>
|
379
|
+
<wsdl:output>
|
380
|
+
<soap12:body use="literal" />
|
381
|
+
</wsdl:output>
|
382
|
+
</wsdl:operation>
|
383
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
384
|
+
<soap12:operation soapAction="http://smsc.sendega.com/Content/RequestNumberEnquiry" style="document" />
|
385
|
+
<wsdl:input>
|
386
|
+
<soap12:body use="literal" />
|
387
|
+
</wsdl:input>
|
388
|
+
<wsdl:output>
|
389
|
+
<soap12:body use="literal" />
|
390
|
+
</wsdl:output>
|
391
|
+
</wsdl:operation>
|
392
|
+
<wsdl:operation name="SetOperator">
|
393
|
+
<soap12:operation soapAction="http://smsc.sendega.com/Content/SetOperator" style="document" />
|
394
|
+
<wsdl:input>
|
395
|
+
<soap12:body use="literal" />
|
396
|
+
</wsdl:input>
|
397
|
+
<wsdl:output>
|
398
|
+
<soap12:body use="literal" />
|
399
|
+
</wsdl:output>
|
400
|
+
</wsdl:operation>
|
401
|
+
</wsdl:binding>
|
402
|
+
<wsdl:binding name="ContentHttpGet" type="tns:ContentHttpGet">
|
403
|
+
<http:binding verb="GET" />
|
404
|
+
<wsdl:operation name="SendMms">
|
405
|
+
<http:operation location="/SendMms" />
|
406
|
+
<wsdl:input>
|
407
|
+
<http:urlEncoded />
|
408
|
+
</wsdl:input>
|
409
|
+
<wsdl:output>
|
410
|
+
<mime:mimeXml part="Body" />
|
411
|
+
</wsdl:output>
|
412
|
+
</wsdl:operation>
|
413
|
+
<wsdl:operation name="Send">
|
414
|
+
<http:operation location="/Send" />
|
415
|
+
<wsdl:input>
|
416
|
+
<http:urlEncoded />
|
417
|
+
</wsdl:input>
|
418
|
+
<wsdl:output>
|
419
|
+
<mime:mimeXml part="Body" />
|
420
|
+
</wsdl:output>
|
421
|
+
</wsdl:operation>
|
422
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
423
|
+
<http:operation location="/RequestNumberEnquiry" />
|
424
|
+
<wsdl:input>
|
425
|
+
<http:urlEncoded />
|
426
|
+
</wsdl:input>
|
427
|
+
<wsdl:output>
|
428
|
+
<mime:mimeXml part="Body" />
|
429
|
+
</wsdl:output>
|
430
|
+
</wsdl:operation>
|
431
|
+
<wsdl:operation name="SetOperator">
|
432
|
+
<http:operation location="/SetOperator" />
|
433
|
+
<wsdl:input>
|
434
|
+
<http:urlEncoded />
|
435
|
+
</wsdl:input>
|
436
|
+
<wsdl:output />
|
437
|
+
</wsdl:operation>
|
438
|
+
</wsdl:binding>
|
439
|
+
<wsdl:binding name="ContentHttpPost" type="tns:ContentHttpPost">
|
440
|
+
<http:binding verb="POST" />
|
441
|
+
<wsdl:operation name="SendMms">
|
442
|
+
<http:operation location="/SendMms" />
|
443
|
+
<wsdl:input>
|
444
|
+
<mime:content type="application/x-www-form-urlencoded" />
|
445
|
+
</wsdl:input>
|
446
|
+
<wsdl:output>
|
447
|
+
<mime:mimeXml part="Body" />
|
448
|
+
</wsdl:output>
|
449
|
+
</wsdl:operation>
|
450
|
+
<wsdl:operation name="Send">
|
451
|
+
<http:operation location="/Send" />
|
452
|
+
<wsdl:input>
|
453
|
+
<mime:content type="application/x-www-form-urlencoded" />
|
454
|
+
</wsdl:input>
|
455
|
+
<wsdl:output>
|
456
|
+
<mime:mimeXml part="Body" />
|
457
|
+
</wsdl:output>
|
458
|
+
</wsdl:operation>
|
459
|
+
<wsdl:operation name="RequestNumberEnquiry">
|
460
|
+
<http:operation location="/RequestNumberEnquiry" />
|
461
|
+
<wsdl:input>
|
462
|
+
<mime:content type="application/x-www-form-urlencoded" />
|
463
|
+
</wsdl:input>
|
464
|
+
<wsdl:output>
|
465
|
+
<mime:mimeXml part="Body" />
|
466
|
+
</wsdl:output>
|
467
|
+
</wsdl:operation>
|
468
|
+
<wsdl:operation name="SetOperator">
|
469
|
+
<http:operation location="/SetOperator" />
|
470
|
+
<wsdl:input>
|
471
|
+
<mime:content type="application/x-www-form-urlencoded" />
|
472
|
+
</wsdl:input>
|
473
|
+
<wsdl:output />
|
474
|
+
</wsdl:operation>
|
475
|
+
</wsdl:binding>
|
476
|
+
<wsdl:service name="Content">
|
477
|
+
<wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">This WebService contains all functions needed for sending all type of content, deleting queued messages and request different type of enquiries (Like positioning, hlr and dlr)</wsdl:documentation>
|
478
|
+
<wsdl:port name="ContentSoap" binding="tns:ContentSoap">
|
479
|
+
<soap:address location="https://smsc.sendega.com/Content.asmx" />
|
480
|
+
</wsdl:port>
|
481
|
+
<wsdl:port name="ContentSoap12" binding="tns:ContentSoap12">
|
482
|
+
<soap12:address location="https://smsc.sendega.com/Content.asmx" />
|
483
|
+
</wsdl:port>
|
484
|
+
<wsdl:port name="ContentHttpGet" binding="tns:ContentHttpGet">
|
485
|
+
<http:address location="https://smsc.sendega.com/Content.asmx" />
|
486
|
+
</wsdl:port>
|
487
|
+
<wsdl:port name="ContentHttpPost" binding="tns:ContentHttpPost">
|
488
|
+
<http:address location="https://smsc.sendega.com/Content.asmx" />
|
489
|
+
</wsdl:port>
|
490
|
+
</wsdl:service>
|
491
|
+
</wsdl:definitions>
|