You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Matteo TURRA (JIRA)" <ji...@apache.org> on 2010/03/25 18:53:27 UTC

[jira] Commented: (AXIS2-2776) Providing soap address based on request Host header in user provided WSDL

    [ https://issues.apache.org/jira/browse/AXIS2-2776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12849802#action_12849802 ] 

Matteo TURRA commented on AXIS2-2776:
-------------------------------------

I agree with Luis Mariano Luporini because if I have multiple installations I need to modify each to reflect hostnames!
Why don't use the hostname on the request coming?
Any news on this issue?

> Providing soap address based on request Host header in user provided WSDL
> -------------------------------------------------------------------------
>
>                 Key: AXIS2-2776
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2776
>             Project: Axis2
>          Issue Type: Improvement
>          Components: kernel
>    Affects Versions: 1.3, 1.2, nightly
>         Environment: Tested on Linux, Tomcat 6.0.10, Sun JDK 5. Patch included should work in any environment as well.
>            Reporter: Luis Mariano Luporini
>            Assignee: Deepal Jayasinghe
>             Fix For: nightly
>
>         Attachments: AxisService.java.patch
>
>
> When Axis2 must respond to a ?wsdl request, there are three possible scenarios in which soap:address is calculated and given back inside the generated WSDL.
>        1. User provided WSDL with parameter  modifyUserWSDLPortAddress set to false
>        2. User provided WSDL with parameter  modifyUserWSDLPortAddress set to true
>        3. On the fly WSDL generation
> In case 1 the soap:address in the response is left unaltered and the original WSDL without modifications is given to the client.
> In the other two cases (2 and 3), Axis2 is currently using the first available IP address in the server to complete (or replace) the hostname part of the generated soap:address in the WSDL. This is a problem in environments when virtual hosting is used, and it represents a problem too when you have development, testing and production environments with different hostnames/ips, you are using a custom WSDL and these environments can be queried from different locations (Internet and Intranet for example).
> For case 2, I've made the attached patch to AxisService.java.
> This patch uses the provided info in Host header of the HTTP request (if provided) to generate the soap:address info inside WSDLs.
> Case 1 is really different and there are different ways to solve it. I think I'd need more time to get to understand how all this works and then I'll be able to take at least a reasonable solution. There is a JIRA about this case but it's unassigned sadly:  AXIS2-2720 <http://issues.apache.org/jira/browse/AXIS2-2720>.
> Thanks.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org