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

Nandana Mihindukulasooriya commented on AXIS2-3337:
---------------------------------------------------

I fixed the issue (https://issues.apache.org/jira/browse/AXIS2-3784) in the 
trunk in revision 686828 
(http://svn.apache.org/viewvc?view=rev&revision=686828). There I used the ip 
address from the request to create the EPRs. I allowed TransportListener to 
provide the port and the protocol. Not like the ip, changing the port and the 
protocol according to the request uri is bit tricky. For, example, WSDL may 
publish both http and https EPRs. So if we change them according to the request 
URL , that would be wrong. But I agree, this should be improved. Currently, 
Axis2 doesn't seem to generate correct EPRs for the https endpoints.  
My other concern is usage of the static variables to do this in your patch. I 
think this will be a problem. We may need to figure out a better way to do this.

Thanks,
nandana

> Problem with soap:address location in the WSDL (IP Address is not a public IP 
> that is accessible from Internet).
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2-3337
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3337
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>    Affects Versions: 1.3
>         Environment: Any environment
>            Reporter: Raghu Upadhyayula
>            Priority: Critical
>         Attachments: AxisService.java, AxisServlet_diff3337.txt, 
> Diff_Axis2_3337_JIRA.txt
>
>
> Hi,
>             I have a problem with the soap:address location generated when I 
> browse the WSDL in the browser.  I'm using Axis2 1.3.
>             I'm looking at the WSDL in the browser using 
> http://ws.qa.company.com/webservices/services/MyWSService?wsdl
>             I get the WSDL and the soap:address location in the WSDL looks 
> like  
>            <soap:address 
> location="http://10.5.2.182:80/webservices/services/MyWSService"; />
>             But then problem is with the IP Address coming in the 
> soap:address location 10.5.2.182 is not a public IP that is accessible from 
> Internet.
>             I need the soap:address location to look like
>             <soap:address 
> location="http://ws.qa.company.com/webservices/services/MyWSService"; />
>             
>             Basically take the hostname coming in the request and use that in 
> the soap:address location.
>             Another thing, I found is that this is working fine if I use 
> ?wsdl2 in the URL above.
>             Note:
>             In my services.xml I have useOriginalWSDL property set to true 
> and modifyUserWSDLPortAddress was also set to true.
>             I've tried changing modifyUserWSDLPortAddress to false, but what 
> happened in that case was the soap:address location was not modified at all.
>             The soap:address location case as 
> http://localhost:80/webservices/services/MyWSService because the original 
> WSDL had this address in the soap:address location, since the localhost was 
> coming as it, I've change the modifyUserWSDLPortAddress property back to true.
> Thanks in Advance.
> Raghu

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to