Sounds good Luis. Please go ahead and send a patch. On 5/30/07, Luis Mariano Luporini <[EMAIL PROTECTED]> wrote:
dims:I went deeper into this and took a look at how it is handled in the code before submitting to JIRA. I understand that when Axis2 needs to arrange this address in WSDL, it gets the first IP address of the available network interfaces and use that. I 'm thinking that, maybe a better approach to handle a situation where the requests can come from different interfaces, instead of going through available IPs, Axis2 could just use the HTTP Host Header provided of the request made by the client (I do not know yet if Axis2 handles HTTP/1.0 also, in that case it could fall back to the lower level transport protocol to data to get and IP if 'Host' header is just not present for example). I will be also more friendly in cases where the services where behind proxies or HTTP front ends doing virtual hosting. I did not made a patch or something like that yet but, do you think it's a reasonable solution? Thanks for your time one more time. Luis Luis Mariano Luporini escribió: > Ok, dims thanks. I'll do that. > > Anyway I'm probably going for a 'Contract-First' approach. But it's > possible that we have clients using our WS from the internet (public IP > address) and from our LAN (private IP address). and that case is a > problem because with need to put a handcoded location in our WSDL (one > IP or the other). > > You clarified it a lot to me. > > Thanks for your help again. > > Luis > > Davanum Srinivas escribió: > >> Luis, >> >> You best bet for Axis2 1.2 release would be to save the autogenerated >> file and use the modifyUserWSDLPortAddress / useOriginalwsdl in >> services.xml. Please raise an issue in JIRA for an alternate mechanism >> say supply the host name in web.xml servlet init parameters for system >> wide use. Sorry about that. >> >> -- dims >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Davanum Srinivas :: http://davanum.wordpress.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
