Examples of PingMsgResponse


Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

   {
      StringTokenizer tok = new StringTokenizer(payload.getMessage(), "|");
      boolean mtomEnabled = tok.nextToken().equals("1");
      ((Stub)getPort())._setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.valueOf(mtomEnabled));

      PingMsgResponse value = getPort().ping(payload);
      assertNotNull("Return value was null", value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Return xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", payload.getXopContent().length, bytesOut.length);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

   public PingMsgResponse ping(PingMsg pingMsg) throws RemoteException {

      String message = pingMsg.getMessage();
      toggleXOP(message);

      return new PingMsgResponse(pingMsg.getXopContent());
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

   public void testRequestResponseOptimized() throws Exception {

      DataHandler dh = new DataHandler("Another plain text attachment", "text/plain");
      byte[] bytesIn = IOUtils.convertToBytes(dh);
      PingMsgResponse value = getPort().ping(new PingMsg("1|1", bytesIn));
      assertNotNull("Return value was null", value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Returned xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", bytesIn.length, bytesOut.length);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

      byte[] bytesIn = XOPTestSupport.getBytesFromFile(imgFile);

      // disable MTOM
      ((Stub)getPort())._setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);

      PingMsgResponse value = getPort().ping(new PingMsg("0|1", bytesIn));
      assertNotNull("Return value was null",value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Return xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", bytesIn.length, bytesOut.length);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

      byte[] bytesIn = XOPTestSupport.getBytesFromFile(imgFile);

      // reusing the stub means cleaning the previous state
      ((Stub)getPort())._setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.TRUE);

      PingMsgResponse value = getPort().ping(new PingMsg("1|0", bytesIn));
      assertNotNull("Return value was null",value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Return xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", bytesIn.length, bytesOut.length);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

*/
public class XOPPingImpl extends MTOMServiceBase implements XOPPing {

   public PingMsgResponse ping(PingMsg pingMsg) throws RemoteException {
      toggleXOP(pingMsg.getMessage());
      return new PingMsgResponse(pingMsg.getXopContent());
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

*/
public class XOPPingImpl extends MTOMServiceBase implements XOPPing {

   public PingMsgResponse ping(PingMsg pingMsg) throws RemoteException {
      toggleXOP(pingMsg.getMessage());
      return new PingMsgResponse(pingMsg.getXopContent());
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

   {
      StringTokenizer tok = new StringTokenizer(payload.getMessage(), "|");
      boolean mtomEnabled = tok.nextToken().equals("1");
      ((Stub)getPort())._setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.valueOf(mtomEnabled));

      PingMsgResponse value = getPort().ping(payload);
      assertNotNull("Return value was null", value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Return xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", payload.getXopContent().length, bytesOut.length);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

   public void testRequestResponseOptimized() throws Exception {

      DataHandler dh = new DataHandler("Another plain text attachment", "text/plain");
      byte[] bytesIn = IOUtils.convertToBytes(dh);
      PingMsgResponse value = getPort().ping(new PingMsg("1|1", bytesIn));
      assertNotNull("Return value was null", value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Returned xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", bytesIn.length, bytesOut.length);
   }
View Full Code Here

Examples of org.jboss.test.ws.jaxrpc.xop.shared.PingMsgResponse

      byte[] bytesIn = XOPTestSupport.getBytesFromFile(imgFile);

      // disable MTOM
      ((Stub)getPort())._setProperty(StubExt.PROPERTY_MTOM_ENABLED, Boolean.FALSE);

      PingMsgResponse value = getPort().ping(new PingMsg("0|1", bytesIn));
      assertNotNull("Return value was null",value);
      byte[] bytesOut = value.getXopContent();
      assertNotNull("Return xopContent was null", bytesOut);
      assertEquals("Content length doesn't match", bytesIn.length, bytesOut.length);
   }
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.