QName wrapperName = null; for (MessagePartInfo p : wrappedMessageInfo.getMessageParts()) { if (wrapperClass == p.getTypeClass()) { wrapperName = p.getElementQName(); if (p.getTypeClass() != null) { int idx = p.getIndex(); ensureSize(elTypeNames, idx); partClasses.set(idx, p.getTypeClass()); partNames.set(idx, p.getName().getLocalPart());
QName wrapperName = null; for (MessagePartInfo p : wrappedMessageInfo.getMessageParts()) { if (p.getTypeClass() == wrapperClass) { wrapperName = p.getElementQName(); if (p.getTypeClass() == null) { partClasses.set(p.getIndex(), p.getTypeClass());
String ct = dh.getContentType(); Object o = null; Class<?> typeClass = mpi.getTypeClass(); if (DataHandler.class.isAssignableFrom(typeClass)) { o = dh;
if (inf.getTypeClass() == null) { MessageInfo messageInfo = opInfo.getUnwrappedOperation().getInput(); createWrapperClass(inf, if (messageInfo != null) { inf = opInfo.getOutput().getFirstMessagePart(); if (inf.getTypeClass() == null) { createWrapperClass(inf, messageInfo,
Class<?> wrapperClass = wrapperPart.getTypeClass(); Object wrappedObject = lst.get(wrapperPart.getIndex()); if (wrapperClass == null || wrappedObject == null count++; newParams.put(part, lst.get(mpi)); } else if (mpi == null || mpi.getTypeClass() == null) {
if (part.getIndex() > 0 && part.getTypeClass() != null) { Holder<?> holder = (Holder<?>)outObjects.get(part); outObjects.put(part, holder.value);
Class<?> clz = mpi.getTypeClass(); Object obj = mpi.getProperty(ReflectionServiceFactoryBean.RAW_CLASS); if (obj != null) {
.getOutMessage().get(CLIENT_HOLDERS)); for (MessagePartInfo part : parts) { if (part.getIndex() != 0 && part.getTypeClass() != null) { @SuppressWarnings("unchecked") Holder<Object> holder = (Holder<Object>)outHolders.get(part.getIndex() - 1); for (MessagePartInfo part : parts) { int idx = part.getIndex() - 1; if (idx >= 0 && part.getTypeClass() != null) { if (inObjects == null) {
public Long getWrapperPartMinOccurs(MessagePartInfo mpi) { String miString = (String)mpi.getProperty("minOccurs"); if (miString != null) { return Long.valueOf(miString, 10); } // If no explicit spec and not a primitive type (i.e. mappable to null) // set to 0. if (mpi.getTypeClass() != null && !mpi.getTypeClass().isPrimitive()) { return Long.valueOf(0); } return null; } }
public Long getWrapperPartMinOccurs(MessagePartInfo mpi) { String miString = (String)mpi.getProperty("minOccurs"); if (miString != null) { return Long.valueOf(miString, 10); } // If no explicit spec and not a primitive type (i.e. mappable to null) // set to 0. if (mpi.getTypeClass() != null && !mpi.getTypeClass().isPrimitive()) { return Long.valueOf(0); } return null; } }
public Long getWrapperPartMinOccurs(MessagePartInfo mpi) { String miString = (String)mpi.getProperty("minOccurs"); if (miString != null) { return Long.valueOf(miString, 10); } // If no explicit spec and not a primitive type (i.e. mappable to null) // set to 0. if (mpi.getTypeClass() != null && !mpi.getTypeClass().isPrimitive()) { return Long.valueOf(0); } return null; } }
public Object read(MessagePartInfo part, XMLStreamReader input) { return read(null, input, part.getTypeClass()); }
public static boolean isAssignableOperationInfo(OperationInfo oi, Class<?> cls) { MessageInfo mi = oi.getInput(); List<MessagePartInfo> mpis = mi.getMessageParts(); return mpis.size() == 1 && cls.isAssignableFrom(mpis.get(0).getTypeClass()); }
protected boolean shouldWrapParameters(MessageInfo msgInfo, Message message) { Object keepParametersWrapperFlag = message.get(KEEP_PARAMETERS_WRAPPER); if (keepParametersWrapperFlag == null) { return msgInfo.getMessageParts().get(0).getTypeClass() != null; } else { return Boolean.parseBoolean(keepParametersWrapperFlag.toString()); } } }
protected boolean shouldWrapParameters(MessageInfo msgInfo, Message message) { Object keepParametersWrapperFlag = message.get(KEEP_PARAMETERS_WRAPPER); if (keepParametersWrapperFlag == null) { return msgInfo.getFirstMessagePart().getTypeClass() != null; } return Boolean.parseBoolean(keepParametersWrapperFlag.toString()); } }
protected boolean shouldWrapParameters(MessageInfo msgInfo, Message message) { Object keepParametersWrapperFlag = message.get(KEEP_PARAMETERS_WRAPPER); if (keepParametersWrapperFlag == null) { return msgInfo.getMessageParts().get(0).getTypeClass() != null; } else { return Boolean.parseBoolean(keepParametersWrapperFlag.toString()); } } }
public static boolean isAssignableOperationInfo(OperationInfo oi, Class<?> cls) { MessageInfo mi = oi.getInput(); List<MessagePartInfo> mpis = mi.getMessageParts(); return mpis.size() == 1 && cls.isAssignableFrom(mpis.get(0).getTypeClass()); }
wrapped = wrappedMsgInfo.getFirstMessagePart().getTypeClass();
private void checkForJAXBAnnotations(MessagePartInfo mpi, SchemaCollection schemaCollection, String ns) { Annotation[] anns = (Annotation[])mpi.getProperty("parameter.annotations"); JAXBContextProxy ctx = JAXBUtils.createJAXBContextProxy(context, schemaCollection, ns); XmlJavaTypeAdapter jta = JAXBSchemaInitializer.findFromTypeAdapter(ctx, mpi.getTypeClass(), anns); if (jta != null) { JAXBBeanInfo jtaBeanInfo = JAXBSchemaInitializer.findFromTypeAdapter(ctx, jta.value()); JAXBBeanInfo beanInfo = JAXBSchemaInitializer.getBeanInfo(ctx, mpi.getTypeClass()); if (jtaBeanInfo != beanInfo) { mpi.setProperty("parameter.annotations", anns); mpi.setProperty("honor.jaxb.annotations", Boolean.TRUE); } } }
public static void marshallNullElement(Marshaller marshaller, Object source, MessagePartInfo part) { Class<?> clazz = part != null ? part.getTypeClass() : null; try { writeObject(marshaller, source, newJAXBElement(part.getElementQName(), clazz, null)); } catch (JAXBException e) { throw new Fault(new Message("MARSHAL_ERROR", LOG, e.getMessage()), e); } }