aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-10 08:55:23 +0200
committerChristof Rabensteiner <christof.rabensteiner@iaik.tugraz.at>2019-05-10 08:55:23 +0200
commit8217b17db25229ae57ab50b350a30c4f1e0ad87f (patch)
tree4a5ac8281e9e08e9964f3e8df7cdf37407812dd6
parenta95679d191c2ac9cd4d61a5848240163e1676495 (diff)
downloadmoa-zs-8217b17db25229ae57ab50b350a30c4f1e0ad87f.tar.gz
moa-zs-8217b17db25229ae57ab50b350a30c4f1e0ad87f.tar.bz2
moa-zs-8217b17db25229ae57ab50b350a30c4f1e0ad87f.zip
Fix Hardcoded WSDL locations
-rw-r--r--pom.xml6
-rw-r--r--src/main/java/at/gv/egiz/moazs/config/App2MzsServiceConfig.java9
2 files changed, 10 insertions, 5 deletions
diff --git a/pom.xml b/pom.xml
index cddc6c9..64e3493 100644
--- a/pom.xml
+++ b/pom.xml
@@ -141,15 +141,15 @@
<wsdlOptions>
<wsdlOption>
<wsdl>${project.basedir}/src/main/resources/mzs/app2mzs.wsdl</wsdl>
- <wsdlLocation>classpath:wsdl/app2mzs.wsdl</wsdlLocation>
+ <wsdlLocation>classpath:mzs/app2mzs.wsdl</wsdlLocation>
</wsdlOption>
<wsdlOption>
<wsdl>${project.basedir}/src/main/resources/zusemsg/app2zuse_p2.wsdl</wsdl>
- <wsdlLocation>classpath:wsdl/app2zuse_p2.wsdl</wsdlLocation>
+ <wsdlLocation>classpath:zusemsg/app2zuse_p2.wsdl</wsdlLocation>
</wsdlOption>
<wsdlOption>
<wsdl>${project.basedir}/src/main/resources/zusetnvz/zuse2tnvz_p2.wsdl</wsdl>
- <wsdlLocation>classpath:wsdl/app2zuse_p2.wsdl</wsdlLocation>
+ <wsdlLocation>classpath:zusetnvz/app2zuse_p2.wsdl</wsdlLocation>
</wsdlOption>
</wsdlOptions>
</configuration>
diff --git a/src/main/java/at/gv/egiz/moazs/config/App2MzsServiceConfig.java b/src/main/java/at/gv/egiz/moazs/config/App2MzsServiceConfig.java
index ab097cb..74b0305 100644
--- a/src/main/java/at/gv/egiz/moazs/config/App2MzsServiceConfig.java
+++ b/src/main/java/at/gv/egiz/moazs/config/App2MzsServiceConfig.java
@@ -4,11 +4,13 @@ import at.gv.egiz.moazs.App2MzsService;
import at.gv.zustellung.app2mzs.xsd.App2Mzs;
import org.apache.cxf.Bus;
import org.apache.cxf.jaxws.EndpointImpl;
+import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.xml.ws.Endpoint;
+import java.net.URL;
@Configuration
public class App2MzsServiceConfig {
@@ -19,12 +21,15 @@ public class App2MzsServiceConfig {
@Autowired
private App2MzsService app2mzsService;
+ @Autowired
+ private App2Mzs app2mzs;
+
@Bean
public Endpoint endpoint() {
EndpointImpl endpoint = new EndpointImpl(bus, app2mzsService);
endpoint.setAddress("/");
- endpoint.setServiceName(app2mzs().getServiceName());
- endpoint.setWsdlLocation("src/main/resources/mzs/app2mzs.wsdl");
+ endpoint.setServiceName(app2mzs.getServiceName());
+ endpoint.setWsdlLocation(app2mzs.getWSDLDocumentLocation().toString());
endpoint.publish();
return endpoint;
}