Saturday, October 19, 2013

CXF




<!-- schema location -->

 xmlns:jaxws="http://cxf.apache.org/jaxws" 
    xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xsi:schemaLocation="


http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
        http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"


<!-- If we use Cxf, we need to import below files -->
     <import resource="classpath:META-INF/cxf/cxf.xml"/>
    <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
<!-- for soap, we need to import cxf-extension-soap.xml, 
for rest, no need to import any file-->
    <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>

 
 <!--  Soap calls Endpoint-- >
    <bean id="contactEndPoint" class="Endpoint.ContactEndPointImpl"/>
<jaxws:endpoint id="contactWorld" implementor="#contactEndPoint" address="/ContactEndPoint" />

 <!--  Rest calls Endpoint-- >
<jaxrs:server id="contactRestfulWebService" address="/ContactRestController/">
  <jaxrs:serviceBeans>
    <ref bean="contactController" />
  </jaxrs:serviceBeans>
  </jaxrs:server>




In EndPoint:

@WebService(endpointInterface = "Endpoint.ContactEndPoint",
targetNamespace = "Endpoint",
       serviceName = "ContactEndPointImpl")

No comments:

Security Certificates

  1. Cryptography Basics Understand Key Concepts : Encryption, decryption, hashing, and digital signatures. Key terms: confidentiality, inte...