From 95e1fea0cfbebbf92d1493b85f20df3c3e7065ea Mon Sep 17 00:00:00 2001 From: rfeng Date: Sat, 21 Jun 2008 00:35:00 +0000 Subject: Set elementFormDefault to unqualified for the generated wrapper element schema (see TUSCANY-2388) git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@670103 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/interfacedef/wsdl/interface2wsdl/Interface2WSDLGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/sca/modules/interface-wsdl-java2wsdl') diff --git a/java/sca/modules/interface-wsdl-java2wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/interface2wsdl/Interface2WSDLGenerator.java b/java/sca/modules/interface-wsdl-java2wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/interface2wsdl/Interface2WSDLGenerator.java index 6ae397269f..c9566bec4a 100644 --- a/java/sca/modules/interface-wsdl-java2wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/interface2wsdl/Interface2WSDLGenerator.java +++ b/java/sca/modules/interface-wsdl-java2wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/interface2wsdl/Interface2WSDLGenerator.java @@ -237,7 +237,8 @@ public class Interface2WSDLGenerator { } else { schemaDoc = createDocument(); schema = schemaDoc.createElementNS(SCHEMA_NS, "xs:schema"); - schema.setAttribute("elementFormDefault", "qualified"); + // The elementFormDefault should be set to unqualified, see TUSCANY-2388 + schema.setAttribute("elementFormDefault", "unqualified"); schema.setAttribute("attributeFormDefault", "qualified"); schema.setAttribute("targetNamespace", targetNS); schema.setAttributeNS(XMLNS_NS, "xmlns:xs", SCHEMA_NS); -- cgit v1.2.3