Package javax.xml.ws

Examples of javax.xml.ws.Holder


            super(idx);
        }

        @Override
        void put(Object obj, Object[] args) {
            Holder holder = new Holder();
            if (obj != null) {
                holder.value = obj;
            }
            args[idx] = holder;
        }
View Full Code Here


            List<DataType> inputTypes = operation.getInputType().getLogical();
            // Returned Holder data <T> are placed back in Holder<T>.
            for (int i = 0, size = inputTypes.size(); i < size; i++) {
                if (operation.getParameterModes().get(i) != ParameterMode.IN) {
                    // Pop results and place in holder (demote).
                    Holder holder = (Holder)args[i];
                    holder.value = result;
                }
            }
        }
View Full Code Here

            }
            MessageContentsList parameters = MessageContentsList.getContentsList(message);
            for (SoapHeaderInfo headerInfo : headersInfo) {
                Object o = parameters.get(headerInfo.getPart());
                if (o instanceof Holder) {
                    Holder holder = (Holder)o;
                    holder.value = null;
                } else {
                    parameters.remove(headerInfo.getPart());
                }
            }
View Full Code Here

            }
            MessageContentsList parameters = MessageContentsList.getContentsList(message);
            for (SoapHeaderInfo headerInfo : headersInfo) {
                Object o = parameters.get(headerInfo.getPart());
                if (o instanceof Holder) {
                    Holder holder = (Holder)o;
                    holder.value = null;
                } else {
                    parameters.remove(headerInfo.getPart());
                }
            }
View Full Code Here

     */
    public Object createHolderValue(Object value) {
        if (isResponse() || isIN()) {
            return value;
        }
        return new Holder(value);
    }
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

                    LOG.severe("CANNOT_SET_HOLDER_OBJECTS");
                }
            }
            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 (int i = 0; i < para.length; i++) {
                if (para[i] instanceof ParameterizedType) {
                    ParameterizedType paramType = (ParameterizedType)para[i];
                    if (((Class)paramType.getRawType()).getName().equals("javax.xml.ws.Holder")) {
                        if (i >= params.size()) {
                            params.add(new Holder());
                        } else {
                            params.set(i, new Holder(params.get(i)));
                        }
                    }
                }
            }
        }
View Full Code Here

      inout.setUuid("1234");

      Basket basket = new Basket();
      basket.setCustomerId("4567");
     
      Receipt receipt = port.submitBasket(new Holder(inout), basket);
      assertTrue(receipt.getMsg().equals("1234"));
   }
View Full Code Here

            List<DataType> inputTypes = operation.getInputType().getLogical();
            // Returned Holder data <T> are placed back in Holder<T>.
            for (int i = 0, size = inputTypes.size(); i < size; i++) {
                if (operation.getParameterModes().get(i) != ParameterMode.IN) {
                    // Pop results and place in holder (demote).
                    Holder holder = (Holder)args[i];
                    holder.value = result;
                }
            }
        }
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.