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
This commit is contained in:
parent
91a14ec0e3
commit
0ad1f72141
1 changed files with 4 additions and 3 deletions
|
@ -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()));
|
||||
|
|
Loading…
Add table
Reference in a new issue