Tabnine Logo
EndpointReferenceUtils.getJAXBContextForEPR
Code IndexAdd Tabnine to your IDE (free)

How to use
getJAXBContextForEPR
method
in
org.apache.cxf.wsdl.EndpointReferenceUtils

Best Java code snippets using org.apache.cxf.wsdl.EndpointReferenceUtils.getJAXBContextForEPR (Showing top 2 results out of 315)

origin: org.apache.cxf/cxf-api

public static Source convertToXML(EndpointReferenceType epr) {
  try {
    javax.xml.bind.Marshaller jm = getJAXBContextForEPR().createMarshaller();
    jm.setProperty(Marshaller.JAXB_FRAGMENT, true);
    QName qname = new QName("http://www.w3.org/2005/08/addressing", "EndpointReference");
    JAXBElement<EndpointReferenceType> 
    jaxEle = new JAXBElement<EndpointReferenceType>(qname, EndpointReferenceType.class, epr);
    
    
    W3CDOMStreamWriter writer = new W3CDOMStreamWriter();
    jm.marshal(jaxEle, writer); 
    return new DOMSource(writer.getDocument());
  } catch (JAXBException e) {
    //ignore
  } catch (ParserConfigurationException e) {
    //ignore
  }
  return null;
}

origin: org.apache.cxf/cxf-bundle-jaxrs

public static Source convertToXML(EndpointReferenceType epr) {
  try {
    javax.xml.bind.Marshaller jm = getJAXBContextForEPR().createMarshaller();
    jm.setProperty(Marshaller.JAXB_FRAGMENT, true);
    QName qname = new QName("http://www.w3.org/2005/08/addressing", "EndpointReference");
    JAXBElement<EndpointReferenceType> 
    jaxEle = new JAXBElement<EndpointReferenceType>(qname, EndpointReferenceType.class, epr);
    
    
    W3CDOMStreamWriter writer = new W3CDOMStreamWriter();
    jm.marshal(jaxEle, writer); 
    return new DOMSource(writer.getDocument());
  } catch (JAXBException e) {
    //ignore
  } catch (ParserConfigurationException e) {
    //ignore
  }
  return null;
}

org.apache.cxf.wsdlEndpointReferenceUtilsgetJAXBContextForEPR

Popular methods of EndpointReferenceUtils

  • getAnonymousEndpointReference
    Create an anonymous endpoint reference.
  • getServiceName
    Gets the service name of the provided endpoint reference.
  • getPortName
    Gets the port name of the provided endpoint reference.
  • getSchema
  • setServiceAndPortName
    Sets the service and port name of the provided endpoint reference.
  • createContextForEPR
  • createSchema
  • duplicate
    Create a duplicate endpoint reference sharing all atributes
  • findNamespaceHack
  • getAddress
    Get the address from the provided endpoint reference.
  • getMatchingMultiplexDestination
  • getNameSpaceUri
  • getMatchingMultiplexDestination,
  • getNameSpaceUri,
  • getService,
  • getServiceNameType,
  • getWSDLDefinition,
  • getWSDLLocation,
  • mint,
  • portNameMatches,
  • setWSDLLocation

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • Menu (java.awt)
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • JPanel (javax.swing)
  • Runner (org.openjdk.jmh.runner)
  • Best plugins for Eclipse
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