Package javax.xml.rpc.holders

Examples of javax.xml.rpc.holders.StringHolder


        }
    }

    public void testOut1InoutManyIn0 ()
    {
        StringHolder sh = new StringHolder ("out1InoutManyIn0");
        AddressHolder ah = new AddressHolder (expectedAddress);
        String ret = null;
        try
        {
            ret = io.out1InoutManyIn0 (sh, ah);
View Full Code Here


        }
    }

    public void testOut1InoutManyIn1 ()
    {
        StringHolder sh = new StringHolder ("out1InoutManyIn1");
        AddressHolder ah = new AddressHolder (expectedAddress);
        String ret = null;
        try
        {
            ret = io.out1InoutManyIn1 (sh, ah, expectedPhone);
View Full Code Here

        }
    }

    public void testOut1InoutManyInMany ()
    {
        StringHolder sh = new StringHolder ("out1InoutManyInMany");
        AddressHolder ah = new AddressHolder (expectedAddress);
        String ret = null;
        try
        {
            ret = io.out1InoutManyInMany (sh, ah, expectedPhone, expectedNumber);
View Full Code Here

        }
    }

    public void testOutManyInout0In0 ()
    {
        StringHolder sh = new StringHolder("outManyInout0In0");
        AddressHolder ah = new AddressHolder (expectedAddress);
        try
        {
            io.outManyInout0In0 (sh, ah);
            assertEquals (sh.value, " arghhh!");
View Full Code Here

      // Add a bound header to the call
      CallImpl mycall = (CallImpl)call;
      QName xmlName = new QName(HEADER_NAMESPACE_URI, "headerMsg");
      mycall.addParameter(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.INOUT, true);

      StringHolder holder = new StringHolder("INOUT header message");
      Object retObj = call.invoke(new Object[]{"Hello world!", holder});
      assertNull(retObj);

      Map outputParams = call.getOutputParams();
      Object headerValue = outputParams.get(xmlName.getLocalPart());
View Full Code Here

      // Add an unbound header to the call
      xmlName = new QName("http://otherns", "HeaderValue");
      call.addUnboundHeader(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.INOUT);
      call.setUnboundHeaderValue(xmlName, "Unbound INOUT header message");

      StringHolder boundHeader = new StringHolder("INOUT header message");
      Object retObj = call.invoke(new Object[]{"Hello world!", boundHeader});
      assertNull(retObj);

      assertEquals("INOUT header message - response", boundHeader.value);
View Full Code Here

      // Add an unbound header to the call
      xmlName = new QName("http://otherns", "HeaderValue");
      call.addUnboundHeader(xmlName, Constants.TYPE_LITERAL_STRING, String.class, ParameterMode.OUT);

      StringHolder boundHeader = new StringHolder();
      Object retObj = call.invoke(new Object[]{"Hello world!", boundHeader});
      assertNull(retObj);

      assertEquals("OUT header message", boundHeader.value);
View Full Code Here

      port.echoIn("Kermit");
   }

   public void testEchoOut() throws Exception
   {
      StringHolder varString = new StringHolder();
      port.echoOut(varString);
      assertEquals("Kermit", varString.value);
   }
View Full Code Here

      assertEquals("Kermit", varString.value);
   }

   public void testEchoInOut() throws Exception
   {
      StringHolder varString = new StringHolder("Ferrari");
      port.echoInOut(varString);
      assertEquals("Ferrari", varString.value);
   }
View Full Code Here

   }

   public void testEchoMix() throws Exception
   {
      String varInString = "in";
      StringHolder varInOutString = new StringHolder("inout");
      StringHolder varOutString = new StringHolder();
      port.echoMix(varInString, varInOutString, varOutString);
      assertEquals("inout", varInOutString.value);
      assertEquals("in", varOutString.value);
   }
View Full Code Here

TOP

Related Classes of javax.xml.rpc.holders.StringHolder

Copyright © 2018 www.massapicom. 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.