Examples of PingMsg


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

      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.PingMsg

      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
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.