Skip to content
Snippets Groups Projects
Commit 57ce42c1 authored by Jan Zickermann's avatar Jan Zickermann
Browse files

Merge pull request 'OZG-6831 Use same service path as dev-nachrichtenbroker'...

Merge pull request 'OZG-6831 Use same service path as dev-nachrichtenbroker' (#14) from OZG-6831-adjust-service-path into main

Reviewed-on: https://git.ozg-sh.de/ozgcloud-lib/xta-test-server/pulls/14


Reviewed-by: default avatarLukas <lukasmalte.monnerjahn@dataport.de>
parents dd4fb858 4b47080c
No related branches found
No related tags found
No related merge requests found
...@@ -193,8 +193,8 @@ werden. ...@@ -193,8 +193,8 @@ werden.
== Nutzung der Schnittstellen == Nutzung der Schnittstellen
Nach dem Start der Testumgebung sind die Schnittstellen unter Url http://localhost:8080/services Nach dem Start der Testumgebung sind die Schnittstellen unter Url http://localhost:8080/MB_XTA-WS
bzw. https://localhost:8443/services aufrufbar, sofern die Standardkonfiguration verwendet wurde. bzw. https://localhost:8443/MB_XTA-WS aufrufbar, sofern die Standardkonfiguration verwendet wurde.
Für die unterschiedlichen Ports des XTA-Service sind unter der genannten Adresse alle Serviceadressen genannt. Für die unterschiedlichen Ports des XTA-Service sind unter der genannten Adresse alle Serviceadressen genannt.
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
...@@ -31,9 +31,4 @@ public class Application extends SpringBootServletInitializer { ...@@ -31,9 +31,4 @@ public class Application extends SpringBootServletInitializer {
SpringApplication.run(Application.class, args); SpringApplication.run(Application.class, args);
} }
@Override
protected SpringApplicationBuilder configure(final SpringApplicationBuilder builder) {
return builder.sources(Application.class);
}
} }
package de.ozgcloud.xta.test.app.config; package de.ozgcloud.xta.test.app.config;
import genv3.de.xoev.transport.xta.x211.ManagementPortType;
import genv3.de.xoev.transport.xta.x211.MsgBoxPortType;
import genv3.de.xoev.transport.xta.x211.SendPortType;
import jakarta.xml.ws.Endpoint; import jakarta.xml.ws.Endpoint;
import jakarta.xml.ws.soap.SOAPBinding; import jakarta.xml.ws.soap.SOAPBinding;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.apache.cxf.bus.spring.SpringBus; import org.apache.cxf.bus.spring.SpringBus;
import org.apache.cxf.jaxws.EndpointImpl; import org.apache.cxf.jaxws.EndpointImpl;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Configuration;
import genv3.de.xoev.transport.xta.x211.ManagementPortType;
import genv3.de.xoev.transport.xta.x211.MsgBoxPortType;
import genv3.de.xoev.transport.xta.x211.SendPortType;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
@Configuration @Configuration
@Log4j2 @Log4j2
@RequiredArgsConstructor @RequiredArgsConstructor
public class XTAServer { public class XTAServer {
private static final String PATH_PREFIX = "/XTA210";
private final SpringBus bus; private final SpringBus bus;
@Bean @Bean
Endpoint managementEndpoint(final ManagementPortType managementPortType) { Endpoint managementEndpoint(final ManagementPortType managementPortType) {
EndpointImpl endpoint = new EndpointImpl(bus, managementPortType); EndpointImpl endpoint = new EndpointImpl(bus, managementPortType);
endpoint.publish("/XTAService/ManagementPort"); endpoint.publish(PATH_PREFIX + "managementPort.svc");
configureEndpoint(endpoint); configureEndpoint(endpoint);
return endpoint; return endpoint;
} }
...@@ -30,7 +34,7 @@ public class XTAServer { ...@@ -30,7 +34,7 @@ public class XTAServer {
@Bean @Bean
Endpoint msgBoxEndpoint(final MsgBoxPortType msgBoxPortType) { Endpoint msgBoxEndpoint(final MsgBoxPortType msgBoxPortType) {
EndpointImpl endpoint = new EndpointImpl(bus, msgBoxPortType); EndpointImpl endpoint = new EndpointImpl(bus, msgBoxPortType);
endpoint.publish("/XTAService/MsgBoxPort"); endpoint.publish(PATH_PREFIX + "msgBoxPort.svc");
configureEndpoint(endpoint); configureEndpoint(endpoint);
return endpoint; return endpoint;
} }
...@@ -38,7 +42,7 @@ public class XTAServer { ...@@ -38,7 +42,7 @@ public class XTAServer {
@Bean @Bean
Endpoint sendXtaEndpoint(final SendPortType sendPortType) { Endpoint sendXtaEndpoint(final SendPortType sendPortType) {
EndpointImpl endpoint = new EndpointImpl(bus, sendPortType); EndpointImpl endpoint = new EndpointImpl(bus, sendPortType);
endpoint.publish("/XTAService/SendXtaPort"); endpoint.publish(PATH_PREFIX + "sendPort.svc");
configureEndpoint(endpoint); configureEndpoint(endpoint);
return endpoint; return endpoint;
} }
......
...@@ -6,6 +6,9 @@ spring: ...@@ -6,6 +6,9 @@ spring:
max-file-size: 10MB max-file-size: 10MB
max-request-size: 10MB max-request-size: 10MB
cxf:
path: /MB_XTA-WS
server: server:
port: 8443 port: 8443
ssl: ssl:
...@@ -27,6 +30,10 @@ server: ...@@ -27,6 +30,10 @@ server:
tomcat: tomcat:
max-http-form-post-size: 10MB max-http-form-post-size: 10MB
max-swallow-size: 10MB max-swallow-size: 10MB
app:
server:
# Extra Port, auf welchem der Server hören soll (für http)
http-port: 8080
logging: logging:
level: level:
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
</xs:annotation> </xs:annotation>
<xs:simpleContent> <xs:simpleContent>
<xs:extension base="xs:normalizedString"> <xs:extension base="xs:normalizedString">
<xs:attribute name="type" type="oscimeta:NonEmptyStringType" use="required"> <xs:attribute name="type" type="oscimeta:NonEmptyStringType">
<xs:annotation> <xs:annotation>
<xs:documentation>Orientation: ebMS Core: type, how to interpret Party-Id value, e.g.: xöv oder Justiz</xs:documentation> <xs:documentation>Orientation: ebMS Core: type, how to interpret Party-Id value, e.g.: xöv oder Justiz</xs:documentation>
</xs:annotation> </xs:annotation>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment