cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (CXF-2794) wrong targetNamespace in generated WSDL
Date Tue, 04 May 2010 20:53:03 GMT

     [ https://issues.apache.org/jira/browse/CXF-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Daniel Kulp resolved CXF-2794.
------------------------------

         Assignee: Daniel Kulp
    Fix Version/s: Invalid
       Resolution: Not A Problem


The problem is in you cxf-servlet.xml:

{code:xml}
 <jaxws:endpoint id="ws" implementor="#wsimpl"
		serviceName="MyService" 
implementorClass="com.mypackage.MyServiceImpl"
		address="/MyService" />
{code}

By setting a serviceName in  there, you are overriding whatever is in the annotations.   serviceName
is a qname.  Since you don't provide a namespace prefix, it uses the default namespace for
the cxf-servlet.xml file for the namespace.   

If you just remove the serviceName="MyService" attribute entirely, it will use the annotations
as expected.

> wrong targetNamespace in generated WSDL
> ---------------------------------------
>
>                 Key: CXF-2794
>                 URL: https://issues.apache.org/jira/browse/CXF-2794
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.2.7
>         Environment: Tomcat 5.5, Tomcat 6.0
>            Reporter: Nikolay Elenkov
>            Assignee: Daniel Kulp
>             Fix For: Invalid
>
>         Attachments: ws.zip
>
>
> The target namepsace returned by by calling MyService?wsdl is always "http://www.springframework.org/schema/beans":
> <wsdl:definitions name="MyService" targetNamespace="http://www.springframework.org/schema/beans">
> <wsdl:import location="http://localhost:8080/myservice-ws/services/MyService?wsdl=MyService.wsdl"
namespace="http://mypackage.com/">
>   ...
> The namespace specified with the @WebService annoutation is 'http://mypackage.com/'.

> Attached is a project that reproduces the issue. Usage:
> 1. Build using mvn install
> 2. Drop in CATALINA_HOME/webapps
> 3. Access: http://localhost:8080/myservice-ws/services/MyService?wsdl to get WSDL

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message