Package javax.xml.ws

Examples of javax.xml.ws.Holder


        if (client) {
            List<Holder> outHolders = CastUtils.cast((List)message.getExchange()
                .getOutMessage().get(CLIENT_HOLDERS));
            for (MessagePartInfo part : parts) {
                if (part.getIndex() != 0 && part.getTypeClass() != null) {
                    Holder holder = (Holder)outHolders.get(part.getIndex() - 1);
                    if (holder != null) {
                        holder.value = inObjects.get(part);
                        inObjects.put(part, holder);
                    }
                }
View Full Code Here


                    }
                }
            }
            for (MessagePartInfo part : parts) {
                if (part.getIndex() > 0 && part.getTypeClass() != null) {
                    Holder holder = (Holder)outObjects.get(part);
                    outObjects.put(part, holder.value);
                }
            }
        } else {
            List<Object> holders = new ArrayList<Object>(outObjects);
View Full Code Here

            }
           
            for (MessagePartInfo part : parts) {
                int methodIdx = part.getIndex();
                if (methodIdx >= 0) {
                    Holder holder = (Holder) reqObjects.get(methodIdx);
                    Object o = holder.value;
                    if (methodIdx < outIdx && holderOutIsFirst) {
                        //Holder is first part of mesage
                        outObjects.add(methodIdx, o);
                    } else if (outIdx >= outObjects.size()) {
View Full Code Here

        for (MessagePartInfo part : parts) {
            int idx = part.getIndex();
            LOG.fine("part name: " + part.getName() + ", index: " + idx);
           
            if (idx >= 0) {
                Holder holder = (Holder) outObjects.get(idx);
                if (part.getProperty(ReflectionServiceFactoryBean.MODE_INOUT) != null) {
                    newObjects.set(idx, holder.value);
                    argsOffset[argsIndex++] = rmCount;
                   
                }
View Full Code Here

           
            List<Holder> holders = CastUtils.cast((List)exchange.get(CLIENT_HOLDERS));
            for (MessagePartInfo part : parts) {
                int idx = part.getIndex();
                if (idx >= 0) {
                    Holder holder = holders.get(holderIdx);
                    holder.value = inObjects.get(partIdx);
                    holderIdx++;
                    partIdx++;
                }
            }
        } else {
            for (MessagePartInfo part : parts) {
                int idx = part.getIndex();
                if (idx >= 0) {
                    if (part.getProperty(ReflectionServiceFactoryBean.MODE_INOUT) != null) {
                        Object object = inObjects.get(idx);
                        inObjects.set(idx, new Holder<Object>(object));
                    } else {
                        inObjects.add(idx, new Holder());
                    }
                }
            }
        }
    }
View Full Code Here

     * @throws ClassNotFoundException
     */
    static <T> Holder<T> createHolder(Class paramType, T value)
            throws IllegalAccessException, InstantiationException, ClassNotFoundException {
        if (Holder.class.isAssignableFrom(paramType)) {
            Holder holder = (Holder) paramType.newInstance();
            holder.value = value;
            return holder;
        }
        return null;
    }
View Full Code Here

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

            System.out.println("Service URL=" + serviceURL);
     
            ((BindingProvider)stub).getRequestContext().
                put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, serviceURL);

            stub.ping(new Holder("1"), new Holder("sun"), new Holder("Passed!"));
           
    }
View Full Code Here

TOP

Related Classes of javax.xml.ws.Holder

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.