summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/modules
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-11-19 22:08:18 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-11-19 22:08:18 +0000
commita3a1ba34bf830b25e1bd84206c00ff536d4a4a83 (patch)
tree4d1d5e00036d1912f28c12d35adcefcdac753353 /sca-java-1.x/trunk/modules
parent2372d9275f19cbd978e7c4da2df9cfc51191ecc3 (diff)
TUSCANY-3778: Fix namespace inconsistency in the 1.x fix committed under r1036533
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1037049 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/modules')
-rw-r--r--sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java b/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java
index c5dc4a833d..a55670ef86 100644
--- a/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java
+++ b/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java
@@ -975,11 +975,12 @@ public class Interface2WSDLGenerator {
for (DataType<DataType> faultType: op.getFaultTypes()) {
Fault fault = definition.createFault();
QName faultName = ((XMLType)faultType.getLogical().getLogical()).getElementName();
+ QName faultMsgName = new QName(namespaceURI, faultName.getLocalPart());
fault.setName(faultName.getLocalPart());
- Message faultMsg = definition.getMessage(faultName);
+ Message faultMsg = definition.getMessage(faultMsgName);
if (faultMsg == null) {
faultMsg = definition.createMessage();
- faultMsg.setQName(new QName(namespaceURI, faultName.getLocalPart()));
+ faultMsg.setQName(faultMsgName);
faultMsg.setUndefined(false);
definition.addMessage(faultMsg);
faultMsg.addPart(generatePart(definition, faultType.getLogical(), faultName.getLocalPart()));