axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject cvs commit: xml-axis-wsif/java/test/jrom JROMTests.java
Date Fri, 21 Jun 2002 17:05:24 GMT
antelder    2002/06/21 10:05:24

  Modified:    java/test/headers HeadersTest.java
               java/src/org/apache/wsif/base WSIFDefaultOperation.java
               java/test/async AsyncTests.java
               java/test/addressbook AddressBookTest.java
               java/test/jrom JROMTests.java
  Log:
  Change WSIFDefaultOperation getContext method to create a WSIFMessage if one doesn't already
exist. That way clients don't need to instantiate there own WSIFDefaultMessage for the context.
  
  Revision  Changes    Path
  1.5       +1 -1      xml-axis-wsif/java/test/headers/HeadersTest.java
  
  Index: HeadersTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/headers/HeadersTest.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- HeadersTest.java	12 Jun 2002 15:34:23 -0000	1.4
  +++ HeadersTest.java	21 Jun 2002 17:05:24 -0000	1.5
  @@ -179,7 +179,7 @@
           input.setObjectPart("symbol", "");
   
           // set a basic authentication header
  -        WSIFMessage headers = new WSIFDefaultMessage();
  +        WSIFMessage headers = operation.getContext();
           headers.setObjectPart(WSIFConstants.CONTEXT_HTTP_USER, "petra");
           headers.setObjectPart(WSIFConstants.CONTEXT_HTTP_PSWD, "washere");
           operation.setContext(headers);
  
  
  
  1.5       +3 -0      xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultOperation.java
  
  Index: WSIFDefaultOperation.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/src/org/apache/wsif/base/WSIFDefaultOperation.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WSIFDefaultOperation.java	14 Jun 2002 14:28:03 -0000	1.4
  +++ WSIFDefaultOperation.java	21 Jun 2002 17:05:24 -0000	1.5
  @@ -398,6 +398,9 @@
        */
       public WSIFMessage getContext() {
           Tr.entry(this);
  +        if ( context == null ) {
  +        	context = new WSIFDefaultMessage();
  +        }
           Tr.exit(context);
           return context;
       }
  
  
  
  1.4       +2 -2      xml-axis-wsif/java/test/async/AsyncTests.java
  
  Index: AsyncTests.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/async/AsyncTests.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- AsyncTests.java	21 Jun 2002 13:17:06 -0000	1.3
  +++ AsyncTests.java	21 Jun 2002 17:05:24 -0000	1.4
  @@ -185,7 +185,7 @@
         // Executing synchronous executeRequestResponseOperation(input, output, fault )
         WSIFOperation operation = port.createOperation(operationName);
   
  -      WSIFMessage context = new WSIFDefaultMessage();
  +      WSIFMessage context = operation.getContext();
         context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
                                TestUtilities.getWsifProperty("wsif.nativejms.responseq")
);
         operation.setContext( context );
  @@ -346,7 +346,7 @@
         WSIFOperation operation =
           port.createOperation(operationName, inputMsgName, outputMsgName);
   
  -      WSIFMessage context = new WSIFDefaultMessage();
  +      WSIFMessage context = operation.getContext();
         context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
                                TestUtilities.getWsifProperty("wsif.nativejms.responseq")
);
         operation.setContext( context );
  
  
  
  1.7       +1 -1      xml-axis-wsif/java/test/addressbook/AddressBookTest.java
  
  Index: AddressBookTest.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/addressbook/AddressBookTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- AddressBookTest.java	21 Jun 2002 11:12:10 -0000	1.6
  +++ AddressBookTest.java	21 Jun 2002 17:05:24 -0000	1.7
  @@ -316,7 +316,7 @@
               WSIFMessage outmsg = op.createOutputMessage();
               WSIFMessage faultMsg = op.createFaultMessage();
   
  -            WSIFMessage context = new WSIFDefaultMessage();
  +            WSIFMessage context = op.getContext();
               context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
                                      TestUtilities.getWsifProperty("wsif.async.replytoq")
);
               op.setContext( context );
  
  
  
  1.7       +2 -2      xml-axis-wsif/java/test/jrom/JROMTests.java
  
  Index: JROMTests.java
  ===================================================================
  RCS file: /home/cvs/xml-axis-wsif/java/test/jrom/JROMTests.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- JROMTests.java	21 Jun 2002 11:12:10 -0000	1.6
  +++ JROMTests.java	21 Jun 2002 17:05:24 -0000	1.7
  @@ -416,7 +416,7 @@
               		assertTrue("Operation getAddressFromName failed!!",operationSucceeded);
               */
               AsyncResponseHandler rh = new AsyncResponseHandler(1); // 1 async request 
  -            WSIFMessage context = new WSIFDefaultMessage();
  +            WSIFMessage context = operation.getContext();
               context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
                                      TestUtilities.getWsifProperty("wsif.async.replytoq")
);
               operation.setContext( context );
  @@ -558,7 +558,7 @@
               		assertTrue("Operation getQuote failed!!",operationSucceeded);
               */
               AsyncResponseHandler rh = new AsyncResponseHandler(1); // 1 async request 
  -            WSIFMessage context = new WSIFDefaultMessage();
  +            WSIFMessage context = operation.getContext();
               context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
                                      TestUtilities.getWsifProperty("wsif.async.replytoq")
);
               operation.setContext( context );
  
  
  

Mime
View raw message