ws-fx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jal...@apache.org
Subject cvs commit: ws-fx/sandesha/src/org/apache/sandesha EnvelopeCreator.java
Date Fri, 24 Dec 2004 04:15:00 GMT
jaliya      2004/12/23 20:15:00

  Modified:    sandesha/src/org/apache/sandesha EnvelopeCreator.java
  Log:
  public static SOAPEnvelope createTerminatSeqMessage() is added. This should return the TerminateSequence
SOAPEnvelope
  
  Revision  Changes    Path
  1.12      +18 -6     ws-fx/sandesha/src/org/apache/sandesha/EnvelopeCreator.java
  
  Index: EnvelopeCreator.java
  ===================================================================
  RCS file: /home/cvs/ws-fx/sandesha/src/org/apache/sandesha/EnvelopeCreator.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- EnvelopeCreator.java	24 Nov 2004 13:32:12 -0000	1.11
  +++ EnvelopeCreator.java	24 Dec 2004 04:15:00 -0000	1.12
  @@ -16,6 +16,7 @@
    */
   package org.apache.sandesha;
   
  +import java.net.URL;
   import java.util.Vector;
   
   import javax.xml.namespace.QName;
  @@ -141,10 +142,8 @@
               AddressingHeaders outGoingAddressingHaders = new AddressingHeaders(
                       envelope, null, true, false, true, false, null);
   
  -            Action action = new Action(
  -                    new URI(Constants.ACTION_CREATE_SEQUENCE));
  -            SOAPHeaderElement acionElement = action
  -                    .toSOAPHeaderElement(envelope);
  +            Action action = new Action( new URI(Constants.ACTION_CREATE_SEQUENCE));
  +            SOAPHeaderElement acionElement = action.toSOAPHeaderElement(envelope);
               outGoingAddressingHaders.setAction(action);
   
               MessageID messageId = new MessageID(new URI("uuid:" + uuid));
  @@ -154,11 +153,14 @@
                   //Setting from the Client
                   outGoingAddressingHaders.setFrom(addressingHeaders.getFrom());
                   outGoingAddressingHaders.setTo(addressingHeaders.getTo());
  -
  +                if(message.getSync()){
  +                    outGoingAddressingHaders.setReplyTo(new ReplyTo(new Address(Constants.ANONYMOUS_URI)));
  +                }
  +                else{
                   if (addressingHeaders.getReplyTo() != null)
                       outGoingAddressingHaders.setReplyTo(addressingHeaders
                               .getReplyTo());
  -
  +                }
               } else if (endPoint == 1) {
                   //Setting from the Server
                   //setting FROM and REPLY TO
  @@ -419,6 +421,7 @@
               //Setting from the Client
               outGoingAddressingHaders.setFrom(addressingHeaders.getFrom());
               outGoingAddressingHaders.setTo(addressingHeaders.getTo());
  +            if(addressingHeaders.getReplyTo()!=null)
               outGoingAddressingHaders.setReplyTo(addressingHeaders.getReplyTo());
   
               //TODO
  @@ -442,6 +445,15 @@
               e.printStackTrace();
           }
           return requestEnvelope;
  +    }
  +
  +    /**
  +     * @param sequenceID
  +     * @return
  +     */
  +    public static SOAPEnvelope createTerminatSeqMessage(String sequenceID) {
  +        // TODO Auto-generated method stub
  +        return null;
       }
   
   }
  
  
  

Mime
View raw message