From 51ad882f6d1138c3099ae59bd59ed2ed97d313c9 Mon Sep 17 00:00:00 2001 From: Gustavo Martin Morcuende Date: Mon, 1 Jun 2015 01:38:50 +0200 Subject: [PATCH] using catalog.cat --- README.md | 2 - web-services-spring-server/pom.xml | 17 +++++- .../build-resources/bindings/custombinding.xjb | 51 ++++++++++++++++ .../src/main/build-resources/catalogs/catalog.cat | 17 ++++++ .../src/main/resources/bindings/custombinding.xjb | 49 --------------- .../src/main/resources/examples.xsd | 70 ++++++++++++++++++++++ .../resources/spring-configuration/ws/soap-ws.xml | 4 +- .../src/main/resources/xsd/examples.xsd | 62 ------------------- 8 files changed, 155 insertions(+), 117 deletions(-) create mode 100644 web-services-spring-server/src/main/build-resources/bindings/custombinding.xjb create mode 100644 web-services-spring-server/src/main/build-resources/catalogs/catalog.cat delete mode 100644 web-services-spring-server/src/main/resources/bindings/custombinding.xjb create mode 100644 web-services-spring-server/src/main/resources/examples.xsd delete mode 100644 web-services-spring-server/src/main/resources/xsd/examples.xsd diff --git a/README.md b/README.md index a9896b3..235ed8a 100644 --- a/README.md +++ b/README.md @@ -13,8 +13,6 @@ mvn clean install -Dmaven.test.skip=true TODO: custom bindings when creating Java code from wsdl. TODO: using Jetty instead of Tomcat TODO: logging Spring information -TODO: test catalog.cat support for Apache CXF (searching in classpath) See: http://labs.bsb.com/2011/01/usage-of-an-xml-catalog-in-the-xmlbeans-cxf-integration/ -and http://cxf.apache.org/cxf-xjc-plugin.html TODO: integration tests (client and server) For debugging: export MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y" diff --git a/web-services-spring-server/pom.xml b/web-services-spring-server/pom.xml index 9d1b91a..4909a82 100644 --- a/web-services-spring-server/pom.xml +++ b/web-services-spring-server/pom.xml @@ -14,10 +14,12 @@ 9.3.0.RC0 - src/main/resources/xsd + src/main/resources ${basedir}/target/generated-sources/src/main/java de.spring.webservices.auto - src/main/resources/bindings + src/main/build-resources/bindings + + ${basedir}/src/main/build-resources/catalogs @@ -34,6 +36,15 @@ jdom + + + + de.spring.webservices + web-services-spring-globalxsds + ${project.version} + + + wsdl4j @@ -96,6 +107,7 @@ cxf-xjc-plugin 3.0.3 + true org.apache.cxf.xjcplugins:cxf-xjc-dv:3.0.3 @@ -114,6 +126,7 @@ true ${project.xsd.schemas.source.path}/examples.xsd ${project.bindings.path}/custombinding.xjb + ${project.catalogs.path}/catalog.cat ${project.xsd.schemas.package.name} -Xinheritance diff --git a/web-services-spring-server/src/main/build-resources/bindings/custombinding.xjb b/web-services-spring-server/src/main/build-resources/bindings/custombinding.xjb new file mode 100644 index 0000000..a1430d5 --- /dev/null +++ b/web-services-spring-server/src/main/build-resources/bindings/custombinding.xjb @@ -0,0 +1,51 @@ + + + + + + + + + de.spring.webservices.operations.Request + @java.lang.SuppressWarnings({"unchecked","rawtypes"}) + + + + + + + de.spring.webservices.operations.Response + @java.lang.SuppressWarnings({"unchecked","rawtypes"}) + + + + + + + + + + + diff --git a/web-services-spring-server/src/main/build-resources/catalogs/catalog.cat b/web-services-spring-server/src/main/build-resources/catalogs/catalog.cat new file mode 100644 index 0000000..2709d38 --- /dev/null +++ b/web-services-spring-server/src/main/build-resources/catalogs/catalog.cat @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/web-services-spring-server/src/main/resources/bindings/custombinding.xjb b/web-services-spring-server/src/main/resources/bindings/custombinding.xjb deleted file mode 100644 index 726784a..0000000 --- a/web-services-spring-server/src/main/resources/bindings/custombinding.xjb +++ /dev/null @@ -1,49 +0,0 @@ - - - - - - - - - de.spring.webservices.operations.Request - @java.lang.SuppressWarnings({"unchecked","rawtypes"}) - - - - - - - de.spring.webservices.operations.Response - @java.lang.SuppressWarnings({"unchecked","rawtypes"}) - - - - - - - - - - - diff --git a/web-services-spring-server/src/main/resources/examples.xsd b/web-services-spring-server/src/main/resources/examples.xsd new file mode 100644 index 0000000..fa85466 --- /dev/null +++ b/web-services-spring-server/src/main/resources/examples.xsd @@ -0,0 +1,70 @@ + + + + + + + + + + + + + @java.lang.SuppressWarnings({"unchecked","rawtypes"}) + de.spring.webservices.operations.Request + + + + + + + + + + + + de.spring.webservices.operations.Response + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/web-services-spring-server/src/main/resources/spring-configuration/ws/soap-ws.xml b/web-services-spring-server/src/main/resources/spring-configuration/ws/soap-ws.xml index 0f7854c..cdf79a5 100644 --- a/web-services-spring-server/src/main/resources/spring-configuration/ws/soap-ws.xml +++ b/web-services-spring-server/src/main/resources/spring-configuration/ws/soap-ws.xml @@ -41,7 +41,7 @@ createSoap12Binding="true" createSoap11Binding="false" locationUri="/spring-ws/example" targetNamespace="http://gumartinm.name/spring-ws/example"> - + @@ -71,7 +71,7 @@ --> - + diff --git a/web-services-spring-server/src/main/resources/xsd/examples.xsd b/web-services-spring-server/src/main/resources/xsd/examples.xsd deleted file mode 100644 index ec642a9..0000000 --- a/web-services-spring-server/src/main/resources/xsd/examples.xsd +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - @java.lang.SuppressWarnings({"unchecked","rawtypes"}) - de.spring.webservices.operations.Request - - - - - - - - - - - - de.spring.webservices.operations.Response - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -- 2.1.4