[jboss-svn-commits] JBL Code SVN: r20381 - labs/jbosstm/trunk/XTS/WS-C/dev/src11/com/arjuna/webservices11/wsaddr.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jun 9 12:00:16 EDT 2008
Author: adinn
Date: 2008-06-09 12:00:15 -0400 (Mon, 09 Jun 2008)
New Revision: 20381
Modified:
labs/jbosstm/trunk/XTS/WS-C/dev/src11/com/arjuna/webservices11/wsaddr/AddressingHelper.java
Log:
don't rely on WS Addressing initializeAsReply method as it fails to use From if ReplyTo/Fault have None address instead we hand crank the adddress installation using innitializeAsEndPoint
Modified: labs/jbosstm/trunk/XTS/WS-C/dev/src11/com/arjuna/webservices11/wsaddr/AddressingHelper.java
===================================================================
--- labs/jbosstm/trunk/XTS/WS-C/dev/src11/com/arjuna/webservices11/wsaddr/AddressingHelper.java 2008-06-09 15:31:38 UTC (rev 20380)
+++ labs/jbosstm/trunk/XTS/WS-C/dev/src11/com/arjuna/webservices11/wsaddr/AddressingHelper.java 2008-06-09 16:00:15 UTC (rev 20381)
@@ -39,6 +39,12 @@
responseProperties.initializeAsDestination(epref);
responseProperties.setMessageID(makeURI(builder, messageID)) ;
+ if (addressingProperties.getMessageID() != null)
+ {
+ Relationship rel = builder.newRelationship(addressingProperties.getMessageID().getURI());
+ responseProperties.setRelatesTo(new Relationship[] { rel });
+ }
+
return responseProperties ;
}
@@ -61,6 +67,12 @@
responseProperties.initializeAsDestination(epref);
responseProperties.setMessageID(makeURI(builder, messageID)) ;
+ if (addressingProperties.getMessageID() != null)
+ {
+ Relationship rel = builder.newRelationship(addressingProperties.getMessageID().getURI());
+ responseProperties.setRelatesTo(new Relationship[] { rel });
+ }
+
return responseProperties ;
}
@@ -99,6 +111,13 @@
faultProperties.initializeAsDestination(getNoneAddress());
}
faultProperties.setMessageID(makeURI(builder, messageID)) ;
+
+ if (addressingProperties.getMessageID() != null)
+ {
+ Relationship rel = builder.newRelationship(addressingProperties.getMessageID().getURI());
+ faultProperties.setRelatesTo(new Relationship[] { rel });
+ }
+
return faultProperties ;
}
@@ -221,6 +240,12 @@
requestProperties.setMessageID (makeURI(builder, messageID));
}
+ if (addressingProperties.getMessageID() != null)
+ {
+ Relationship rel = builder.newRelationship(addressingProperties.getMessageID().getURI());
+ requestProperties.setRelatesTo(new Relationship[] { rel });
+ }
+
return requestProperties;
}
More information about the jboss-svn-commits
mailing list