Author: scheu
Date: Wed Mar 31 13:29:11 2010
New Revision: 929531
URL: http://svn.apache.org/viewvc?rev=929531&view=rev
Log:
Quick Change to WSDL11ToAxisServiceBuilder to add a missing xml namespace
definition if it is not defined.
Contributor: Rich Scheuerle and Davanum Srinivas
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Modified:
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?rev=929531&r1=929530&r2=929531&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
(original)
+++
axis/axis2/java/core/trunk/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Wed Mar 31 13:29:11 2010
@@ -2047,6 +2047,12 @@ public class WSDL11ToAxisServiceBuilder
String prefix;
if
(XMLSCHEMA_NAMESPACE_URI.equals(schemaTypeName.getNamespaceURI())) {
prefix = xsdPrefix;
+ if(log.isDebugEnabled()) {
+ log.debug("Unable to find a namespace for " + xsdPrefix +
". Creating a new namespace attribute");
+ }
+
cmplxTypeSequence.setAttributeNS("http://www.w3.org/2000/xmlns/",
+ "xmlns:" + xsdPrefix,
+ XMLSCHEMA_NAMESPACE_URI);
} else {
// this schema is a third party one. So we need to have
// an import statement in our generated schema