You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Torben Vesterager (JIRA)" <ji...@apache.org> on 2012/12/27 10:06:12 UTC

[jira] [Comment Edited] (CXF-4719) Annotation for web service endpoint

    [ https://issues.apache.org/jira/browse/CXF-4719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13539876#comment-13539876 ] 

Torben Vesterager edited comment on CXF-4719 at 12/27/12 9:04 AM:
------------------------------------------------------------------

My experience is that you need a spring xml file, which defines the endpoint in order to 'activate' CXF:
{code:xml}
<beans>
  <import resource="classpath:META-INF/cxf/cxf.xml"/>
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

  <jaxws:endpoint id="propertiesService"
                  implementor="[...].PropertiesService"
                  address="[...]/PropertiesService-v1"
                  publishedEndpointUrl="http://[...]/PropertiesService-v1"/>
</beans>
{code}
You can already import resources via. the spring annotation:
{code}@ImportResource(value = {"classpath:META-INF/cxf/cxf.xml", "classpath:META-INF/cxf/cxf-servlet.xml"}){code}
But there is no CXF annotation to define the endpoint.
                
      was (Author: vesterager@tvi.dk):
    My experience is that you need a spring xml file, which defines the endpoint in order to 'activate' CXF:
{code:xml}
<beans>
  <import resource="classpath:META-INF/cxf/cxf.xml"/>
  <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>

  <jaxws:endpoint id="propertiesService"
                  implementor="no.kommune.bergen.soa.skjema.properties.PropertiesService"
                  address="/int/bk/skjema2/PropertiesService-v1"
                  publishedEndpointUrl="http://soat1i-u.usrv.ubergenkom.no/int/bk/skjema2/PropertiesService-v1"/>
</beans>
{code}
You can already import resources via. the spring annotation:
{code}@ImportResource(value = {"classpath:META-INF/cxf/cxf.xml", "classpath:META-INF/cxf/cxf-servlet.xml"}){code}
But there is no CXF annotation to define the endpoint.
                  
> Annotation for web service endpoint
> -----------------------------------
>
>                 Key: CXF-4719
>                 URL: https://issues.apache.org/jira/browse/CXF-4719
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Torben Vesterager
>
> CXF is the only thing I'm using that still needs a spring configuration XML.
> All other components are configurable via annotations.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira