public InterfaceContract getBindingInterfaceContract() { return wsBinding.getBindingInterfaceContract(); }
private void validateWSDL(ProcessorContext context, WebServiceBinding model) { WSDLDefinition wsdlDefinition = model.getUserSpecifiedWSDLDefinition(); Port port = model.getPort(); if (port != null){ validateWSDLPort(context, model, port); } Binding binding = model.getBinding(); if (binding != null){ validateWSDLBinding(context, model, binding); } }
public WSDLDefinitionGenerator(WebServiceBinding wsBinding) { this(BindingWSDLGenerator.requiresSOAP12(wsBinding)); wsBindingName = wsBinding.getName(); }
private void validateWSDLBinding(ProcessorContext context, WebServiceBinding model, Binding binding){ // BWS20005 & BWS20010 // Check that the WSDL binding is of a supported type if (!model.isHTTPTransport() && !model.isJMSTransport()){ error(context.getMonitor(), "InvalidWSDLBindingTransport", model, model.getBindingTransport()); } }
protected Dispatch<SOAPMessage> createDispatchFromURI(String uri) { QName serviceName = wsBinding.getService().getQName(); QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPort().getName()); Service service = Service.create(serviceName); service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, uri); return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE); }
private void createAxisService(String endpointURL, Port port) throws AxisFault { AxisService axisService; if (wsBinding.getGeneratedWSDLDocument() != null) { axisService = Axis2EngineIntegration.createWSDLAxisService(endpointURL, port, wsBinding); } else { axisService = Axis2EngineIntegration.createJavaAxisService(endpointURL, configContext, service); } Axis2EngineIntegration.createAxisServiceProviders(axisService, endpoint, wsBinding, extensionPoints); configContext.getAxisConfiguration().addService(axisService); } }
private Dispatch<SOAPMessage> createDispatchFromWSDL(URL wsdlLocation) { QName serviceName = wsBinding.getServiceName(); QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPortName()); Service service = Service.create(wsdlLocation, serviceName); return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE); }
/** * If there is a callback address, create an EPR for the callback with a referenced endpoint that contains * the binding and the target callback address * @param callbackAddress - the callback address - may be null * @param inMC - the Axis incoming message context * @param msg - the Tuscany message * @throws AxisFault - if the callback address has any of the disallowed forms of callback address */ private void createCallbackEPR( String callbackAddress, MessageContext inMC, Message msg ) throws AxisFault { if (callbackAddress != null ) { // Check for special (& not allowed!) WS_Addressing values checkCallbackAddress( callbackAddress, inMC ); // EndpointReference from = assemblyFactory.createEndpointReference(); Endpoint fromEndpoint = assemblyFactory.createEndpoint(); from.setTargetEndpoint(fromEndpoint); from.setStatus(EndpointReference.Status.WIRED_TARGET_FOUND_AND_MATCHED); msg.setFrom(from); RuntimeEndpoint callbackEndpoint = (RuntimeEndpoint)assemblyFactory.createEndpoint(); // WebServiceBinding cbBinding = webServiceBindingFactory.createWebServiceBinding(); cbBinding.setURI(callbackAddress); callbackEndpoint.setBinding(cbBinding); // callbackEndpoint.setURI(callbackAddress); callbackEndpoint.setUnresolved(true); from.setCallbackEndpoint(callbackEndpoint); } // end if } // end method createCallbackEPR
private void createWSBinding(JavaImplementation javaImplementation, Service service){ if(service.getBindings().size() == 0){ WebServiceBinding wsBinding = wsBindingFactory.createWebServiceBinding(); wsBinding.setName(service.getName()); ExtensionType bindingType = policyFactory.createBindingType(); bindingType.setType(WebServiceConstants.BINDING_WS_QNAME); bindingType.setUnresolved(true); ((PolicySubject)wsBinding).setExtensionType(bindingType); service.getBindings().add(wsBinding); } }
protected String getSOAPAction(String operationName) { Binding binding = wsBinding.getBinding(); if (binding != null) { for (Object o : binding.getBindingOperations()) { BindingOperation bop = (BindingOperation)o; if (bop.getName().equalsIgnoreCase(operationName)) { for (Object o2 : bop.getExtensibilityElements()) { if (o2 instanceof SOAPOperation) { return ((SOAPOperation)o2).getSoapActionURI(); } } } } } return null; } }
private void validateWSDL(ProcessorContext context, WebServiceBinding model) { WSDLDefinition wsdlDefinition = model.getUserSpecifiedWSDLDefinition(); Port port = model.getPort(); if (port != null){ validateWSDLPort(context, model, port); } Binding binding = model.getBinding(); if (binding != null){ validateWSDLBinding(context, model, binding); } }
public InterfaceContract getBindingInterfaceContract() { return wsBinding.getBindingInterfaceContract(); }
private void validateWSDLBinding(ProcessorContext context, WebServiceBinding model, Binding binding){ // BWS20005 & BWS20010 // Check that the WSDL binding is of a supported type if (!model.isHTTPTransport() && !model.isJMSTransport()){ error(context.getMonitor(), "InvalidWSDLBindingTransport", model, model.getBindingTransport()); } }
protected Dispatch<SOAPMessage> createDynamicDispatch() { QName serviceName = wsBinding.getService().getQName(); QName portName = new QName(serviceName.getNamespaceURI(), wsBinding.getPort().getName()); Service service = Service.create(serviceName); service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, endpointReference.getDeployedURI()); return service.createDispatch(portName, SOAPMessage.class, Service.Mode.MESSAGE); }
public WSDLDefinitionGenerator(WebServiceBinding wsBinding) { this(BindingWSDLGenerator.requiresSOAP12(wsBinding)); wsBindingName = wsBinding.getName(); }
public InterfaceContract getBindingInterfaceContract() { return wsBinding.getBindingInterfaceContract(); }
public InterfaceContract getBindingInterfaceContract() { return wsBinding.getBindingInterfaceContract(); }
public InterfaceContract getBindingInterfaceContract() { return wsBinding.getBindingInterfaceContract(); }
public InterfaceContract getBindingInterfaceContract() { return wsBinding.getBindingInterfaceContract(); }
private static Operation getOperation(AxisOperation axisOp,WebServiceBinding wsBinding) { String operationName = axisOp.getName().getLocalPart(); Interface iface = wsBinding.getBindingInterfaceContract().getInterface(); for (Operation op : iface.getOperations()) { if (op.getName().equalsIgnoreCase(operationName)) { return op; } } return null; }