public static Binding doAppendBinding(Definition wsdlDefinition, String name, PortType portType, ExtensionRegistry extReg) throws Exception { Binding binding = wsdlDefinition.createBinding(); binding.setQName(new QName(wsdlDefinition.getTargetNamespace(), name + bindingName)); binding.setUndefined(false); binding.setPortType(portType); setSoapBindingExtElement(wsdlDefinition, binding, extReg); addBindingOperation(wsdlDefinition, portType, binding, extReg); return binding; }
private static BindingOutput getBindingOutput(Output output, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getSoapBody(BindingOutput.class, extReg)); return bo; }
javax.wsdl.Service wsdlService = definition.getService(serviceName); if (wsdlService == null) { if ((!PartialWSDLProcessor.isServiceExisted(definition, serviceName)) && (!PartialWSDLProcessor.isBindingExisted(definition, serviceName)) && (PartialWSDLProcessor.isPortTypeExisted(definition, serviceName))) { try { Map<QName, PortType> portTypes = CastUtils.cast(definition.getAllPortTypes()); Binding binding = PartialWSDLProcessor.doAppendBinding(definition, existPortName, portType, extReg); definition.addBinding(binding); wsdlService = PartialWSDLProcessor.doAppendService(definition, existPortName, extReg, binding); definition.addService(wsdlService);
@SuppressWarnings("unchecked") private static void addBindingOperation(Definition wsdlDefinition, PortType portType, Binding binding, ExtensionRegistry extReg) throws Exception { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); setSoapOperationExtElement(bindingOperation, extReg); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), wsdlDefinition, extReg)); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), wsdlDefinition, extReg)); } if (op.getFaults() != null && op.getFaults().size() > 0) { addSoapFaults(op, bindingOperation, wsdlDefinition, extReg); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
javax.wsdl.Service wsdlService = definition.getService(serviceName); if (wsdlService == null) { if ((!PartialWSDLProcessor.isServiceExisted(definition, serviceName)) && (!PartialWSDLProcessor.isBindingExisted(definition, serviceName)) && (PartialWSDLProcessor.isPortTypeExisted(definition, serviceName))) { try { Map<QName, PortType> portTypes = CastUtils.cast(definition.getPortTypes()); Binding binding = PartialWSDLProcessor.doAppendBinding(definition, existPortName, portType, extReg); definition.addBinding(binding); wsdlService = PartialWSDLProcessor.doAppendService(definition, existPortName, extReg, binding); definition.addService(wsdlService);
@SuppressWarnings("unchecked") private static void addBindingOperation(Definition wsdlDefinition, PortType portType, Binding binding, ExtensionRegistry extReg) throws Exception { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); setSoapOperationExtElement(bindingOperation, extReg); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), wsdlDefinition, extReg)); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), wsdlDefinition, extReg)); } if (op.getFaults() != null && op.getFaults().size() > 0) { addSoapFaults(op, bindingOperation, wsdlDefinition, extReg); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
javax.wsdl.Service wsdlService = definition.getService(serviceName); if (wsdlService == null) { if ((!PartialWSDLProcessor.isServiceExisted(definition, serviceName)) && (!PartialWSDLProcessor.isBindingExisted(definition, serviceName)) && (PartialWSDLProcessor.isPortTypeExisted(definition, serviceName))) { try { Map<QName, PortType> portTypes = CastUtils.cast(definition.getPortTypes()); Binding binding = PartialWSDLProcessor.doAppendBinding(definition, existPortName, portType, extReg); definition.addBinding(binding); wsdlService = PartialWSDLProcessor.doAppendService(definition, existPortName, extReg, binding); definition.addService(wsdlService);
@SuppressWarnings("unchecked") private static void addBindingOperation(Definition wsdlDefinition, PortType portType, Binding binding, ExtensionRegistry extReg) throws Exception { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); setSoapOperationExtElement(bindingOperation, extReg); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), wsdlDefinition, extReg)); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), wsdlDefinition, extReg)); } if (op.getFaults() != null && op.getFaults().size() > 0) { addSoapFaults(op, bindingOperation, wsdlDefinition, extReg); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
public static Binding doAppendBinding(Definition wsdlDefinition, String name, PortType portType, ExtensionRegistry extReg) throws Exception { Binding binding = wsdlDefinition.createBinding(); binding.setQName(new QName(wsdlDefinition.getTargetNamespace(), name + bindingName)); binding.setUndefined(false); binding.setPortType(portType); setSoapBindingExtElement(wsdlDefinition, binding, extReg); addBindingOperation(wsdlDefinition, portType, binding, extReg); return binding; }
private static BindingInput getBindingInput(Input input, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingInput bi = wsdlDefinition.createBindingInput(); bi.setName(input.getName()); bi.addExtensibilityElement(getSoapBody(BindingInput.class, extReg)); return bi; }
public static Binding doAppendBinding(Definition wsdlDefinition, String name, PortType portType, ExtensionRegistry extReg) throws Exception { Binding binding = wsdlDefinition.createBinding(); binding.setQName(new QName(wsdlDefinition.getTargetNamespace(), name + bindingName)); binding.setUndefined(false); binding.setPortType(portType); setSoapBindingExtElement(wsdlDefinition, binding, extReg); addBindingOperation(wsdlDefinition, portType, binding, extReg); return binding; }
private static BindingInput getBindingInput(Input input, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingInput bi = wsdlDefinition.createBindingInput(); bi.setName(input.getName()); bi.addExtensibilityElement(getSoapBody(BindingInput.class, extReg)); return bi; }
private static BindingOutput getBindingOutput(Output output, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getSoapBody(BindingOutput.class, extReg)); return bo; }
private static BindingInput getBindingInput(Input input, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingInput bi = wsdlDefinition.createBindingInput(); bi.setName(input.getName()); bi.addExtensibilityElement(getSoapBody(BindingInput.class, extReg)); return bi; }
private static BindingOutput getBindingOutput(Output output, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getSoapBody(BindingOutput.class, extReg)); return bo; }