Package org.apache.axis2.engine

Examples of org.apache.axis2.engine.DefaultObjectSupplier


            try {
                AxisService as = axisConfig.getService(this.getName());
                if (as != null) {
                    as.setActive(false);
                    axisConfig.notifyObservers(new AxisEvent(AxisEvent.SERVICE_STOP, as), as);
                }
                this.setRunning(false);
                auditInfo("Stopped the proxy service : " + name);
            } catch (AxisFault axisFault) {
                handleException("Error stopping the proxy service : " + name, axisFault);
View Full Code Here


        .doPrivileged(new PrivilegedAction<ClassLoader>() {
          public ClassLoader run() {
            return Thread.currentThread().getContextClassLoader();
          }
        });
    objectSupplier = new DefaultObjectSupplier();
    dataLocators = new HashMap();
    dataLocatorClassNames = new HashMap();
  }
View Full Code Here

                    return null;
                }
                try {
                    return BeanUtil.deserialize(ClassHelper.loadAClass(className,
                            description.getResourceClassLoader()),
                            tobeAdapted, new DefaultObjectSupplier(), null);
                } catch (AxisFault axisFault) {
                    throw new LoggedRuntimeException("Cannot create a custom Java object " +
                            "form XML. Java class is : " + className + " and XML is : " +
                            source, log);
                }
View Full Code Here

            return null;
        }
        try {
            return BeanUtil.deserialize(ClassHelper.loadAClass(className,
                    description.getResourceClassLoader()),
                    tobeAdapted, new DefaultObjectSupplier(), null);
        } catch (AxisFault axisFault) {
            throw new LoggedRuntimeException("Cannot create a custom Java object " +
                    "form XML. Java class is : " + className + " and XML is : " +
                    source, log);
        }
View Full Code Here

                                   Collection<Class> parameters,
                                   String[] strings) {
        try {
            Object[] objects =
                    BeanUtil.deserialize(tobeAdapted, parameters.toArray(
                            new Object[parameters.size()]), new DefaultObjectSupplier(),
                            strings, null);

            if (parameters.size() != objects.length) {
                throw new LoggedRuntimeException("Error processing value for the " +
                        "Axis2operation : required arguments can not be found." +
View Full Code Here

        .doPrivileged(new PrivilegedAction() {
          public Object run() {
            return Thread.currentThread().getContextClassLoader();
          }
        });
    objectSupplier = new DefaultObjectSupplier();
    dataLocators = new HashMap();
    dataLocatorClassNames = new HashMap();
  }
View Full Code Here

    private void printBookData(OMElement element) throws Exception {
        if (element != null) {
            Iterator values = element.getChildrenWithName(new QName("http://servicelifecycle.sample", "return"));
            while (values.hasNext()) {
                OMElement omElement = (OMElement) values.next();
                Book book = (Book) BeanUtil.deserialize(Book.class, omElement, new DefaultObjectSupplier(), "book");
                System.out.println("Isbn : " + book.getIsbn());
                System.out.println("Author : " + book.getAuthor());
                System.out.println("Title : " + book.getTitle());
                System.out.println("");
            }
View Full Code Here

        args.add(bean);
        args.add("159");

        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "editBean", "req"), args.toArray());
        MyBean resBean = (MyBean)BeanUtil.deserialize(MyBean.class, response.getFirstElement(),
                                                      new DefaultObjectSupplier(), null);
        assertNotNull(resBean);
        assertEquals(resBean.getAge(), 159);
    }
View Full Code Here


        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "echoBean", "req"), args.toArray());
        MyBean resBean = (MyBean)BeanUtil.deserialize(MyBean.class,
                                                      response.getFirstElement(),
                                                      new DefaultObjectSupplier(), null);
//        MyBean resBean =(MyBean) new  BeanSerializer(MyBean.class,response).deserilze();
        assertNotNull(resBean);
        assertEquals(resBean.getAge(), 100);
    }
View Full Code Here

        args.add(mail);


        OMElement response = sender.invokeBlocking(new QName("http://rpc.axis2.apache.org", "echoMail", "req"), args.toArray());
        Mail resBean = (Mail)BeanUtil.deserialize(Mail.class, response.getFirstElement(),
                                                  new DefaultObjectSupplier(), null);
//        MyBean resBean =(MyBean) new  BeanSerializer(MyBean.class,response).deserilze();
        assertNotNull(resBean);
        assertEquals(resBean.getBody(), "My Body");
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.engine.DefaultObjectSupplier

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.