[ 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.