private void addInvokeOperation(boolean oneWay) { String name = oneWay ? INVOKE_ONEWAY_NAME : INVOKE_NAME; ServiceInfo info = client.getEndpoint().getEndpointInfo().getService(); OperationInfo opInfo = info.getInterface() .addOperation(oneWay ? INVOKE_ONEWAY_QNAME : INVOKE_QNAME); MessageInfo mInfo = opInfo.createMessage(new QName(DISPATCH_NS, name + "Request"), Type.INPUT); opInfo.setInput(name + "Request", mInfo); MessagePartInfo mpi = mInfo.addMessagePart("parameters"); if (context == null) { mpi.setTypeClass(cl); } mpi.setElement(true); if (!oneWay) { mInfo = opInfo.createMessage(new QName(DISPATCH_NS, name + "Response"), Type.OUTPUT); opInfo.setOutput(name + "Response", mInfo); mpi = mInfo.addMessagePart("parameters"); mpi.setElement(true); if (context == null) { mpi.setTypeClass(cl); } } for (BindingInfo bind : client.getEndpoint().getEndpointInfo().getService().getBindings()) { BindingOperationInfo bo = new BindingOperationInfo(bind, opInfo); bind.addOperation(bo); } }
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); } }
mpi.setTypeQName(Constants.XSD_ANYTYPE); BindingOperationInfo bo = new BindingOperationInfo(bind, op); op.setProperty("operation.is.synthetic", Boolean.TRUE); bo.setProperty("operation.is.synthetic", Boolean.TRUE);
public void updateUnwrappedOperation() { if (opInfo.isUnwrappedCapable() && opHolder == null) { opHolder = new BindingOperationInfo(bindingInfo, opInfo.getUnwrappedOperation(), this); } }
public void updateUnwrappedOperation() { if (opInfo.isUnwrappedCapable() && opHolder == null) { opHolder = new BindingOperationInfo(bindingInfo, opInfo.getUnwrappedOperation(), this); } }
public void updateUnwrappedOperation() { if (opInfo.isUnwrappedCapable() && opHolder == null) { opHolder = new BindingOperationInfo(bindingInfo, opInfo.getUnwrappedOperation(), this); } }
public void updateUnwrappedOperation() { if (opInfo.isUnwrappedCapable() && opHolder == null) { opHolder = new BindingOperationInfo(bindingInfo, opInfo.getUnwrappedOperation(), this); } }
public BindingOperationInfo buildOperation(QName opName, String inName, String outName) { for (OperationInfo op : getInterface().getOperations()) { if (opName.equals(op.getName()) && nameEquals(inName, op.getInputName(), op.getName().getLocalPart() + "Request") && nameEquals(outName, op.getOutputName(), op.getName().getLocalPart() + "Response")) { return new BindingOperationInfo(this, op); } } return null; }
public BindingOperationInfo buildOperation(QName opName, String inName, String outName) { for (OperationInfo op : getInterface().getOperations()) { if (opName.equals(op.getName()) && nameEquals(inName, op.getInputName(), op.getName().getLocalPart() + "Request") && nameEquals(outName, op.getOutputName(), op.getName().getLocalPart() + "Response")) { return new BindingOperationInfo(this, op); } } return null; }
public BindingOperationInfo buildOperation(QName opName, String inName, String outName) { for (OperationInfo op : getInterface().getOperations()) { if (opName.equals(op.getName()) && nameEquals(inName, op.getInputName(), op.getName().getLocalPart() + "Request") && nameEquals(outName, op.getOutputName(), op.getName().getLocalPart() + "Response")) { return new BindingOperationInfo(this, op); } } return null; }
public BindingOperationInfo buildOperation(QName opName, String inName, String outName) { for (OperationInfo op : getInterface().getOperations()) { if (opName.equals(op.getName()) && nameEquals(inName, op.getInputName(), op.getName().getLocalPart() + "Request") && nameEquals(outName, op.getOutputName(), op.getName().getLocalPart() + "Response")) { return new BindingOperationInfo(this, op); } } return null; }
public BindingOperationInfo(BindingInfo bi, OperationInfo opinfo) { bindingInfo = bi; opInfo = opinfo; if (opInfo.getInput() != null) { inputMessage = new BindingMessageInfo(opInfo.getInput(), this); } else { inputMessage = null; } if (opInfo.getOutput() != null) { outputMessage = new BindingMessageInfo(opInfo.getOutput(), this); } else { outputMessage = null; } Collection<FaultInfo> of = opinfo.getFaults(); if (of != null && !of.isEmpty()) { faults = new ConcurrentHashMap<>(of.size(), 0.75f, 2); for (FaultInfo fault : of) { faults.put(fault.getFaultName(), new BindingFaultInfo(fault, this)); } } if (opinfo.isUnwrappedCapable()) { opHolder = new BindingOperationInfo(bi, opinfo.getUnwrappedOperation(), this); } } BindingOperationInfo(BindingInfo bi, OperationInfo opinfo, BindingOperationInfo wrapped) {
public BindingOperationInfo(BindingInfo bi, OperationInfo opinfo) { bindingInfo = bi; opInfo = opinfo; if (opInfo.getInput() != null) { inputMessage = new BindingMessageInfo(opInfo.getInput(), this); } else { inputMessage = null; } if (opInfo.getOutput() != null) { outputMessage = new BindingMessageInfo(opInfo.getOutput(), this); } else { outputMessage = null; } Collection<FaultInfo> of = opinfo.getFaults(); if (of != null && !of.isEmpty()) { faults = new ConcurrentHashMap<>(of.size(), 0.75f, 2); for (FaultInfo fault : of) { faults.put(fault.getFaultName(), new BindingFaultInfo(fault, this)); } } if (opinfo.isUnwrappedCapable()) { opHolder = new BindingOperationInfo(bi, opinfo.getUnwrappedOperation(), this); } } BindingOperationInfo(BindingInfo bi, OperationInfo opinfo, BindingOperationInfo wrapped) {
public BindingOperationInfo(BindingInfo bi, OperationInfo opinfo) { bindingInfo = bi; opInfo = opinfo; if (opInfo.getInput() != null) { inputMessage = new BindingMessageInfo(opInfo.getInput(), this); } else { inputMessage = null; } if (opInfo.getOutput() != null) { outputMessage = new BindingMessageInfo(opInfo.getOutput(), this); } else { outputMessage = null; } Collection<FaultInfo> of = opinfo.getFaults(); if (of != null && !of.isEmpty()) { faults = new ConcurrentHashMap<QName, BindingFaultInfo>(of.size(), 0.75f, 2); for (FaultInfo fault : of) { faults.put(fault.getFaultName(), new BindingFaultInfo(fault, this)); } } if (opinfo.isUnwrappedCapable()) { opHolder = new BindingOperationInfo(bi, opinfo.getUnwrappedOperation(), this); } } BindingOperationInfo(BindingInfo bi, OperationInfo opinfo, BindingOperationInfo wrapped) {
public BindingOperationInfo(BindingInfo bi, OperationInfo opinfo) { bindingInfo = bi; opInfo = opinfo; if (opInfo.getInput() != null) { inputMessage = new BindingMessageInfo(opInfo.getInput(), this); } else { inputMessage = null; } if (opInfo.getOutput() != null) { outputMessage = new BindingMessageInfo(opInfo.getOutput(), this); } else { outputMessage = null; } Collection<FaultInfo> of = opinfo.getFaults(); if (of != null && !of.isEmpty()) { faults = new ConcurrentHashMap<QName, BindingFaultInfo>(of.size(), 0.75f, 2); for (FaultInfo fault : of) { faults.put(fault.getFaultName(), new BindingFaultInfo(fault, this)); } } if (opinfo.isUnwrappedCapable()) { opHolder = new BindingOperationInfo(bi, opinfo.getUnwrappedOperation(), this); } } BindingOperationInfo(BindingInfo bi, OperationInfo opinfo, BindingOperationInfo wrapped) {
private void addInvokeOperation(boolean oneWay) { String name = oneWay ? INVOKE_ONEWAY_NAME : INVOKE_NAME; ServiceInfo info = client.getEndpoint().getEndpointInfo().getService(); OperationInfo opInfo = info.getInterface() .addOperation(oneWay ? INVOKE_ONEWAY_QNAME : INVOKE_QNAME); MessageInfo mInfo = opInfo.createMessage(new QName(DISPATCH_NS, name + "Request"), Type.INPUT); opInfo.setInput(name + "Request", mInfo); MessagePartInfo mpi = mInfo.addMessagePart("parameters"); if (context == null) { mpi.setTypeClass(cl); } mpi.setElement(true); if (!oneWay) { mInfo = opInfo.createMessage(new QName(DISPATCH_NS, name + "Response"), Type.OUTPUT); opInfo.setOutput(name + "Response", mInfo); mpi = mInfo.addMessagePart("parameters"); mpi.setElement(true); if (context == null) { mpi.setTypeClass(cl); } } for (BindingInfo bind : client.getEndpoint().getEndpointInfo().getService().getBindings()) { BindingOperationInfo bo = new BindingOperationInfo(bind, opInfo); bind.addOperation(bo); } }
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); } }
mpi.setTypeQName(Constants.XSD_ANYTYPE); BindingOperationInfo bo = new BindingOperationInfo(bind, op); op.setProperty("operation.is.synthetic", Boolean.TRUE); bo.setProperty("operation.is.synthetic", Boolean.TRUE);