Is there a way with code-first approach to override this? 

 

The problem is, JAXB overrides it correctly for its types using
package-info.java, but my main service is not using that.

 

So my wsdl has two schema's:

<xsd:schema attributeFormDefault="qualified"
elementFormDefault="qualified" targetNamespace="http://www.cronos.be/...
">

            TYPES RELATED TO SERVICE GO HERE [javax.jws annotations]

</xsd:schema>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.cronos.be/fedict/search/ws"; version="1.0">

            JAXB GENERATED TYPES GO HERE [javax.xml.bind annotations]

</xsd:schema>

 

In AbstractWSDL I found this, what looks like being the issue:

 

public Element createSchemaType(String namespace) {

        Element e = (Element) typeMap.get(namespace);

 

        if (e == null)

        {

            e = new Element("schema", XSD_NS);

 

            e.setAttribute(new Attribute("targetNamespace", namespace));

            e.setAttribute(new Attribute("elementFormDefault",
"qualified"));

            e.setAttribute(new Attribute("attributeFormDefault",
"qualified"));

 

            setSchema(namespace, e);

        }

 

        return e;

    }

 

How do I avoid my wsdl using two schema's with the same namespace but
different attributeFormDefault?

 

Dylan Honorez
R & D Consultant
4C Technologies / kZen
+32 (0)485 / 69.28.12
[EMAIL PROTECTED]

 

Reply via email to