WSDL namespace becomes "http://www.springframework.org/schema/beans"; after 
setting jaxws:endpoint attribute "serviceName"
-------------------------------------------------------------------------------------------------------------------------

                 Key: CXF-3315
                 URL: https://issues.apache.org/jira/browse/CXF-3315
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.3.2
         Environment: Tomcat 5.5.32, JDK 1.5.22, Windows XP
            Reporter: Alvin Chee


I've described the changes made that have caused the issue below. By default, 
the service name is SecurityEndpointImplService, which is actually "<endpoint 
implementation>Service". I would like to set it as "SecurityService", but 
somehow it changed the target namespace in the WSDL to spring? Please advise a 
workaround if this is the expected behavior.

<!-- Configuration (before) -->
<jaxws:endpoint id="securityEndpointService" 
        
implementorClass="com.scb.nfs.security.endpoint.impl.SecurityEndpointImpl"
        implementor="#securityEndpoint" address="/SecurityService">

<!-- Configuration (after)  -->
<jaxws:endpoint id="securityEndpointService" 
        
implementorClass="com.scb.nfs.security.endpoint.impl.SecurityEndpointImpl" 
serviceName="SecurityService"
        implementor="#securityEndpoint" address="/SecurityService">

<!-- WSDL (before) -->
<wsdl:definitions name="SecurityEndpointImplService" 
targetNamespace="http://impl.endpoint.security.nfs.scb.com/";>

<!-- WSDL (after) -->
<wsdl:definitions name="SecurityService" 
targetNamespace="http://www.springframework.org/schema/beans";>

<!-- endpoint interface (no changes) -->
@WebService(name = "SecurityService")
@SOAPBinding(
        style = SOAPBinding.Style.DOCUMENT,
        use = SOAPBinding.Use.LITERAL,
        parameterStyle = ParameterStyle.WRAPPED
)
public interface SecurityEndpoint {
// more code
}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to