You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Christian Vest Hansen (JIRA)" <ji...@apache.org> on 2007/10/31 11:32:50 UTC

[jira] Created: (CXF-1158) configurability of endpoint rewrting

configurability of endpoint rewrting
------------------------------------

                 Key: CXF-1158
                 URL: https://issues.apache.org/jira/browse/CXF-1158
             Project: CXF
          Issue Type: New Feature
          Components: Configuration
    Affects Versions: 2.0.2
            Reporter: Christian Vest Hansen


I deploy a CXF web service to a cluster that sits behind a content switch.

We have HTTPS on the content switch for security, but internally in
the cluster we use plain HTTP for speed.

Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
in my WSDL, thus reporting plain HTTP endpoints on the services/ page
and in the final WSDL, when in fact they should be HTTPS.

What I'de like is an attribute on the jaxws:endpoint element, could be a
boolean 'rewriteUrl' that defaults to true, so that I can disable this 
functionality and thereby force CXF to use the endpoint url in verbatim 
from the WSDL.

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


[jira] Issue Comment Edited: (CXF-1158) configurability of endpoint rewrting

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

njiang edited comment on CXF-1158 at 11/1/07 11:12 PM:
-------------------------------------------------------------

If you turn the disable-address-updates to be true. You need to specify the full url for your endpoint 
and current CXF servlet transport will do some work to cut the full url address into related path.
I just did some hacking on it, and found it need to cover lots of situations, 
such as address start with hostname or host IP address etc.

The base-address parameter could be a good solution for your case.

Willem

      was (Author: njiang):
    You need to specify the full url for your endpoint , and current CXF servlet transport will do some work to cut the full url address into related path.
I am working on this, to find a way that could meed your need.

Willem
  
> configurability of endpoint rewrting
> ------------------------------------
>
>                 Key: CXF-1158
>                 URL: https://issues.apache.org/jira/browse/CXF-1158
>             Project: CXF
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.2
>            Reporter: Christian Vest Hansen
>             Fix For: 2.0.3
>
>
> I deploy a CXF web service to a cluster that sits behind a content switch.
> We have HTTPS on the content switch for security, but internally in
> the cluster we use plain HTTP for speed.
> Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
> in my WSDL, thus reporting plain HTTP endpoints on the services/ page
> and in the final WSDL, when in fact they should be HTTPS.
> What I'de like is an attribute on the jaxws:endpoint element, could be a
> boolean 'rewriteUrl' that defaults to true, so that I can disable this 
> functionality and thereby force CXF to use the endpoint url in verbatim 
> from the WSDL.

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


[jira] Resolved: (CXF-1158) configurability of endpoint rewrting

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

Daniel Kulp resolved CXF-1158.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.3

> configurability of endpoint rewrting
> ------------------------------------
>
>                 Key: CXF-1158
>                 URL: https://issues.apache.org/jira/browse/CXF-1158
>             Project: CXF
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.2
>            Reporter: Christian Vest Hansen
>             Fix For: 2.0.3
>
>
> I deploy a CXF web service to a cluster that sits behind a content switch.
> We have HTTPS on the content switch for security, but internally in
> the cluster we use plain HTTP for speed.
> Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
> in my WSDL, thus reporting plain HTTP endpoints on the services/ page
> and in the final WSDL, when in fact they should be HTTPS.
> What I'de like is an attribute on the jaxws:endpoint element, could be a
> boolean 'rewriteUrl' that defaults to true, so that I can disable this 
> functionality and thereby force CXF to use the endpoint url in verbatim 
> from the WSDL.

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


[jira] Commented: (CXF-1158) configurability of endpoint rewrting

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

willem Jiang commented on CXF-1158:
-----------------------------------

You need to specify the full url for your endpoint , and current CXF servlet transport will do some work to cut the full url address into related path.
I am working on this, to find a way that could meed your need.

Willem

