Examples of EchoXmlResult


Examples of org.jboss.test.ws.interop.nov2007.wsse.EchoXmlResponse.EchoXmlResult

   {
      String text = "Hello!";
      ObjectFactory factory = new ObjectFactory();
      org.jboss.test.ws.interop.nov2007.wsse.EchoXml.Request request = new org.jboss.test.ws.interop.nov2007.wsse.EchoXml.Request();
      request.setAny(factory.createAnyType(text));
      EchoXmlResult result = port.echoXml(request);
      assertNotNull(result);
      assertEquals(text, ((JAXBElement)result.getAny()).getValue());
   }
View Full Code Here

Examples of org.jboss.test.ws.interop.nov2007.wsse.EchoXmlResponse.EchoXmlResult

   @SuppressWarnings("unchecked")
   public EchoXmlResult echoXml(org.jboss.test.ws.interop.nov2007.wsse.EchoXml.Request request)
   {
      System.out.println("echoXml, request=" + request);
      EchoXmlResult result = new EchoXmlResult();
      if (request != null)
      {
         Object any = request.getAny();
         System.out.println("echoXml, request.getAny()=" + any);
         if (any != null)
         {
            try
            {
               System.out.println("echoXml, inner value=" + ((JAXBElement)any).getValue());
            } catch (Exception e) {}
         }
         result.setAny(request.getAny());        
      }
      return result;
   }
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.