Refine search
public String getBindingID() { if (this.soapBinding instanceof SoapBindingInfo) { SoapBindingInfo bindingInfo = (SoapBindingInfo) this.soapBinding; if (bindingInfo.getSoapVersion() instanceof Soap12) { return SOAP12HTTP_BINDING; } } return SOAP11HTTP_BINDING; } }
String tempStyle = ((SoapBindingInfo)bindingInfo).getStyle(); if (tempStyle != null) { bindingStyle = tempStyle; SoapOperationInfo soi = bop.getExtensor(SoapOperationInfo.class); if (soi != null) { if ("document".equals(operationStyle)) { if (bop.getOperationInfo().getInput() != null && bop.getOperationInfo().getInput().getMessagePartsNumber() > 0) { QName qn = bop.getOperationInfo().getInput().getMessagePartByIndex(0) .getElementQName(); QName op = bop.getOperationInfo().getName(); if (reverseMapping) { payloadElementMap.put(op.toString(), qn); } else { payloadElementMap.put(qn.toString(), op); QName op = bop.getOperationInfo().getName(); payloadElementMap.put(op.toString(), op);
public SoapVersion getSoapVersion() { if (soapVersion == null) { resolveSoapVersion(getBindingId()); } return soapVersion; }
element.getNamespaceURI(), soapVersion.getBody() .getLocalPart()).item(0); if (bodyElement != null) { element = (Element)bodyElement.getFirstChild(); QName opeName = new QName(element.getNamespaceURI(), element.getLocalName()); SoapBindingInfo binding = (SoapBindingInfo)soapBindingServer.getEndpoint().getEndpointInfo() .getBinding(); for (BindingOperationInfo op : binding.getOperations()) { String style = binding.getStyle(op.getOperationInfo()); if (style == null) { style = binding.getStyle(); if (op.getName().getLocalPart().equals(opeName.getLocalPart())) { return new QName(getPojoService().getNamespaceURI(), opeName.getLocalPart());
&& (((SoapBindingInfo) bindingInfo).getTransportURI() == null || LocalTransportFactory.TRANSPORT_ID.equals(transportId))) { ((SoapBindingInfo) bindingInfo).setTransportURI(transportId); transportId = "http://schemas.xmlsoap.org/wsdl/soap/"; transportId = ((SoapBindingInfo)bindingInfo).getTransportURI(); if (wsdlEndpointFactory != null) { ei = wsdlEndpointFactory.createEndpointInfo(bus, service.getServiceInfos().get(0), bindingInfo, null); ei.setTransportId(transportId); } else { ei = new EndpointInfo(service.getServiceInfos().get(0), transportId); endpointName = new QName(endpointName.getNamespaceURI(), endpointName.getLocalPart() + count); count++; ei.setName(endpointName); ei.setAddress(getAddress()); ei.setBinding(bindingInfo);
public StaxJbiWrapper(Message message) { setExtraPrefix((SoapMessage) message); BindingOperationInfo wsdlOperation = getOperation(message); wsdlMessage = !isRequestor(message) ? wsdlOperation.getInput() : wsdlOperation.getOutput(); XMLStreamReader xmlReader = message.getContent(XMLStreamReader.class); if (isRequestor(message)) { .get(Endpoint.class).getEndpointInfo().getBinding(); String style = binding.getStyle(wsdlOperation.getOperationInfo()); if (style == null) { style = binding.getStyle();
final QName bindingQName = new QName(protocol.getWSRMNamespace(), BINDING_NAME); SoapBindingInfo sbi = (SoapBindingInfo)applicationEndpoint.getEndpointInfo().getBinding(); SoapVersion sv = sbi.getSoapVersion(); String bindingId = sbi.getBindingId(); SoapBindingInfo bi = new SoapBindingInfo(si, bindingId, sv); bi.setName(bindingQName); BindingOperationInfo boi = null; boi = bi.buildOperation(consts.getCreateSequenceOperationName(), consts.getCreateSequenceOperationName().getLocalPart(), null); addAction(boi, consts.getCreateSequenceAction(), consts.getCreateSequenceResponseAction()); bi.addOperation(boi); boi = bi.buildOperation(consts.getTerminateSequenceOperationName(), consts.getTerminateSequenceOperationName().getLocalPart(), null); bi.addOperation(boi); boi = bi.buildOperation(consts.getTerminateSequenceAnonymousOperationName(), bi.addOperation(boi); boi = bi.buildOperation(consts.getSequenceAckOperationName(), null, null); addAction(boi, consts.getSequenceAckAction()); bi.addOperation(boi); boi = bi.buildOperation(consts.getCloseSequenceOperationName(), null, null); if (RM11Constants.NAMESPACE_URI.equals(protocol.getWSRMNamespace())) { addAction(boi, consts.getCloseSequenceAction(),
private void createSoapBinding(final SoapBindingInfo bi) throws WSDLException { boolean isSoap12 = bi.getSoapVersion() instanceof Soap12; Bus bs = getBus(); WSDLManager m = bs.getExtension(WSDLManager.class); soapBinding.setStyle(bi.getStyle()); soapBinding.setTransportURI(bi.getTransportURI()); bi.addExtensor(soapBinding); for (BindingOperationInfo b : bi.getOperations()) { for (BindingFaultInfo faultInfo : b.getFaults()) { SoapFault soapFault = SOAPBindingUtil.createSoapFault(extensionRegistry, isSoap12); soapFault.setUse("literal"); soapFault.setName(faultInfo.getFaultInfo().getFaultName().getLocalPart()); faultInfo.addExtensor(soapFault); SoapOperationInfo soi = b.getExtensor(SoapOperationInfo.class); boolean isRpc = "rpc".equals(soapOperation.getStyle()); b.addExtensor(soapOperation); if (b.getInput() != null) { bodyParts = new ArrayList<>(); for (MessagePartInfo part : b.getInput().getMessageParts()) { bodyParts.add(part.getName().getLocalPart());
opName = opName.substring(0, opName.length() - 8); QName opQName = new QName(xmlReader.getNamespaceURI(), opName); SoapBindingInfo binding = (SoapBindingInfo) message.getExchange().get( Endpoint.class).getEndpointInfo().getBinding(); for (BindingOperationInfo op : binding.getOperations()) { String style = binding.getStyle(op.getOperationInfo()); if (style == null) { style = binding.getStyle(); BindingMessageInfo msg = !isRequestor(message) ? op.getInput() : op.getOutput(); if (msg.getExtensor(SoapBodyInfo.class) .getParts().get(0).getElementQName().equals(opQName)) { operation = op; break; if (opQName.equals(op.getName())) { operation = op; break;
EffectivePolicy dispatchPolicy = null; List<OperationPolicy> operationPolicies = new ArrayList<>(); Collection<BindingOperationInfo> bindingOperationInfos = endpointInfo.getBinding().getOperations(); for (Iterator<BindingOperationInfo> bindingOperationInfoIterator = bindingOperationInfos.iterator(); bindingOperationInfoIterator.hasNext();) { BindingOperationInfo bindingOperationInfo = bindingOperationInfoIterator.next(); QName operationName = bindingOperationInfo.getName(); (EffectivePolicy)bindingOperationInfo.getProperty("policy-engine-info-serve-request"); (EffectivePolicy)bindingOperationInfo.getProperty("policy-engine-info-client-response"); && "http://cxf.apache.org/jaxws/dispatch".equals(operationName.getNamespaceURI())) { dispatchPolicy = policy; BindingInfo bindingInfo = bindingOperationInfo.getBinding(); if (bindingInfo instanceof SoapBindingInfo) { soapNS = ((SoapBindingInfo)bindingInfo).getSoapVersion().getNamespace(); } else {
ServiceInfo serviceInfo = message.getExchange().getBinding().getBindingInfo().getService(); if (null != serviceInfo) { String portTypeName = serviceInfo.getInterface().getName().toString(); messageInfo.setPortType(portTypeName); messageInfo.setOperationName(getOperationName(message)); if (soapBinding.getBindingInfo() instanceof SoapBindingInfo) { SoapBindingInfo soapBindingInfo = (SoapBindingInfo) soapBinding.getBindingInfo(); messageInfo.setTransportType(soapBindingInfo.getTransportURI()); messageInfo.setPortType(message.getExchange().getEndpoint().getEndpointInfo().getName() .toString()); String opName = getRestOperationName(message); messageInfo.setOperationName(opName); String addr = message.getExchange().getEndpoint().getEndpointInfo().getAddress(); if (null != addr) { event.getCustomInfo().put("address", addr);
endpoint.getBinding().getBindingInfo().getService().getInterface().getName().toString()); if (soapBinding.getBindingInfo() instanceof SoapBindingInfo) { SoapBindingInfo soapBindingInfo = (SoapBindingInfo)soapBinding.getBindingInfo(); transportType = soapBindingInfo.getTransportURI(); String address = endpoint.getEndpointInfo().getAddress(); event.getCustomInfo().put("address", address);
code.append("// Definitions for service: " + service.getName().toString() + "\n"); code.append("//\n"); ) { SoapBindingInfo sbi = (SoapBindingInfo)bindingInfo; if (WSDLConstants.NS_SOAP11_HTTP_TRANSPORT.equals(sbi.getTransportURI()) || WSDLConstants.NS_SOAP12_HTTP_BINDING.equals(sbi.getTransportURI()) || "http://cxf.apache.org/transports/local".equals(sbi.getTransportURI())) { soapBindingInfo = sbi; break; isRPC = WSDLConstants.RPC.equals(soapBindingInfo.getStyle()); } else if (xml != null) { xmlBindingInfo = xml;
public Destination getDestination(EndpointInfo ei, Bus bus) throws IOException { String address = ei.getAddress(); BindingInfo bi = ei.getBinding(); String transId = ei.getTransportId(); if (bi instanceof SoapBindingInfo) { transId = ((SoapBindingInfo)bi).getTransportURI(); if (transId == null) { transId = ei.getTransportId();
if (binding instanceof SoapBindingInfo) { SoapBindingInfo sbi = (SoapBindingInfo) binding; version = sbi.getSoapVersion(); sb = new org.apache.cxf.binding.soap.SoapBinding(binding, version); if (!StringUtils.isEmpty(sbi.getStyle())) { bindingStyle = sbi.getStyle(); for (BindingOperationInfo boi : sbi.getOperations()) { String st = sbi.getStyle(boi.getOperationInfo()); if (st != null) { bindingStyle = st; if (boi.getUnwrappedOperation() == null) { parameterStyle = SoapBindingConstants.PARAMETER_STYLE_BARE; } else { if (sbi.getTransportURI().equals(SoapJMSConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID)) { sb.getInInterceptors().add(new SoapJMSInInterceptor()); if (ei.getAddress() != null && ei.getAddress().startsWith("soap.udp")) { setupUDP(sb, ei);
config.setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); SoapBindingInfo info = new SoapBindingInfo(si, bindingid, config.getVersion()); info.setName(config.getBindingName(si)); info.setStyle(config.getStyle()); info.setTransportURI(config.getTransportURI()); info.setProperty(Message.MTOM_ENABLED, Boolean.TRUE); info.buildOperation(op.getName(), op.getInputName(), op.getOutputName()); bop.addExtensor(sop); info.addOperation(bop); BindingMessageInfo bInput = bop.getInput(); if (bInput != null) { MessageInfo input = null; BindingMessageInfo unwrappedMsg = bInput; if (bop.isUnwrappedCapable()) { input = bop.getOperationInfo().getUnwrappedOperation().getInput(); unwrappedMsg = bop.getUnwrappedOperation().getInput();
public void createPortExtensors(Bus b, EndpointInfo ei, Service service) { if (ei.getBinding() instanceof SoapBindingInfo) { SoapBindingInfo bi = (SoapBindingInfo)ei.getBinding(); createSoapExtensors(b, ei, bi, bi.getSoapVersion() instanceof Soap12); } }
public EndpointInfo createEndpointInfo(Bus bus, ServiceInfo serviceInfo, BindingInfo b, List<?> ees) { String transportURI = "http://schemas.xmlsoap.org/wsdl/soap/"; if (b instanceof SoapBindingInfo) { SoapBindingInfo sbi = (SoapBindingInfo)b; transportURI = sbi.getTransportURI(); } EndpointInfo info = new SoapEndpointInfo(serviceInfo, transportURI); if (ees != null) { for (Iterator<?> itr = ees.iterator(); itr.hasNext();) { Object extensor = itr.next(); if (SOAPBindingUtil.isSOAPAddress(extensor)) { final SoapAddress sa = SOAPBindingUtil.getSoapAddress(extensor); info.addExtensor(sa); info.setAddress(sa.getLocationURI()); if (isJMSSpecAddress(sa.getLocationURI())) { info.setTransportId(SoapJMSConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); } } else { info.addExtensor(extensor); } } } return info; }
public OperationInfo getOperationByAction(String action) { for (BindingOperationInfo b : getOperations()) { SoapOperationInfo opInfo = b.getExtensor(SoapOperationInfo.class); if (opInfo.getAction().equals(action)) { return b.getOperationInfo(); } } return null; }
public BindingInfo createBindingInfo(ServiceInfo service, javax.wsdl.Binding binding, String ns) { SoapBindingInfo bi = new SoapBindingInfo(service, ns); // Copy all the extensors initializeBindingInfo(service, binding, bi); SoapBinding wSoapBinding = SOAPBindingUtil.getSoapBinding(bi.getExtensors(ExtensibilityElement.class)); bi.setTransportURI(wSoapBinding.getTransportURI()); bi.setStyle(wSoapBinding.getStyle()); for (BindingOperationInfo boi : bi.getOperations()) { initializeBindingOperation(bi, boi); } return bi; }