summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src')
-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()));