diff options
author | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-15 14:38:02 +0000 |
---|---|---|
committer | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-11-15 14:38:02 +0000 |
commit | 6f11123620ddd23d827dddf97678de041813bd0f (patch) | |
tree | 066ac543870ba43c9686bf5af376546fffd74ddb | |
parent | 7b3b79ce8df0471c1c20aac500b28186322a38f2 (diff) |
Fix EPR creation to correctly wrap address in <wsa:Address/> tag.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1202210 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java index 2a04845e6d..91ab4ec331 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java @@ -75,6 +75,7 @@ public class JAXWSBindingInvoker implements Invoker, DataExchangeSemantics { private final static String SCA11_TUSCANY_NS = "http://tuscany.apache.org/xmlns/sca/1.1"; public static final String WSA_FINAL_NAMESPACE = "http://www.w3.org/2005/08/addressing"; + public static final QName QNAME_WSA_ADDRESS = new QName(WSA_FINAL_NAMESPACE, "Address", "wsa"); public static final QName QNAME_WSA_FROM = new QName(WSA_FINAL_NAMESPACE, "From", "wsa"); public static final QName QNAME_WSA_TO = new QName(WSA_FINAL_NAMESPACE, "To", "wsa"); public static final QName QNAME_WSA_ACTION = new QName(WSA_FINAL_NAMESPACE, "Action", "wsa"); @@ -180,7 +181,6 @@ public class JAXWSBindingInvoker implements Invoker, DataExchangeSemantics { if (detail != null) { for (Iterator i = detail.getDetailEntries(); i.hasNext();) { DetailEntry entry = (DetailEntry)i.next(); - //FaultException fe = new FaultException(e.getMessage(), entry.getFirstChild(), e); FaultException fe = new FaultException(e.getMessage(), entry, e); fe.setFaultName(entry.getElementQName()); msg.setFaultBody(fe); @@ -254,7 +254,8 @@ public class JAXWSBindingInvoker implements Invoker, DataExchangeSemantics { // // addWSAFromHeader(sh, fromEPR); SOAPHeaderElement fromH = sh.addHeaderElement(QNAME_WSA_FROM); - fromH.setTextContent(callbackEndpoint.getBinding().getURI()); + SOAPElement fromAddress = fromH.addChildElement(QNAME_WSA_ADDRESS); + fromAddress.setTextContent(callbackEndpoint.getBinding().getURI()); addWSAActionHeader(sh, action); @@ -334,7 +335,8 @@ public class JAXWSBindingInvoker implements Invoker, DataExchangeSemantics { // wsaToOM.setText( address ); // sh.addChild(wsaToOM); SOAPHeaderElement toH = sh.addHeaderElement(QNAME_WSA_TO); - toH.setTextContent(address); + SOAPElement toAddress = toH.addChildElement(QNAME_WSA_ADDRESS); + toAddress.setTextContent(address); // Deal with Reference Parameters, if present - copy to the header // without the wsa:ReferenceParameters wrapper |