You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Daniel Kulp (JIRA)" <ji...@apache.org> on 2011/02/10 04:13:57 UTC

[jira] Commented: (CXF-3315) WSDL namespace becomes "http://www.springframework.org/schema/beans" after setting jaxws:endpoint attribute "serviceName"

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

Daniel Kulp commented on CXF-3315:
----------------------------------

This is somewhat working as designed.   The type of the serviceName (and endpointName) is a QName and is parsed as a qname.  Thus, you would need to define it like:
{code:xml}
<jaxws:endpoint id="securityEndpointService" 
implementorClass="com.zsg.security.endpoint.impl.SecurityEndpointImpl" 
xmlns:ns1="http://my.namespace/...."
serviceName="ns1:SecurityService"
implementor="#securityEndpoint" address="/SecurityService">
{code}


> 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.zsg.security.endpoint.impl.SecurityEndpointImpl"
> 	implementor="#securityEndpoint" address="/SecurityService">
> <!-- Configuration (after)  -->
> <jaxws:endpoint id="securityEndpointService" 
> 	implementorClass="com.zsg.security.endpoint.impl.SecurityEndpointImpl" serviceName="SecurityService"
> 	implementor="#securityEndpoint" address="/SecurityService">
> <!-- WSDL (before) -->
> <wsdl:definitions name="SecurityEndpointImplService" targetNamespace="http://impl.endpoint.security.zsg.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