[xgws-dev] CVS Update: codes/xsul/java/modules/ws_addressing/xsul/ws_addressing

Aleksander Andrzej Slominski xgws-dev_at_extreme.indiana.edu
Wed Oct 18 15:25:00 2006


aslom       06/10/18 15:24:16

  Modified:    xsul/java/modules/ws_addressing/xsul/ws_addressing
                        WsaInvoker.java
  Log:
  by default sendMessage will setPrent to null to avoid confusion; old behavior is now in sendMessageOptimized()
  
  Revision  Changes    Path
  1.16      +12 -3     codes/xsul/java/modules/ws_addressing/xsul/ws_addressing/WsaInvoker.java
  
  Index: WsaInvoker.java
  ===================================================================
  RCS file: /l/extreme/cvs/codes/xsul/java/modules/ws_addressing/xsul/ws_addressing/WsaInvoker.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -b -t -w -r1.15 -r1.16
  --- WsaInvoker.java	18 Oct 2006 05:59:33 -0000	1.15
  +++ WsaInvoker.java	18 Oct 2006 19:24:16 -0000	1.16
  @@ -4,7 +4,7 @@
    *
    * This software is open source. See the bottom of this file for the licence.
    *
  - * $Id: WsaInvoker.java,v 1.15 2006/10/18 05:59:33 aslom Exp $
  + * $Id: WsaInvoker.java,v 1.16 2006/10/18 19:24:16 aslom Exp $
    */
   
   package xsul.ws_addressing;
  @@ -35,7 +35,7 @@
    * will use WSA processing node to indicate where to send replies.
    * <br />NOTE: this is class is not multi-thread safe and MUST be proected if used concurently!
    *
  - * @version $Revision: 1.15 $
  + * @version $Revision: 1.16 $
    * @author <a href="http://www.extreme.indiana.edu/~aslom/">Aleksander Slominski</a>
    */
   public class WsaInvoker implements MessageInvoker
  @@ -115,6 +115,9 @@
           return indent;
       }
       
  +    /**
  +     * What EPR to use when sending message (if null no EPR will be set).
  +     */
       public void setTargetEPR(WsaEndpointReference targetEPR) {
           this.targetEPR = targetEPR;
       }
  @@ -217,6 +220,12 @@
       
       public XmlElement invokeMessage(XmlElement message) throws DynamicInfosetInvokerException
       {
  +        message.setParent(null);
  +        return invokeMessageOptimzed(message);
  +    }
  +    
  +    public XmlElement invokeMessageOptimzed(XmlElement message) throws DynamicInfosetInvokerException
  +    {
           
           XmlDocument doc = wrapInSoapEnvelopeIfNecessary(message);
           //System.err.println(getClass().getName()+" "+xsul.util.Util.safeXmlToString(doc.getDocumentElement()));