Package javax.xml.rpc

Examples of javax.xml.rpc.Call.addParameter()


   public Byte[][] byteWrapperMultiArrayTest(Byte[][] params) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "byteWrapperMultiArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "ByteArrayArray");
      call.addParameter("arrayOfarrayOfByte_1", xmlType, params.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, params.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (Byte[][])call.invoke(new Object[] { params });
   }


   public QName qnameTest(QName param) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "qnameTest"));
      call.addParameter("QName_1", Constants.TYPE_LITERAL_QNAME, param.getClass(), ParameterMode.IN);
      call.setReturnType(Constants.TYPE_LITERAL_QNAME, param.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (QName)call.invoke(new Object[] { param });
   }

   public Float[] floatWrapperArrayTest(Float[] params) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "floatWrapperArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "FloatArray");
      call.addParameter("arrayOfFloat_1", xmlType, params.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, params.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (Float[])call.invoke(new Object[] { params });
   }

   public Float[][] floatWrapperMultiArrayTest(Float[][] params) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "floatWrapperMultiArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "FloatArrayArray");
      call.addParameter("arrayOfarrayOfFloat_1", xmlType, params.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, params.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (Float[][])call.invoke(new Object[] { params });
   }

   public int intTest(int primParam) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "intTest"));
      call.addParameter("int_1", Constants.TYPE_LITERAL_INT, int.class, ParameterMode.IN);
      call.setReturnType(Constants.TYPE_LITERAL_INT, int.class);
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      Integer param = new Integer(primParam);
      param = (Integer)call.invoke(new Object[] { param });
      primParam = param.intValue();

   public int[] intArrayTest(int[] primParams) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "intArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "intArray");
      call.addParameter("arrayOfint_1", xmlType, primParams.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, primParams.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      primParams = (int[])call.invoke(new Object[] { primParams });
      return primParams;
   }

   public int[][] intMultiArrayTest(int[][] primParams) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "intMultiArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "intArrayArray");
      call.addParameter("arrayOfarrayOfint_1", xmlType, primParams.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, primParams.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      primParams = (int[][])call.invoke(new Object[] { primParams });
      return primParams;
   }

   public Integer intWrapperTest(Integer param) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "intWrapperTest"));
      call.addParameter("Integer_1", Constants.TYPE_LITERAL_INT, param.getClass(), ParameterMode.IN);
      call.setReturnType(Constants.TYPE_LITERAL_INT, param.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (Integer)call.invoke(new Object[] { param });
   }

   public Integer[] intWrapperArrayTest(Integer[] params) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "intWrapperArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "IntegerArray");
      call.addParameter("arrayOfInteger_1", xmlType, params.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, params.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (Integer[])call.invoke(new Object[] { params });
   }

   public Integer[][] intWrapperMultiArrayTest(Integer[][] params) throws Exception
   {
      Call call = service.createCall();
      call.setOperationName(new QName(TARGET_NAMESPACE, "intWrapperMultiArrayTest"));
      QName xmlType = new QName("http://org.jboss.ws/marshall/rpclit/types", "IntegerArrayArray");
      call.addParameter("arrayOfarrayOfInteger_1", xmlType, params.getClass(), ParameterMode.IN);
      call.setReturnType(xmlType, params.getClass());
      call.setTargetEndpointAddress(TARGET_ADDRESS);
      return (Integer[][])call.invoke(new Object[] { params });
   }

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.