Package org.apache.axis2.jaxws.wrapper.impl

Examples of org.apache.axis2.jaxws.wrapper.impl.JAXBWrapperToolImpl.wrap()


                // Use the wrapper tool to get the child objects.
                JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
                Map<String, PropertyDescriptorPlus> pdMapForBean =
                        marshalDesc.getPropertyDescriptorMap(faultBeanClass);
                faultBean =
                        wrapperTool.wrap(faultBeanClass, childNames, childObjects, pdMapForBean);
                if (log.isErrorEnabled()) {
                    log.debug("Completed creation of the fault bean.");
                }
            } else {
                //if (log.isErrorEnabled()) {
View Full Code Here


                cls = MethodMarshallerUtils.loadClass(wrapperName);
            } catch (ClassNotFoundException e){
                cls = MethodMarshallerUtils.loadClass(wrapperName, endpointDesc.getAxisService().getClassLoader());
            }
            JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
            Object object = wrapperTool.wrap(cls, nameList, objectList, declaredClassMap,
                                             marshalDesc.getPropertyDescriptorMap(cls));

            QName wrapperQName = new QName(operationDesc.getResponseWrapperTargetNamespace(),
                                           operationDesc.getResponseWrapperLocalName());
View Full Code Here

                cls = MethodMarshallerUtils.loadClass(wrapperName);
            } catch (ClassNotFoundException e){
                cls = MethodMarshallerUtils.loadClass(wrapperName, endpointDesc.getAxisService().getClassLoader());
            }
            JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
            Object object = wrapperTool.wrap(cls, nameList, objectList, declardClassMap,
                                             marshalDesc.getPropertyDescriptorMap(cls));

            QName wrapperQName = new QName(operationDesc.getRequestWrapperTargetNamespace(),
                                           operationDesc.getRequestWrapperLocalName());
View Full Code Here

                cls = MethodMarshallerUtils.loadClass(wrapperName);
            } catch (ClassNotFoundException e){
                cls = MethodMarshallerUtils.loadClass(wrapperName, endpointDesc.getAxisService().getClassLoader());
            }
            JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
            Object object = wrapperTool.wrap(cls, nameList, objectList, declaredClassMap,
                                             marshalDesc.getPropertyDescriptorMap(cls));

            QName wrapperQName = new QName(operationDesc.getResponseWrapperTargetNamespace(),
                                           operationDesc.getResponseWrapperLocalName());
View Full Code Here

                cls = MethodMarshallerUtils.loadClass(wrapperName);
            } catch (ClassNotFoundException e){
                cls = MethodMarshallerUtils.loadClass(wrapperName, endpointDesc.getAxisService().getClassLoader());
            }
            JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
            Object object = wrapperTool.wrap(cls, nameList, objectList, declaredClassMap,
                                             marshalDesc.getPropertyDescriptorMap(cls));

            QName wrapperQName = new QName(operationDesc.getRequestWrapperTargetNamespace(),
                                           operationDesc.getRequestWrapperLocalName());
View Full Code Here

            String childName = "symbol";
            childNames.add(childName);
            String symbolObj = new String("IBM");
            Map<String, Object> childObjects= new WeakHashMap<String, Object>();
            childObjects.put(childName, symbolObj);
            Object jaxbObject = wrapper.wrap(jaxbClass, childNames, childObjects);
            org.test.stock2.GetPrice getPrice = (org.test.stock2.GetPrice)jaxbObject;

        }catch(JAXBWrapperException e){
            e.printStackTrace();
        }catch(ClassNotFoundException e){
View Full Code Here

            childObjects.put(fund, fundName);
            childObjects.put(holding, topHolding);
            childObjects.put(nav, navInMillion);

            Object jaxbObject = wrapper.wrap(jaxbClass, childNames, childObjects);
            org.test.stock1.GetPrice getPrice = (org.test.stock1.GetPrice)jaxbObject;

        }catch(JAXBWrapperException e){
            e.printStackTrace();
        }catch(ClassNotFoundException e){
View Full Code Here

                // Use the wrapper tool to get the child objects.
                JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
                Map<String, PropertyDescriptorPlus> pdMapForBean =
                        marshalDesc.getPropertyDescriptorMap(faultBeanClass);
                faultBean =
                        wrapperTool.wrap(faultBeanClass, childNames, childObjects, declaringClass, pdMapForBean);
                if (log.isErrorEnabled()) {
                    log.debug("Completed creation of the fault bean.");
                }
            } else {
                throw ExceptionFactory.makeWebServiceException(
View Full Code Here

                // Use the wrapper tool to get the child objects.
                JAXBWrapperTool wrapperTool = new JAXBWrapperToolImpl();
                Map<String, PropertyDescriptorPlus> pdMapForBean =
                        marshalDesc.getPropertyDescriptorMap(faultBeanClass);
                faultBean =
                        wrapperTool.wrap(faultBeanClass, childNames, childObjects, pdMapForBean);
                if (log.isErrorEnabled()) {
                    log.debug("Completed creation of the fault bean.");
                }
            } else {
                //if (log.isErrorEnabled()) {
View Full Code Here

      String childName = "symbol";
      childNames.add(childName);
      String symbolObj = new String("IBM");
      Map<String, Object> childObjects= new WeakHashMap<String, Object>();
      childObjects.put(childName, symbolObj);
      Object jaxbObject = wrapper.wrap(jaxbClass, childNames, childObjects);
      org.test.stock2.GetPrice getPrice = (org.test.stock2.GetPrice)jaxbObject;
     
    }catch(JAXBWrapperException e){
      e.printStackTrace();
    }catch(ClassNotFoundException e){
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.