Skip to content

Commit 06678cd

Browse files
committed
#121 Test Matchmaker SOAP
1 parent c67d7b4 commit 06678cd

File tree

5 files changed

+12
-6
lines changed

5 files changed

+12
-6
lines changed

backend/matchmaker-soap/src/main/kotlin/ru/ifmo/se/dating/matchmaker/soap/RestClientConfiguration.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@ class RestClientConfiguration {
1616

1717
ssl: RestClientSsl,
1818
): MatchmakerRestClient = RestClient.builder()
19-
.baseUrl(baseUrl)
19+
.baseUrl("$baseUrl/api")
2020
.messageConverters { it.add(MappingJackson2HttpMessageConverter()) }
21+
.apply(ssl.fromBundle("internal"))
2122
.build()
2223
.let { MatchmakerRestClient(it) }
2324
}

backend/matchmaker-soap/src/main/kotlin/ru/ifmo/se/dating/matchmaker/soap/WebServiceConfiguration.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class WebServiceConfiguration {
2020
service: ITMODatingMatchmakerPortType,
2121
): Endpoint {
2222
val endpoint = EndpointImpl(bus, service)
23-
endpoint.publish("/")
23+
endpoint.publish("/matchmaker")
2424
return endpoint
2525
}
2626
}
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
spring:
2+
config:
3+
import: application-tls.yml
24
application:
35
name: matchmaker-soap
46
ssl:
57
bundle:
68
jks:
79
internal:
810
keystore:
11+
type: PKCS12
912
location: classpath:keystore/itmo-dating-backend.p12
1013
password: ${ITMO_DATING_KEY_STORE_PASSWORD}
1114
truststore:
12-
location: ${spring.ssl.bundle.jks.internal.keystore.location}
13-
password: ${spring.ssl.bundle.jks.internal.keystore.password}
15+
type: PKCS12
16+
location: classpath:keystore/itmo-dating-backend.p12
17+
password: ${ITMO_DATING_KEY_STORE_PASSWORD}
1418
itmo-dating:
1519
matchmaker:
1620
url: https://matchmaker-0.dating.se.ifmo.ru:8080

backend/matchmaker-soap/src/main/resources/wsdl/grammy.wsdl backend/matchmaker-soap/src/main/resources/wsdl/matchmaker.wsdl

+2-2
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,8 @@
303303

304304
<wsdl:service name="ITMODatingMatchmakerService">
305305
<wsdl:port name="ITMODatingMatchmakerPort" binding="tns:ITMODatingMatchmakerSoapBinding">
306-
<soap:address location="https://localhost:8458"/>
307-
<soap:address location="http://matchmaker-soap.dating.se.ifmo.ru:8080"/>
306+
<soap:address location="https://localhost:8458/services/matchmaker"/>
307+
<soap:address location="https://matchmaker-soap.dating.se.ifmo.ru:8080/services/matchmaker"/>
308308
</wsdl:port>
309309
</wsdl:service>
310310
</wsdl:definitions>

compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ services:
187187
- "127.0.0.1:8455:8455"
188188
- "127.0.0.1:8456:8456"
189189
- "127.0.0.1:8457:8457"
190+
- "127.0.0.1:8458:8458"
190191
restart: unless-stopped
191192
node-exporter:
192193
image: prom/node-exporter:latest

0 commit comments

Comments
 (0)