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 Wed, 19 Jun 2002 09:47:40 GMT
antelder    2002/06/19 02:47:40

  Modified:    java/test/jrom JROMTests.java
  Log:
  Fix JROM testcase for the new async model without the listener
  
  Revision  Changes    Path
  1.5       +14 -4     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.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- JROMTests.java	12 Jun 2002 10:27:23 -0000	1.4
  +++ JROMTests.java	19 Jun 2002 09:47:40 -0000	1.5
  @@ -67,7 +67,9 @@
   import org.apache.wsif.WSIFPort;
   import org.apache.wsif.WSIFService;
   import org.apache.wsif.WSIFServiceFactory;
  +import org.apache.wsif.WSIFConstants;
   import org.apache.wsif.base.WSIFServiceImpl;
  +import org.apache.wsif.base.WSIFDefaultMessage;
   import org.apache.wsif.providers.soap.apachesoap.WSIFDynamicProvider_ApacheSOAP;
   import util.TestUtilities;
   
  @@ -273,7 +275,7 @@
       }
   
       private void doitAsync(String portName, String protocol) {
  -        System.out.println("\n******* ADDRESSBOOK TEST *******");
  +        System.out.println("\n******* ASYNC ADDRESSBOOK TEST *******");
           WSIFServiceImpl.setDynamicWSIFProvider(
               "http://schemas.xmlsoap.org/wsdl/soap/",
               new WSIFDynamicProvider_ApacheSOAP());
  @@ -290,11 +292,11 @@
   
               service.mapType(
                   new javax.wsdl.QName("http://wsiftypes.addressbook/", "address"),
  -                Class.forName("addressbook.types.Address"));
  +                Class.forName("addressbook.wsiftypes.Address"));
   
               service.mapType(
                   new javax.wsdl.QName("http://wsiftypes.addressbook/", "phone"),
  -                Class.forName("addressbook.types.Phone"));
  +                Class.forName("addressbook.wsiftypes.Phone"));
   
               WSIFPort port = service.getPort(portName);
   
  @@ -412,6 +414,10 @@
               		assertTrue("Operation getAddressFromName failed!!",operationSucceeded);
               */
               AsyncResponseHandler rh = new AsyncResponseHandler(1); // 1 async request 
  +            WSIFMessage context = new WSIFDefaultMessage();
  +            context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
  +                                   TestUtilities.getWsifProperty("wsif.async.replytoq")
);
  +            operation.setContext( context );
               try {
                   WSIFCorrelationId id = operation.executeRequestResponseAsync(inputMessage,
rh);
                   System.out.println("async operation id=" + id.getCorrelationId());
  @@ -505,7 +511,7 @@
       }
   
       private void doitSQAsync(String portName, String protocol) {
  -        System.out.println("******* STOCKQUOTE TEST *******");
  +        System.out.println("******* ASYNC STOCKQUOTE TEST *******");
           WSIFServiceImpl.setDynamicWSIFProvider(
               "http://schemas.xmlsoap.org/wsdl/soap/",
               new WSIFDynamicProvider_ApacheSOAP());
  @@ -550,6 +556,10 @@
               		assertTrue("Operation getQuote failed!!",operationSucceeded);
               */
               AsyncResponseHandler rh = new AsyncResponseHandler(1); // 1 async request 
  +            WSIFMessage context = new WSIFDefaultMessage();
  +            context.setObjectPart( WSIFConstants.CONTEXT_JMS_PREFIX + "JMSReplyTo", 
  +                                   TestUtilities.getWsifProperty("wsif.async.replytoq")
);
  +            operation.setContext( context );
               try {
                   WSIFCorrelationId id = operation.executeRequestResponseAsync(inputMessage,
rh);
                   System.out.println("async operation id=" + id.getCorrelationId());
  
  
  

Mime
View raw message