You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Matthias Germann (JIRA)" <ji...@apache.org> on 2007/07/14 10:35:04 UTC

[jira] Created: (CXF-793) endpoint address rewriting for user supplied wsdl

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
            Reporter: Matthias Germann


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.


[jira] Commented: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Matthias Germann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12515207 ] 

Matthias Germann commented on CXF-793:
--------------------------------------

I tried it again with another service and it worked fine. But it still does not work for the first service, i developed. I habe to look deeper into that...

I noticed that the address rewriting does not work correctly if the same WSDL is used for multiple endpoints. The following example shows a spring configuration wich uses the same WSDL for three endpoints. If i deploy this configuration, and access the WSDLs with a "?wsdl" Request, all three WSDLs have the address of the second endpoint inside.

<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="srv1"
		implementor="ch.dvbern.stvbe.sts.test.cxf.service.HelloWorldServiceSamlStandaloneImpl"
		address="/HelloWorldServiceXX"
		wsdlLocation="META-INF/cxf/HelloWorldService.wsdl">
	</jaxws:endpoint>

	<jaxws:endpoint id="srv2"
		implementor="ch.dvbern.stvbe.sts.test.cxf.service.HelloWorldServiceSamlJaasImpl"
		address="/HelloWorldServiceSamlOptional"
		wsdlLocation="META-INF/cxf/HelloWorldService.wsdl">
	</jaxws:endpoint>

	<jaxws:endpoint id="srv3"
		implementor="ch.dvbern.stvbe.sts.test.cxf.service.HelloWorldServiceWss4jImpl"
		address="/HelloWorldServiceWss4j"
		wsdlLocation="META-INF/cxf/HelloWorldService.wsdl">
	</jaxws:endpoint>
</beans>

> 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
>            Reporter: Matthias Germann
>
> 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.


[jira] Resolved: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-793.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.1)
                   2.0.4


This seems to be fixed in 2.0.4.

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


[jira] Commented: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Dan Diephouse (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514489 ] 

Dan Diephouse commented on CXF-793:
-----------------------------------

Hi Matthias, I'm not sure that I really support this change. Part of the point of supplying a WSDL is that you can be more explicit about which address people should use. Anyone else have any thoughts?

> 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
>            Reporter: Matthias Germann
>
> 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.


[jira] Updated: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Allard Buijze (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Allard Buijze updated CXF-793:
------------------------------

    Affects Version/s: 2.0.1

This issue was discovered in release 2.0.1 too.

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


[jira] Commented: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Matthias Germann (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514593 ] 

Matthias Germann commented on CXF-793:
--------------------------------------

Hi Dan,
The address rewriting is very usefull if you do wsdl-first development and deploy the same service to different environements (i.e. test, integration, production). The address rewriting could be enabled or disabled with a configuration option so that it is still possible to override the address manually.

> 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
>            Reporter: Matthias Germann
>
> 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.


[jira] Commented: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Allard Buijze (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12529422 ] 

Allard Buijze commented on CXF-793:
-----------------------------------

Hi,

I've bumped into this issue too, but I have a single jaxws:endpoint. The wsdl is located on my classpath.

For some reason, the endpoint address is not rewritten. Does the endpoint address of the WSDL have to have a specific value to be rewritten?

Any direction or maybe resolution of this issue would greatly help!

Regards,

Allard Buijze

> 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
>            Reporter: Matthias Germann
>
> 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.


[jira] Commented: (CXF-793) endpoint address rewriting for user supplied wsdl

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12514654 ] 

Daniel Kulp commented on CXF-793:
---------------------------------


This SHOULD be working.   In the tomcat deploy model, it does rewrite the address.   I don't know about the spring stuff.     If it doesn't, it should IMO.



> 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
>            Reporter: Matthias Germann
>
> 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.