<!-- I JUST NEED THIS CONFIGURATION, ANYHOW I AM WRITING ALL OF THEM -->
- <rewriteSystem systemIdStartString="http://gumartinm.name/spring-ws/parent"
+ <rewriteSystem systemIdStartString="http://schemas.gumartinm.name/spring-ws/parent"
rewritePrefix="classpath:parent.xsd"/>
<!-- THE FOLLOWING ONES ARE NOT REQUIRED EVEN IF I AM WRITING THEM -->
<public
- publicId="http://gumartinm.name/spring-ws/parent"
+ publicId="http://schemas.gumartinm.name/spring-ws/parent"
uri="classpath:parent.xsd"/>
<system
- systemId="http://gumartinm.name/spring-ws/parent/parent.xsd"
+ systemId="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd"
uri="classpath:parent.xsd"/>
- <rewriteURI uriStartString="http://gumartinm.name/spring-ws/parent"
+ <rewriteURI uriStartString="http://schemas.gumartinm.name/spring-ws/parent"
rewritePrefix="classpath:parent.xsd"/>
</catalog>
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://gumartinm.name/spring-ws/example" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://gumartinm.name/spring-ws/exampleService" targetNamespace="http://gumartinm.name/spring-ws/exampleService">
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://gumartinm.name/spring-ws/example" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://gumartinm.name/spring-ws/exampleService" targetNamespace="http://gumartinm.name/spring-ws/exampleService">
<wsdl:types>
- <xsd:schema xmlns="http://gumartinm.name/spring-ws/example" xmlns:annox="http://annox.dev.java.net" xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:parent="http://gumartinm.name/spring-ws/parent" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" jaxb:extensionBindingPrefixes="inheritance annox" jaxb:version="2.1" targetNamespace="http://gumartinm.name/spring-ws/example">
+ <xsd:schema xmlns="http://gumartinm.name/spring-ws/example" xmlns:annox="http://annox.dev.java.net" xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:parent="http://schemas.gumartinm.name/spring-ws/parent" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" jaxb:extensionBindingPrefixes="inheritance annox" jaxb:version="2.1" targetNamespace="http://gumartinm.name/spring-ws/example">
<!--
When should an item be declared as an element versus when should it be defined as a type?
We are going to use catalog.cat in order to avoid downloading parent.xsd from remote server
when creating Java objects from examples.xsd.
-->
- <xsd:import namespace="http://gumartinm.name/spring-ws/parent" schemaLocation="http://gumartinm.name/spring-ws/parent/parent.xsd"/>
+ <xsd:import namespace="http://schemas.gumartinm.name/spring-ws/parent" schemaLocation="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd"/>
<!-- Spring requires the following:
<soap12:address location="http://localhost:8080/web-services-spring-cxf-server/spring-ws/example"/>
</wsdl:port>
</wsdl:service>
-</wsdl:definitions>
+</wsdl:definitions>
\ No newline at end of file
// cxf-codegen-plugin DOES generate again the objects in web-services-spring-jaxb2-globalxsds :(
// So I guess it is better to use the objects generated in this package
// than the ones from globalxsds even if they should be the same.
-import name.gumartinm.spring_ws.parent.GeneralFault;
+import name.gumartinm.schemas.spring_ws.parent.GeneralFault;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
package de.spring.webservices.client;
-import name.gumartinm.spring_ws.parent.ParentEnumType;
-
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.ws.client.core.WebServiceTemplate;
import de.spring.webservices.client.auto.ExampleResponse;
import de.spring.webservices.client.auto.Examples;
import de.spring.webservices.client.auto.ExamplesService;
+import name.gumartinm.schemas.spring_ws.parent.ParentEnumType;
/**
* Someone could write code like this one in order to send and receive
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
-import de.spring.webservices.client.auto.CustomBindingExampleFault;
import de.spring.webservices.client.auto.CustomBindingExampleResponse;
-import de.spring.webservices.client.auto.ExampleFault;
import de.spring.webservices.client.auto.ExampleResponse;
/**
/**
* @param args
- * @throws ExampleFault_Exception
- * @throws CustomBindingExampleFault_Exception
*/
public static void main(final String[] args) {
final MainTest test = new MainTest();
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://gumartinm.name/spring-ws/example"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:parent="http://gumartinm.name/spring-ws/parent"
+ xmlns:parent="http://schemas.gumartinm.name/spring-ws/parent"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
xmlns:annox="http://annox.dev.java.net"
We are going to use catalog.cat in order to avoid downloading parent.xsd from remote server
when creating Java objects from examples.xsd.
-->
- <xsd:import namespace="http://gumartinm.name/spring-ws/parent" schemaLocation="http://gumartinm.name/spring-ws/parent/parent.xsd" />
+ <xsd:import namespace="http://schemas.gumartinm.name/spring-ws/parent" schemaLocation="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd" />
<!-- Spring requires the following:
We scan the objects generated in this package.
-->
- <property name="contextPath" value="de.spring.webservices.client.auto:name.gumartinm.spring_ws.parent"/>
+ <property name="contextPath" value="de.spring.webservices.client.auto:name.gumartinm.schemas.spring_ws.parent"/>
</bean>
<?xml version="1.0" encoding="UTF-8" ?>
-<xsd:schema xmlns="http://gumartinm.name/spring-ws/parent"
+<xsd:schema xmlns="http://schemas.gumartinm.name/spring-ws/parent"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
- targetNamespace="http://gumartinm.name/spring-ws/parent">
+ targetNamespace="http://schemas.gumartinm.name/spring-ws/parent">
<!--
When should an item be declared as an element versus when should it be defined as a type?
<!-- I JUST NEED THIS CONFIGURATION, ANYHOW I AM WRITING ALL OF THEM -->
- <rewriteSystem systemIdStartString="http://gumartinm.name/spring-ws/parent"
+ <rewriteSystem systemIdStartString="http://schemas.gumartinm.name/spring-ws/parent"
rewritePrefix="classpath:parent.xsd"/>
<!-- THE FOLLOWING ONES ARE NOT REQUIRED EVEN IF I AM WRITING THEM -->
<public
- publicId="http://gumartinm.name/spring-ws/parent"
+ publicId="http://schemas.gumartinm.name/spring-ws/parent"
uri="classpath:parent.xsd"/>
<system
- systemId="http://gumartinm.name/spring-ws/parent/parent.xsd"
+ systemId="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd"
uri="classpath:parent.xsd"/>
- <rewriteURI uriStartString="http://gumartinm.name/spring-ws/parent"
+ <rewriteURI uriStartString="http://schemas.gumartinm.name/spring-ws/parent"
rewritePrefix="classpath:parent.xsd"/>
</catalog>
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://gumartinm.name/spring-ws/example"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:parent="http://gumartinm.name/spring-ws/parent"
+ xmlns:parent="http://schemas.gumartinm.name/spring-ws/parent"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
xmlns:annox="http://annox.dev.java.net"
We are going to use catalog.cat in order to avoid downloading parent.xsd from remote server
when creating Java objects from examples.xsd.
-->
- <xsd:import namespace="http://gumartinm.name/spring-ws/parent" schemaLocation="http://gumartinm.name/spring-ws/parent/parent.xsd" />
+ <xsd:import namespace="http://schemas.gumartinm.name/spring-ws/parent" schemaLocation="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd" />
<!-- Spring requires the following:
-REWRITE_SYSTEM "http://gumartinm.name/spring-ws/parent/parent.xsd" "maven:de.spring.webservices:web-services-spring-jaxb2-globalxsds:jar::!/schemas/parent.xsd"
+REWRITE_SYSTEM "http://schemas.gumartinm.name/spring-ws/parent/parent.xsd" "maven:de.spring.webservices:web-services-spring-jaxb2-globalxsds:jar::!/schemas/parent.xsd"
--
This configuration is better (it relies on namespace instead of schemaLocation) but it doesn't work
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://gumartinm.name/spring-ws/example" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://gumartinm.name/spring-ws/exampleService" targetNamespace="http://gumartinm.name/spring-ws/exampleService">
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:sch="http://gumartinm.name/spring-ws/example" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://gumartinm.name/spring-ws/exampleService" targetNamespace="http://gumartinm.name/spring-ws/exampleService">
<wsdl:types>
- <xsd:schema xmlns="http://gumartinm.name/spring-ws/example" xmlns:annox="http://annox.dev.java.net" xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:parent="http://gumartinm.name/spring-ws/parent" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" jaxb:extensionBindingPrefixes="inheritance annox" jaxb:version="2.1" targetNamespace="http://gumartinm.name/spring-ws/example">
+ <xsd:schema xmlns="http://gumartinm.name/spring-ws/example" xmlns:annox="http://annox.dev.java.net" xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance" xmlns:jaxb="http://java.sun.com/xml/ns/jaxb" xmlns:parent="http://schemas.gumartinm.name/spring-ws/parent" xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified" jaxb:extensionBindingPrefixes="inheritance annox" jaxb:version="2.1" targetNamespace="http://gumartinm.name/spring-ws/example">
<!--
When should an item be declared as an element versus when should it be defined as a type?
We are going to use catalog.cat in order to avoid downloading parent.xsd from remote server
when creating Java objects from examples.xsd.
-->
- <xsd:import namespace="http://gumartinm.name/spring-ws/parent" schemaLocation="http://gumartinm.name/spring-ws/parent/parent.xsd"/>
+ <xsd:import namespace="http://schemas.gumartinm.name/spring-ws/parent" schemaLocation="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd"/>
<!-- Spring requires the following:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://gumartinm.name/spring-ws/example"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:parent="http://gumartinm.name/spring-ws/parent"
+ xmlns:parent="http://schemas.gumartinm.name/spring-ws/parent"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
xmlns:annox="http://annox.dev.java.net"
We are going to use catalog.cat in order to avoid downloading parent.xsd from remote server
when creating Java objects from examples.xsd.
-->
- <xsd:import namespace="http://gumartinm.name/spring-ws/parent" schemaLocation="http://gumartinm.name/spring-ws/parent/parent.xsd" />
+ <xsd:import namespace="http://schemas.gumartinm.name/spring-ws/parent" schemaLocation="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd" />
<!-- Spring requires the following:
<?xml version="1.0" encoding="UTF-8" ?>
-<xsd:schema xmlns="http://gumartinm.name/spring-ws/parent"
+<xsd:schema xmlns="http://schemas.gumartinm.name/spring-ws/parent"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
- targetNamespace="http://gumartinm.name/spring-ws/parent">
+ targetNamespace="http://schemas.gumartinm.name/spring-ws/parent">
<!--
When should an item be declared as an element versus when should it be defined as a type?
-REWRITE_SYSTEM "http://gumartinm.name/spring-ws/parent/parent.xsd" "maven:de.spring.webservices:web-services-spring-jaxb2-globalxsds:jar::!/schemas/parent.xsd"
+REWRITE_SYSTEM "http://schemas.gumartinm.name/spring-ws/parent/parent.xsd" "maven:de.spring.webservices:web-services-spring-jaxb2-globalxsds:jar::!/schemas/parent.xsd"
--
This configuration is better (it relies on namespace instead of schemaLocation) but it doesn't work
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns="http://gumartinm.name/spring-ws/example"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:parent="http://gumartinm.name/spring-ws/parent"
+ xmlns:parent="http://schemas.gumartinm.name/spring-ws/parent"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:inheritance="http://jaxb2-commons.dev.java.net/basic/inheritance"
xmlns:annox="http://annox.dev.java.net"
We are going to use catalog.cat in order to avoid downloading parent.xsd from remote server
when creating Java objects from examples.xsd.
-->
- <xsd:import namespace="http://gumartinm.name/spring-ws/parent" schemaLocation="http://gumartinm.name/spring-ws/parent/parent.xsd" />
+ <xsd:import namespace="http://schemas.gumartinm.name/spring-ws/parent" schemaLocation="http://schemas.gumartinm.name/spring-ws/parent/parent.xsd" />
<!-- Spring requires the following: