Tabnine Logo
WebServiceBindingFactory.createWebServiceBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
createWebServiceBinding
method
in
org.apache.tuscany.sca.binding.ws.WebServiceBindingFactory

Best Java code snippets using org.apache.tuscany.sca.binding.ws.WebServiceBindingFactory.createWebServiceBinding (Showing top 12 results out of 315)

origin: org.apache.tuscany.sca/tuscany-base-runtime

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);
  }
}
origin: org.apache.tuscany.sca/tuscany-binding-ws

public WebServiceBinding read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
  Monitor monitor = context.getMonitor();
  WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
origin: org.apache.tuscany.sca/tuscany-base-runtime

public WebServiceBinding read(XMLStreamReader reader, ProcessorContext context) throws ContributionReadException, XMLStreamException {
  Monitor monitor = context.getMonitor();
  WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
origin: org.apache.tuscany.sca/tuscany-binding-ws-runtime-axis2

/**
 * Create an Async Response Endpoint
 * @param msg - the Tuscany message
 * @param respInvoker - the AsyncResponseInvoker for the async response
 * @return - an Endpoint which embodies the callback address
 */
private Endpoint createAsyncResponseEndpoint(Message msg,
    AsyncResponseInvoker<String> respInvoker) {
  String callbackAddress = respInvoker.getResponseTargetAddress();
  if( callbackAddress == null ) return null;
  
  // Get the necessary factories
  ExtensionPointRegistry registry = endpointReference.getCompositeContext().getExtensionPointRegistry();
  FactoryExtensionPoint modelFactories = registry.getExtensionPoint(FactoryExtensionPoint.class);
  RuntimeAssemblyFactory assemblyFactory = (RuntimeAssemblyFactory)modelFactories.getFactory(AssemblyFactory.class);
  WebServiceBindingFactory webServiceBindingFactory = (WebServiceBindingFactory)modelFactories.getFactory(WebServiceBindingFactory.class);
  
  // Create the endpoint
  RuntimeEndpoint callbackEndpoint = (RuntimeEndpoint)assemblyFactory.createEndpoint();
  // Add a binding
  WebServiceBinding cbBinding = webServiceBindingFactory.createWebServiceBinding();
  cbBinding.setURI(callbackAddress);
  callbackEndpoint.setBinding(cbBinding);
  // Embed the response Address URI
  callbackEndpoint.setURI(callbackAddress);
  callbackEndpoint.setUnresolved(true);
  return callbackEndpoint;
} // end method createAsyncResponseEndpoint
origin: org.apache.tuscany.sca/tuscany-binding-jms-runtime

WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
BindingWSDLGenerator.generateWSDL(endpoint.getComponent(), service, wsBinding, registry, null);
interfaceContract = wsBinding.getBindingInterfaceContract();
origin: org.apache.tuscany.sca/tuscany-binding-jms-runtime

WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
BindingWSDLGenerator.generateWSDL(endpointReference.getComponent(), reference, wsBinding, registry, null);
interfaceContract = wsBinding.getBindingInterfaceContract();
origin: org.apache.tuscany.sca/tuscany-binding-ws-runtime-axis2

/**
 * 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
 
origin: org.apache.tuscany.sca/tuscany-binding-jms-runtime

WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
BindingWSDLGenerator.generateWSDL(endpointReference.getComponent(), endpointReference.getContract(), wsBinding, registry, null);
interfaceContract = wsBinding.getBindingInterfaceContract();
origin: org.apache.tuscany.sca/tuscany-binding-jms-runtime

WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
BindingWSDLGenerator.generateWSDL(endpoint.getComponent(), endpoint.getService(), wsBinding, registry, null);
interfaceContract = wsBinding.getBindingInterfaceContract();
origin: org.apache.tuscany.sca/tuscany-binding-jms-runtime

public WireFormatJMSTextXMLReferenceProvider(ExtensionPointRegistry registry,
                       RuntimeEndpointReference endpointReference) {
  super();
  this.registry = registry;
  this.endpointReference = endpointReference;
  this.binding = (JMSBinding)endpointReference.getBinding();
  
  // configure the reference based on this wire format
  
  // currently maintaining the message processor structure which 
  // contains the details of jms message processing so set the message
  // type here if not set explicitly in SCDL
  if (this.binding.getRequestWireFormat() instanceof WireFormatJMSTextXML){
    this.binding.setRequestMessageProcessorName(JMSBindingConstants.XML_MP_CLASSNAME);
  }
  if (this.binding.getResponseWireFormat() instanceof WireFormatJMSTextXML){
    this.binding.setResponseMessageProcessorName(JMSBindingConstants.XML_MP_CLASSNAME);
  }
  // create a local interface contract that is configured specifically to 
  // deal with the data format that this wire format is expecting to send to 
  // and receive from the databinding interceptor. The request/response parts of 
  // this interface contract will be copied into the binding interface contract
  // as required
  WebServiceBindingFactory wsFactory = registry.getExtensionPoint(WebServiceBindingFactory.class);
  WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
  BindingWSDLGenerator.generateWSDL(endpointReference.getComponent(), endpointReference.getReference(), wsBinding, registry, null);
  interfaceContract = wsBinding.getBindingInterfaceContract();
  interfaceContract.getInterface().resetDataBinding(XMLHelperFactory.createXMLHelper(registry).getDataBindingName());
}

origin: org.apache.tuscany.sca/tuscany-binding-jms-runtime

WebServiceBinding wsBinding = wsFactory.createWebServiceBinding();
BindingWSDLGenerator.generateWSDL(endpoint.getComponent(), endpoint.getService(), wsBinding, registry, null);
interfaceContract = wsBinding.getBindingInterfaceContract();
origin: org.apache.tuscany.sca/tuscany-base-runtime

RuntimeEndpoint callbackEndpoint = (RuntimeEndpoint)assemblyFactory.createEndpoint();
WebServiceBinding cbBinding = webServiceBindingFactory.createWebServiceBinding();
cbBinding.setURI(callbackAddress);
callbackEndpoint.setBinding(cbBinding);
org.apache.tuscany.sca.binding.wsWebServiceBindingFactorycreateWebServiceBinding

Javadoc

Creates a new WebService binding.

Popular methods of WebServiceBindingFactory

    Popular in Java

    • Making http post requests using okhttp
    • addToBackStack (FragmentTransaction)
    • setScale (BigDecimal)
    • runOnUiThread (Activity)
    • File (java.io)
      An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
    • Socket (java.net)
      Provides a client-side TCP socket.
    • Time (java.sql)
      Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
    • Servlet (javax.servlet)
      Defines methods that all servlets must implement. A servlet is a small Java program that runs within
    • StringUtils (org.apache.commons.lang)
      Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
    • Project (org.apache.tools.ant)
      Central representation of an Ant project. This class defines an Ant project with all of its targets,
    • Github Copilot alternatives
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now