diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-25 21:37:37 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-25 21:37:37 +0000 |
commit | 0ad1f721412ce97486690eea2ca981b941b8e32c (patch) | |
tree | 498702d06bce1f2135589308c133c31511292683 /sca-java-2.x/trunk/modules/binding-ws-wsdlgen | |
parent | 91a14ec0e3a11faa64be24c73d991b6caba26bfa (diff) |
TUSCANY-3778: Use same code as 1.x so that wrapper is generated in correct namespace
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1039193 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-wsdlgen')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java b/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java index bfc62200b8..be1222f094 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java +++ b/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java @@ -667,12 +667,13 @@ public class Interface2WSDLGenerator { for (DataType<DataType> faultType: op.getFaultTypes()) { Fault fault = definition.createFault(); // TUSCANY-3778 - use the definition namespace not the element namespace to create the fault message - QName faultName = new QName(namespaceURI, ((XMLType)faultType.getLogical().getLogical()).getElementName().getLocalPart()); + 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(faultName); + faultMsg.setQName(faultMsgName); faultMsg.setUndefined(false); definition.addMessage(faultMsg); faultMsg.addPart(generatePart(definition, faultType.getLogical(), faultName.getLocalPart())); |