Refine search
private void addInvokeOperation(QName operationName, boolean oneWay) { ServiceInfo info = client.getEndpoint().getEndpointInfo().getService(); OperationInfo invokeOpInfo = info.getInterface() .getOperation(oneWay ? INVOKE_ONEWAY_QNAME : INVOKE_QNAME); OperationInfo opInfo = info.getInterface().addOperation(operationName); opInfo.setInput(invokeOpInfo.getInputName(), invokeOpInfo.getInput()); if (!oneWay) { opInfo.setOutput(invokeOpInfo.getOutputName(), invokeOpInfo.getOutput()); } for (BindingInfo bind : client.getEndpoint().getEndpointInfo().getService().getBindings()) { BindingOperationInfo bo = new BindingOperationInfo(bind, opInfo); bind.addOperation(bo); } }
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(); createWrapperClass(inf, messageInfo, true); MessageInfo messageInfo = opInfo.getUnwrappedOperation().getOutput(); if (messageInfo != null) { inf = opInfo.getOutput().getFirstMessagePart(); if (inf.getTypeClass() == null) { createWrapperClass(inf,
public BindingInfo createBindingInfo(ServiceInfo service, String namespace, Object config) { BindingInfo info = new BindingInfo(service, "http://cxf.apache.org/bindings/xformat"); info.setName(new QName(service.getName().getNamespaceURI(), service.getName().getLocalPart() + "XMLBinding")); for (OperationInfo op : service.getInterface().getOperations()) { adjustConcreteNames(op.getInput()); adjustConcreteNames(op.getOutput()); BindingOperationInfo bop = info.buildOperation(op.getName(), op.getInputName(), op.getOutputName()); info.addOperation(bop); } return info; }
public BindingInfo createBindingInfo(ServiceInfo service, String namespace, Object config) { BindingInfo info = new BindingInfo(service, "http://cxf.apache.org/bindings/xformat"); info.setName(new QName(service.getName().getNamespaceURI(), service.getName().getLocalPart() + "XMLBinding")); for (OperationInfo op : service.getInterface().getOperations()) { adjustConcreteNames(op.getInput()); adjustConcreteNames(op.getOutput()); BindingOperationInfo bop = info.buildOperation(op.getName(), op.getInputName(), op.getOutputName()); info.addOperation(bop); } return info; }
bop.setUnwrappedOperation(null); if (o.getInput() != null) { final List<MessagePartInfo> messageParts; if (o.getInput().getMessagePartsNumber() == 0) { MessagePartInfo inf = o.getInput().addMessagePart(o.getName()); inf.setConcreteName(o.getName()); messageParts = o.getInput().getMessageParts(); bop.getInput().setMessageParts(messageParts); } else { messageParts = o.getInput().getMessageParts(); if (o.getOutput() != null) { final List<MessagePartInfo> messageParts; if (o.getOutput().getMessagePartsNumber() == 0) { MessagePartInfo inf = o.getOutput().addMessagePart(o.getName()); inf.setConcreteName(new QName(o.getName().getNamespaceURI(), o.getName().getLocalPart() + "Response"));
private void addInvokeOperation(QName operationName, boolean oneWay) { ServiceInfo info = client.getEndpoint().getEndpointInfo().getService(); OperationInfo invokeOpInfo = info.getInterface() .getOperation(oneWay ? INVOKE_ONEWAY_QNAME : INVOKE_QNAME); OperationInfo opInfo = info.getInterface().addOperation(operationName); opInfo.setInput(invokeOpInfo.getInputName(), invokeOpInfo.getInput()); if (!oneWay) { opInfo.setOutput(invokeOpInfo.getOutputName(), invokeOpInfo.getOutput()); } for (BindingInfo bind : client.getEndpoint().getEndpointInfo().getService().getBindings()) { BindingOperationInfo bo = new BindingOperationInfo(bind, opInfo); bind.addOperation(bo); } }
operation.getInput().addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, inputAction); operation.getInput().addExtensionAttribute(JAXWSAConstants.WSAW_ACTION_QNAME, inputAction); if (operation.getOutput() != null) { operation.getOutput().addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, computeAction(operation, "Response")); operation.getOutput().addExtensionAttribute(JAXWSAConstants.WSAW_ACTION_QNAME, computeAction(operation, "Response")); MessageInfo input = operation.getInput(); input.addExtensionAttribute(JAXWSAConstants.WSAM_ACTION_QNAME, inputAction); if (!StringUtils.isEmpty(action.input())) {
if (messageInfo == bop.getOperationInfo().getInput()) { message.put(MessageInfo.class, newbop.getOperationInfo().getInput()); message.put(BindingMessageInfo.class, newbop.getInput()); } else if (messageInfo == bop.getOperationInfo().getOutput()) { message.put(MessageInfo.class, newbop.getOperationInfo().getOutput()); message.put(BindingMessageInfo.class, newbop.getOutput());
private void initMessagesMap() { messages = new ConcurrentHashMap<>(16, 0.75f, 2); for (OperationInfo operation : getInterface().getOperations()) { if (operation.getInput() != null) { messages.put(operation.getInput().getName(), operation.getInput()); } if (operation.getOutput() != null) { messages.put(operation.getOutput().getName(), operation.getOutput()); } } }
private void initMessagesMap() { messages = new ConcurrentHashMap<>(16, 0.75f, 2); for (OperationInfo operation : getInterface().getOperations()) { if (operation.getInput() != null) { messages.put(operation.getInput().getName(), operation.getInput()); } if (operation.getOutput() != null) { messages.put(operation.getOutput().getName(), operation.getOutput()); } } }
private void initMessagesMap() { messages = new ConcurrentHashMap<QName, MessageInfo>(16, 0.75f, 2); for (OperationInfo operation : getInterface().getOperations()) { if (operation.getInput() != null) { messages.put(operation.getInput().getName(), operation.getInput()); } if (operation.getOutput() != null) { messages.put(operation.getOutput().getName(), operation.getOutput()); } } }
private void initMessagesMap() { messages = new ConcurrentHashMap<QName, MessageInfo>(16, 0.75f, 2); for (OperationInfo operation : getInterface().getOperations()) { if (operation.getInput() != null) { messages.put(operation.getInput().getName(), operation.getInput()); } if (operation.getOutput() != null) { messages.put(operation.getOutput().getName(), operation.getOutput()); } } }
protected MessageInfo getMessageInfo(Message message, BindingOperationInfo operation, boolean requestor) { MessageInfo msgInfo; OperationInfo intfOp = operation.getOperationInfo(); if (requestor) { msgInfo = intfOp.getOutput(); message.put(MessageInfo.class, intfOp.getOutput()); } else { msgInfo = intfOp.getInput(); message.put(MessageInfo.class, intfOp.getInput()); } return msgInfo; } }
protected MessageInfo getMessageInfo(Message message, BindingOperationInfo operation, boolean requestor) { MessageInfo msgInfo; OperationInfo intfOp = operation.getOperationInfo(); if (requestor) { msgInfo = intfOp.getOutput(); message.put(MessageInfo.class, intfOp.getOutput()); } else { msgInfo = intfOp.getInput(); message.put(MessageInfo.class, intfOp.getInput()); } return msgInfo; } }
protected MessageInfo getMessageInfo(Message message, BindingOperationInfo operation, boolean requestor) { MessageInfo msgInfo; OperationInfo intfOp = operation.getOperationInfo(); if (requestor) { msgInfo = intfOp.getOutput(); message.put(MessageInfo.class, intfOp.getOutput()); } else { msgInfo = intfOp.getInput(); message.put(MessageInfo.class, intfOp.getInput()); } return msgInfo; } }
protected MessageInfo getMessageInfo(Message message, BindingOperationInfo operation, boolean requestor) { MessageInfo msgInfo; OperationInfo intfOp = operation.getOperationInfo(); if (requestor) { msgInfo = intfOp.getOutput(); message.put(MessageInfo.class, intfOp.getOutput()); } else { msgInfo = intfOp.getInput(); message.put(MessageInfo.class, intfOp.getInput()); } return msgInfo; } }