Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.3
-
None
-
None
-
Any environment
Description
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
Attachments
Attachments
Issue Links
- is related to
-
AXIS2-3719 ?wsdl and ?wsdl2 returns wrong erp
- Resolved
-
AXIS2-2990 WSDL port address is not correctly generated for machines having multiple network interfaces
- Resolved
-
AXIS2-3843 httpFrontendHostUrl does not affect auto-generated WSDL
- Resolved
-
AXIS2-4144 Wrong port number in generated WSDL
- Resolved