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

Kim commented on CXF-793:
-------------------------

Hi,

I still see this happening in cxf-2.1.1.

I am subclassing CXFServlet and deploy multiple endpoints using the API as 
described in the docs:
   Endpoint.publish("/Greeter", new GreeterImpl());
   Endpoint.publish("/Greeter2", new GreeterImpl());

In all the endpoints, the generated WSDL specifies soap:address location 
pointing to the last endpoint listed in the service list.

The same happens using cxf-servlet.xml.

Steps to reproduce:
- Use sample "wsdl_first"
- Edit cxf-servlet.xml: duplicate the <jaxws:endpoint> section, change id and 
address in the copy
- Build WAR
- Deploy on Tomcat
- Check the generated WSDLs


> endpoint address rewriting for user supplied wsdl
> -------------------------------------------------
>
>                 Key: CXF-793
>                 URL: https://issues.apache.org/jira/browse/CXF-793
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0, 2.0.1
>            Reporter: Matthias Germann
>             Fix For: 2.0.4
>
>
> If a user supplied WSDL is specified with the wsdlLocationAttribute, the SOAP 
> endpoint address should be rewritten if the WSDL is queried with a 
> "?wsdl"-request. The location attribute should be rewritten to the value of 
> the current HTTP Request (the "?wsdl" request).
> Here is my spring configuration file:
> <beans xmlns="http://www.springframework.org/schema/beans";
>       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>       xmlns:jaxws="http://cxf.apache.org/jaxws";
>       xsi:schemaLocation="
> http://www.springframework.org/schema/beans 
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd";>
>       
>       <import resource="classpath:META-INF/cxf/cxf.xml"/>
>       <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
>       <import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
>               <jaxws:endpoint id="myservice"
>               implementor="test.MyServiceImpl"
>               address="/MyService"
>               wsdlLocation="META-INF/cxf/MyService.wsdl"/>
>       
> </beans>

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

Reply via email to