> configurability of endpoint rewrting
> ------------------------------------
>
>                 Key: CXF-1158
>                 URL: https://issues.apache.org/jira/browse/CXF-1158
>             Project: CXF
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.2
>            Reporter: Christian Vest Hansen
>             Fix For: 2.0.3
>
>
> I deploy a CXF web service to a cluster that sits behind a content switch.
> We have HTTPS on the content switch for security, but internally in
> the cluster we use plain HTTP for speed.
> Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
> in my WSDL, thus reporting plain HTTP endpoints on the services/ page
> and in the final WSDL, when in fact they should be HTTPS.
> What I'de like is an attribute on the jaxws:endpoint element, could be a
> boolean 'rewriteUrl' that defaults to true, so that I can disable this 
> functionality and thereby force CXF to use the endpoint url in verbatim 
> from the WSDL.

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


[jira] Commented: (CXF-1158) configurability of endpoint rewrting

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

willem Jiang commented on CXF-1158:
-----------------------------------


Just realized Dan Kulp also provide a base-address parameter to force the endpoint address start with you specify base address.
I just added a test case to show it.

Willem

> configurability of endpoint rewrting
> ------------------------------------
>
>                 Key: CXF-1158
>                 URL: https://issues.apache.org/jira/browse/CXF-1158
>             Project: CXF
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.2
>            Reporter: Christian Vest Hansen
>             Fix For: 2.0.3
>
>
> I deploy a CXF web service to a cluster that sits behind a content switch.
> We have HTTPS on the content switch for security, but internally in
> the cluster we use plain HTTP for speed.
> Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
> in my WSDL, thus reporting plain HTTP endpoints on the services/ page
> and in the final WSDL, when in fact they should be HTTPS.
> What I'de like is an attribute on the jaxws:endpoint element, could be a
> boolean 'rewriteUrl' that defaults to true, so that I can disable this 
> functionality and thereby force CXF to use the endpoint url in verbatim 
> from the WSDL.

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


[jira] Commented: (CXF-1158) configurability of endpoint rewrting

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

Daniel Kulp commented on CXF-1158:
----------------------------------


Would a simpler solution of adding a flag to the servlet config to disable it across the board for all services the servlet hosts work?



> configurability of endpoint rewrting
> ------------------------------------
>
>                 Key: CXF-1158
>                 URL: https://issues.apache.org/jira/browse/CXF-1158
>             Project: CXF
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.2
>            Reporter: Christian Vest Hansen
>
> I deploy a CXF web service to a cluster that sits behind a content switch.
> We have HTTPS on the content switch for security, but internally in
> the cluster we use plain HTTP for speed.
> Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
> in my WSDL, thus reporting plain HTTP endpoints on the services/ page
> and in the final WSDL, when in fact they should be HTTPS.
> What I'de like is an attribute on the jaxws:endpoint element, could be a
> boolean 'rewriteUrl' that defaults to true, so that I can disable this 
> functionality and thereby force CXF to use the endpoint url in verbatim 
> from the WSDL.

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


[jira] Commented: (CXF-1158) configurability of endpoint rewrting

Posted by "Christian Vest Hansen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12539075 ] 

Christian Vest Hansen commented on CXF-1158:
--------------------------------------------

In my instance, yes.

> configurability of endpoint rewrting
> ------------------------------------
>
>                 Key: CXF-1158
>                 URL: https://issues.apache.org/jira/browse/CXF-1158
>             Project: CXF
>          Issue Type: New Feature
>          Components: Configuration
>    Affects Versions: 2.0.2
>            Reporter: Christian Vest Hansen
>
> I deploy a CXF web service to a cluster that sits behind a content switch.
> We have HTTPS on the content switch for security, but internally in
> the cluster we use plain HTTP for speed.
> Now, CXF has a habit of rewriting my carefully crafted endpoint URLs
> in my WSDL, thus reporting plain HTTP endpoints on the services/ page
> and in the final WSDL, when in fact they should be HTTPS.
> What I'de like is an attribute on the jaxws:endpoint element, could be a
> boolean 'rewriteUrl' that defaults to true, so that I can disable this 
> functionality and thereby force CXF to use the endpoint url in verbatim 
> from the WSDL.

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