Examples of DarRequest


Examples of org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest

      bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
   }
  
   public static DarRequest getRequest()
   {
      DarRequest request = new DarRequest();
      request.setMapId("map1234");
      for (int s=0; s<5; s++)
      {
         ServiceRequest serviceRequest = new ServiceRequest();
         Stop up = new Stop();
         up.setNode(new Double(Math.random()*1000).intValue());
         up.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
         Stop down = new Stop();
         down.setNode(new Double(Math.random()*1000).intValue());
         down.setTime(new XMLGregorianCalendarImpl(new GregorianCalendar()));
         serviceRequest.setFrom(up);
         serviceRequest.setTo(down);
         serviceRequest.setPeople(new Double(Math.random()*3).intValue()+1);
         serviceRequest.setId("Req" + s);
         request.getRequests().add(serviceRequest);
      }
      for (int b=0; b<2; b++)
      {
         Bus bus = new Bus();
         bus.setCapacity(10);
         bus.setId("Bus" + b);
         request.getBuses().add(bus);
      }
      return request;
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest

   }
  
   public void run(boolean asynch) throws Exception
   {
      configureAddressingProperties((BindingProvider)endpoint, WSA_ACTION, WSA_TO, "http://" + replyToHost + ":8080/dar-client/replyTo");
      DarRequest request = ClientHelper.getRequest();
      System.out.println(new Date() + " Sending request...");
      if (asynch)
      {
         Response<DarResponse> resp = endpoint.processAsync(request);
         System.out.println("Doing something interesting in the mean time... ;-) ");
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest

   }
  
   public void runOneway() throws Exception
   {
      configureAddressingProperties((BindingProvider)endpoint, WSA_ACTION_ONEWAY, WSA_TO, "http://" + replyToHost + ":8080/dar-client/replyService");
      DarRequest request = ClientHelper.getRequest();
      System.out.println(new Date() + " Sending request...");
      endpoint.onewayProcess(request);
      System.out.println(new Date() + " Done.");
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest

      ClientHelper.setUsernamePassword((BindingProvider)endpoint, "kermit", "thefrog");
   }
  
   public DarResponse run(boolean asynch) throws Exception
   {
      DarRequest request = ClientHelper.getRequest();
      System.out.println(new Date() + " Sending request...");
      DarResponse darResponse;
      if (asynch)
      {
         Response<DarResponse> response = endpoint.processAsync(request);
View Full Code Here

Examples of org.jboss.test.ws.jaxws.samples.dar.generated.DarRequest

      bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);
   }
  
   public static DarRequest getRequest()
   {
      DarRequest request = new DarRequest();
      request.setMapId("map1234");
      for (int s=0; s<5; s++)
      {
         ServiceRequest serviceRequest = new ServiceRequest();
         Stop up = new Stop();
         up.setNode(new Double(Math.random()*1000).intValue());
         up.setTime(XMLGregorianCalendarHelper.convert(new GregorianCalendar()));
         Stop down = new Stop();
         down.setNode(new Double(Math.random()*1000).intValue());
         down.setTime(XMLGregorianCalendarHelper.convert(new GregorianCalendar()));
         serviceRequest.setFrom(up);
         serviceRequest.setTo(down);
         serviceRequest.setPeople(new Double(Math.random()*3).intValue()+1);
         serviceRequest.setId("Req" + s);
         request.getRequests().add(serviceRequest);
      }
      for (int b=0; b<2; b++)
      {
         Bus bus = new Bus();
         bus.setCapacity(10);
         bus.setId("Bus" + b);
         request.getBuses().add(bus);
      }
      return request;
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.