You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Nikolay Elenkov (JIRA)" <ji...@apache.org> on 2010/04/30 11:24:55 UTC
[jira] Created: (CXF-2794) wrong targetNamespace in generated WSDL
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
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.
[jira] Resolved: (CXF-2794) wrong targetNamespace in generated WSDL
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Commented: (CXF-2794) wrong targetNamespace in generated
WSDL
Posted by "Nikolay Elenkov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12864615#action_12864615 ]
Nikolay Elenkov commented on CXF-2794:
--------------------------------------
I see now, I missed this part:
serviceName: In the format of "ns:SERVICE_NAME" where ns is a namespace prefix valid at this scope.
It does indeed work if I remove 'serviceName', thanks for looking into this.
> 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.
[jira] Updated: (CXF-2794) wrong targetNamespace in generated WSDL
Posted by "Nikolay Elenkov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2794?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikolay Elenkov updated CXF-2794:
---------------------------------
Attachment: ws.zip
> 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
> 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.