void initializeWrapping(OperationInfo o, Method selected) { Class<?> responseWrapper = getResponseWrapper(selected); if (responseWrapper != null) { o.getOutput().getFirstMessagePart().setTypeClass(responseWrapper); } if (getResponseWrapperClassName(selected) != null) { o.getOutput().getFirstMessagePart().setProperty("RESPONSE.WRAPPER.CLASSNAME", getResponseWrapperClassName(selected)); } Class<?> requestWrapper = getRequestWrapper(selected); if (requestWrapper != null) { o.getInput().getFirstMessagePart().setTypeClass(requestWrapper); } if (getRequestWrapperClassName(selected) != null) { o.getInput().getFirstMessagePart().setProperty("REQUEST.WRAPPER.CLASSNAME", getRequestWrapperClassName(selected)); } }
continue; MessagePartInfo inf = opInfo.getInput().getFirstMessagePart(); if (inf.getTypeClass() == null) { MessageInfo messageInfo = opInfo.getUnwrappedOperation().getInput(); inf = opInfo.getOutput().getFirstMessagePart(); if (inf.getTypeClass() == null) { createWrapperClass(inf,
MessagePartInfo wrapperPart = wrappedMessageInfo.getFirstMessagePart(); Class<?> wrapperClass = wrapperPart.getTypeClass(); Object wrappedObject = lst.get(wrapperPart.getIndex());
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()); } }
wrapped = wrappedMsgInfo.getFirstMessagePart().getTypeClass(); MessagePartInfo firstMessagePart = wrappedMsgInfo.getFirstMessagePart(); MessageContentsList objs = MessageContentsList.getContentsList(message); WrapperHelper helper = firstMessagePart.getProperty("WRAPPER_CLASS", WrapperHelper.class);
void initializeWrapping(OperationInfo o, Method selected) { Class<?> responseWrapper = getResponseWrapper(selected); if (responseWrapper != null) { o.getOutput().getFirstMessagePart().setTypeClass(responseWrapper); } if (getResponseWrapperClassName(selected) != null) { o.getOutput().getFirstMessagePart().setProperty("RESPONSE.WRAPPER.CLASSNAME", getResponseWrapperClassName(selected)); } Class<?> requestWrapper = getRequestWrapper(selected); if (requestWrapper != null) { o.getInput().getFirstMessagePart().setTypeClass(requestWrapper); } if (getRequestWrapperClassName(selected) != null) { o.getInput().getFirstMessagePart().setProperty("REQUEST.WRAPPER.CLASSNAME", getRequestWrapperClassName(selected)); } }
@Override public void setOperationInfo(final OperationInfo op) { super.setOperationInfo(op); MessagePartInfo mpi = op.getOutput().getFirstMessagePart(); setName(mpi.getElementQName()); setClassName((String)mpi.getProperty("RESPONSE.WRAPPER.CLASSNAME")); }
@Override public void setOperationInfo(final OperationInfo op) { super.setOperationInfo(op); MessagePartInfo mpi = op.getOutput().getFirstMessagePart(); setName(mpi.getElementQName()); setClassName((String)mpi.getProperty("RESPONSE.WRAPPER.CLASSNAME")); }
@Override public void setOperationInfo(final OperationInfo op) { super.setOperationInfo(op); MessagePartInfo mpi = op.getInput().getFirstMessagePart(); setName(mpi.getElementQName()); setClassName((String)mpi.getProperty("REQUEST.WRAPPER.CLASSNAME")); }
@Override public void setOperationInfo(final OperationInfo op) { super.setOperationInfo(op); MessagePartInfo mpi = op.getInput().getFirstMessagePart(); setName(mpi.getElementQName()); setClassName((String)mpi.getProperty("REQUEST.WRAPPER.CLASSNAME")); }
private void getBindingOperationForEmptyBody(Collection<OperationInfo> operations, Endpoint ep, Exchange exchange) { // TO DO : check duplicate operation with no input and also check if the action matches for (OperationInfo op : operations) { MessageInfo bmsg = op.getInput(); int bPartsNum = bmsg.getMessagePartsNumber(); if (bPartsNum == 0 || (bPartsNum == 1 && Constants.XSD_ANYTYPE.equals(bmsg.getFirstMessagePart().getTypeQName()))) { BindingOperationInfo boi = ep.getEndpointInfo().getBinding().getOperation(op); exchange.put(BindingOperationInfo.class, boi); exchange.setOneWay(op.isOneWay()); } } }
QName name = messageInfo.getFirstMessagePart().getConcreteName();
if (op.getInput() != null && op.getInput().getMessagePartsNumber() == 1) { MessagePartInfo part = op.getInput().getFirstMessagePart(); if (part.getElementQName() == null) { continue;
MessagePartInfo mpi = boi.getInput().getMessageInfo().getFirstMessagePart(); if ("RequestSecurityToken".equals(mpi.getConcreteName().getLocalPart())) { return boi;
MessagePartInfo mpi = boi.getInput().getMessageInfo().getFirstMessagePart(); if ("RequestSecurityToken".equals(mpi.getConcreteName().getLocalPart())) { return boi;
continue; MessagePartInfo inf = opInfo.getInput().getFirstMessagePart(); if (inf.getTypeClass() == null) { MessageInfo messageInfo = opInfo.getUnwrappedOperation().getInput(); inf = opInfo.getOutput().getFirstMessagePart(); if (inf.getTypeClass() == null) { createWrapperClass(inf,
return; MessagePartInfo part = inputMessage.getFirstMessagePart();
private void setWrapper(OperationInfo operation) { MessagePartInfo inputPart = null; if (operation.getInput() != null) { inputPart = operation.getInput().getFirstMessagePart(); } MessagePartInfo outputPart = null; if (operation.getOutput() != null) { outputPart = operation.getOutput().getFirstMessagePart(); } if (inputPart != null) { wrapperRequest = new JavaParameter(); wrapperRequest.setName(ProcessorUtil.resolvePartName(inputPart)); wrapperRequest.setType(ProcessorUtil.getPartType(inputPart)); wrapperRequest.setTargetNamespace(ProcessorUtil.resolvePartNamespace(inputPart)); wrapperRequest.setClassName(ProcessorUtil.getFullClzName(inputPart, context, false)); } if (outputPart != null) { wrapperResponse = new JavaParameter(); wrapperResponse.setName(ProcessorUtil.resolvePartName(outputPart)); wrapperResponse.setType(ProcessorUtil.getPartType(outputPart)); wrapperResponse.setTargetNamespace(ProcessorUtil.resolvePartNamespace(outputPart)); wrapperResponse.setClassName(ProcessorUtil.getFullClzName(outputPart, context, false)); } }
if (op.getUnwrappedOperation() != null) { if (op.hasInput()) { MessagePartInfo fmpi = op.getInput().getFirstMessagePart(); if (fmpi.getTypeClass() == null) { MessagePartInfo fmpi = op.getOutput().getFirstMessagePart(); if (fmpi.getTypeClass() == null) {
wrapped = wrappedMsgInfo.getFirstMessagePart().getTypeClass(); MessagePartInfo firstMessagePart = wrappedMsgInfo.getFirstMessagePart(); MessageContentsList objs = MessageContentsList.getContentsList(message); WrapperHelper helper = firstMessagePart.getProperty("WRAPPER_CLASS", WrapperHelper.class);