Examples of ByteArrayHolder


Examples of javax.xml.rpc.holders.ByteArrayHolder

      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "echoByteArray"));
      call.addParameter("arrayOfbyte_1", Constants.TYPE_LITERAL_BASE64BINARY, ParameterMode.INOUT);
      call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);

      ByteArrayHolder holder = new ByteArrayHolder(new String("Some base64 msg").getBytes());
      Object retObj = call.invoke(new Object[]{holder});
      assertNull(retObj);
      assertEquals("Some base64 msgResponse", new String(holder.value));
   }
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

      assertEquals(new Boolean(true), holder.value);
   }

   public void testEchoByteArray() throws Exception
   {
      ByteArrayHolder holder = new ByteArrayHolder(new String("Some base64 msg").getBytes());
      port.echoByteArray(holder);
      assertEquals("Some base64 msgResponse", new String(holder.value));
   }
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

        byte[][]           in1  = new byte[][]  {
            {   (byte) 0xbe(byte) 0xef(byte) 0xcc   },
            {   (byte) 0xee(byte) 0xff(byte) 0xaa   },
        };
        Long               in2  = new Long(3);
        ByteArrayHolder    out1 = new ByteArrayHolder();
        LongWrapperHolder  out2 = new LongWrapperHolder();

        // Test operation
        binding.doExample(in1, in2, out1, out2);
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

        byte[][]           in1  = new byte[][]  {
            {   (byte) 0xbe(byte) 0xef(byte) 0xcc   },
            {   (byte) 0xee(byte) 0xff(byte) 0xaa   },
        };
        Long               in2  = new Long(3);
        ByteArrayHolder    out1 = new ByteArrayHolder();
        LongWrapperHolder  out2 = new LongWrapperHolder();

        // Test operation
        binding.doExample(in1, in2, out1, out2);
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

                    new DoubleHolder(6),
                    new BooleanHolder(true),
                    new ByteHolder((byte) 7),
                    new QNameHolder(new QName("ho", "hi")),
                    new CalendarHolder(Calendar.getInstance()),
                    new ByteArrayHolder(new byte[]{(byte) 8}),
                    new ByteArrayHolder(new byte[]{(byte) 9}),
                    new StringHolder("ho hi"),
                    new BooleanWrapperHolder(new Boolean(true)),
                    new FloatWrapperHolder(new Float(10)),
                    new DoubleWrapperHolder(new Double(11)),
                    new BigDecimalHolder(new java.math.BigDecimal(12)),
                    new IntegerWrapperHolder(new Integer(13)),
                    new ShortWrapperHolder(new Short((short) 14)),
                    new ByteArrayHolder(new byte[]{(byte) 15}),
                    new TimeHolder(new org.apache.axis.types.Time("12:01:30.150Z")),
                    new UnsignedLongHolder(ulong),
                    new UnsignedIntHolder(uint),
                    new UnsignedShortHolder(ushort),
                    new UnsignedByteHolder(ubyte),
                    new NonNegativeIntegerHolder(nnint),
                    new PositiveIntegerHolder(pint),
                    new NonPositiveIntegerHolder(npint),
                    new NegativeIntegerHolder(nint),
                    new URIHolder(uri),
                    new YearHolder(year),
                    new MonthHolder(month),
                    new DayHolder(day),
                    new YearMonthHolder(yearmonth),
                    new MonthDayHolder(monthday)
            );
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re );
        }
        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
                    new ByteHolder(),
                    new QNameHolder(),
                    new CalendarHolder(),
                    new ByteArrayHolder(),
                    new ByteArrayHolder(),
                    new StringHolder(),
                    new BooleanWrapperHolder(),
                    new FloatWrapperHolder(),
                    new DoubleWrapperHolder(),
                    new BigDecimalHolder(),
                    new IntegerWrapperHolder(),
                    new ShortWrapperHolder(),
                    new ByteArrayHolder(),
                    new TimeHolder(),
                    new UnsignedLongHolder(),
                    new UnsignedIntHolder(),
                    new UnsignedShortHolder(),
                    new UnsignedByteHolder(),
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

                    new DoubleHolder(6),
                    new BooleanHolder(true),
                    new ByteHolder((byte) 7),
                    new QNameHolder(new QName("ho", "hi")),
                    new CalendarHolder(Calendar.getInstance()),
                    new ByteArrayHolder(new byte[]{(byte) 8}),
                    new ByteArrayHolder(new byte[]{(byte) 9}),
                    new StringHolder("ho hi"),
                    new BooleanWrapperHolder(new Boolean(true)),
                    new FloatWrapperHolder(new Float(10)),
                    new DoubleWrapperHolder(new Double(11)),
                    new BigDecimalHolder(new java.math.BigDecimal(12)),
                    new IntegerWrapperHolder(new Integer(13)),
                    new ShortWrapperHolder(new Short((short) 14)),
                    new ByteArrayHolder(new byte[]{(byte) 15}),
                    new TimeHolder(new org.apache.axis.types.Time("12:01:30.150Z")),
                    new UnsignedLongHolder(ulong),
                    new UnsignedIntHolder(uint),
                    new UnsignedShortHolder(ushort),
                    new UnsignedByteHolder(ubyte),
                    new NonNegativeIntegerHolder(nnint),
                    new PositiveIntegerHolder(pint),
                    new NonPositiveIntegerHolder(npint),
                    new NegativeIntegerHolder(nint),
                    new URIHolder(uri),
                    new YearHolder(year),
                    new MonthHolder(month),
                    new DayHolder(day),
                    new YearMonthHolder(yearmonth),
                    new MonthDayHolder(monthday)
            );
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re );
        }
        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
                    new ByteHolder(),
                    new QNameHolder(),
                    new CalendarHolder(),
                    new ByteArrayHolder(),
                    new ByteArrayHolder(),
                    new StringHolder(),
                    new BooleanWrapperHolder(),
                    new FloatWrapperHolder(),
                    new DoubleWrapperHolder(),
                    new BigDecimalHolder(),
                    new IntegerWrapperHolder(),
                    new ShortWrapperHolder(),
                    new ByteArrayHolder(),
                    new TimeHolder(),
                    new UnsignedLongHolder(),
                    new UnsignedIntHolder(),
                    new UnsignedShortHolder(),
                    new UnsignedByteHolder(),
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

                    new DoubleHolder(6),
                    new BooleanHolder(true),
                    new ByteHolder((byte) 7),
                    new QNameHolder(new QName("ho", "hi")),
                    new DateHolder(new java.util.Date()),
                    new ByteArrayHolder(new byte[]{(byte) 8}),
                    new ByteArrayHolder(new byte[]{(byte) 9}),
                    new StringHolder("ho hi"),
                    new BooleanWrapperHolder(new Boolean(true)),
                    new FloatWrapperHolder(new Float(10)),
                    new DoubleWrapperHolder(new Double(11)),
                    new BigDecimalHolder(new java.math.BigDecimal(12)),
                    new IntegerWrapperHolder(new Integer(13)),
                    new ShortWrapperHolder(new Short((short) 14)),
                    new ByteWrapperArrayHolder(new Byte[]{new Byte((byte) 15)}));
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re );
        }
        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
                    new ByteHolder(),
                    new QNameHolder(),
                    new DateHolder(),
                    new ByteArrayHolder(),
                    new ByteArrayHolder(),
                    new StringHolder(),
                    new BooleanWrapperHolder(),
                    new FloatWrapperHolder(),
                    new DoubleWrapperHolder(),
                    new BigDecimalHolder(),
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

                    new DoubleHolder(6),
                    new BooleanHolder(true),
                    new ByteHolder((byte) 7),
                    new QNameHolder(new QName("ho", "hi")),
                    new CalendarHolder(Calendar.getInstance()),
                    new ByteArrayHolder(new byte[]{(byte) 8}),
                    new ByteArrayHolder(new byte[]{(byte) 9}),
                    new StringHolder("ho hi"),
                    new BooleanWrapperHolder(new Boolean(true)),
                    new FloatWrapperHolder(new Float(10)),
                    new DoubleWrapperHolder(new Double(11)),
                    new BigDecimalHolder(new java.math.BigDecimal(12)),
                    new IntegerWrapperHolder(new Integer(13)),
                    new ShortWrapperHolder(new Short((short) 14)),
                    new ByteArrayHolder(new byte[]{(byte) 15}),
                    new TimeHolder(new org.apache.axis.types.Time("12:01:30.150Z")),
                    new UnsignedLongHolder(ulong),
                    new UnsignedIntHolder(uint),
                    new UnsignedShortHolder(ushort),
                    new UnsignedByteHolder(ubyte),
                    new NonNegativeIntegerHolder(nnint),
                    new PositiveIntegerHolder(pint),
                    new NonPositiveIntegerHolder(npint),
                    new NegativeIntegerHolder(nint),
                    new URIHolder(uri),
                    new YearHolder(year),
                    new MonthHolder(month),
                    new DayHolder(day),
                    new YearMonthHolder(yearmonth),
                    new MonthDayHolder(monthday)
            );
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re );
        }
        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
                    new ByteHolder(),
                    new QNameHolder(),
                    new CalendarHolder(),
                    new ByteArrayHolder(),
                    new ByteArrayHolder(),
                    new StringHolder(),
                    new BooleanWrapperHolder(),
                    new FloatWrapperHolder(),
                    new DoubleWrapperHolder(),
                    new BigDecimalHolder(),
                    new IntegerWrapperHolder(),
                    new ShortWrapperHolder(),
                    new ByteArrayHolder(),
                    new TimeHolder(),
                    new UnsignedLongHolder(),
                    new UnsignedIntHolder(),
                    new UnsignedShortHolder(),
                    new UnsignedByteHolder(),
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

                    new DoubleHolder(6),
                    new BooleanHolder(true),
                    new ByteHolder((byte) 7),
                    new QNameHolder(new QName("ho", "hi")),
                    new CalendarHolder(Calendar.getInstance()),
                    new ByteArrayHolder(new byte[]{(byte) 8}),
                    new ByteArrayHolder(new byte[]{(byte) 9}),
                    new StringHolder("ho hi"),
                    new BooleanWrapperHolder(new Boolean(true)),
                    new FloatWrapperHolder(new Float(10)),
                    new DoubleWrapperHolder(new Double(11)),
                    new BigDecimalHolder(new java.math.BigDecimal(12)),
                    new IntegerWrapperHolder(new Integer(13)),
                    new ShortWrapperHolder(new Short((short) 14)),
                    new ByteArrayHolder(new byte[]{(byte) 15}),
                    new TimeHolder(new org.apache.axis.types.Time("12:01:30.150Z")),
                    new UnsignedLongHolder(ulong),
                    new UnsignedIntHolder(uint),
                    new UnsignedShortHolder(ushort),
                    new UnsignedByteHolder(ubyte),
                    new NonNegativeIntegerHolder(nnint),
                    new PositiveIntegerHolder(pint),
                    new NonPositiveIntegerHolder(npint),
                    new NegativeIntegerHolder(nint),
                    new URIHolder(uri),
                    new YearHolder(year),
                    new MonthHolder(month),
                    new DayHolder(day),
                    new YearMonthHolder(yearmonth),
                    new MonthDayHolder(monthday)
            );
        } catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("allPrimitivesInout Exception caught: " + re );
        }
        try {
            binding.allPrimitivesOut(
                    new StringHolder(),
                    new BigIntegerHolder(),
                    new IntHolder(),
                    new LongHolder(),
                    new ShortHolder(),
                    new BigDecimalHolder(),
                    new FloatHolder(),
                    new DoubleHolder(),
                    new BooleanHolder(),
                    new ByteHolder(),
                    new QNameHolder(),
                    new CalendarHolder(),
                    new ByteArrayHolder(),
                    new ByteArrayHolder(),
                    new StringHolder(),
                    new BooleanWrapperHolder(),
                    new FloatWrapperHolder(),
                    new DoubleWrapperHolder(),
                    new BigDecimalHolder(),
                    new IntegerWrapperHolder(),
                    new ShortWrapperHolder(),
                    new ByteArrayHolder(),
                    new TimeHolder(),
                    new UnsignedLongHolder(),
                    new UnsignedIntHolder(),
                    new UnsignedShortHolder(),
                    new UnsignedByteHolder(),
View Full Code Here

Examples of javax.xml.rpc.holders.ByteArrayHolder

      call.setOperationName(new QName(NAMESPACE_URI, "echoByteArray"));
      call.addParameter("arrayOfbyte_1", Constants.TYPE_LITERAL_BASE64BINARY, ParameterMode.IN);
      call.addParameter("arrayOfbyte_2", Constants.TYPE_LITERAL_BASE64BINARY, ParameterMode.OUT);
      call.setTargetEndpointAddress(TARGET_ENDPOINT_ADDRESS);

      ByteArrayHolder holder = new ByteArrayHolder();
      String in = new String("Some base64 msg");
      Object retObj = call.invoke(new Object[]{in.getBytes(), holder});
      assertNull(retObj);

      byte[] out = (byte[])call.getOutputParams().get("arrayOfbyte_2");
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.