[
https://issues.jboss.org/browse/AS7-2128?page=com.atlassian.jira.plugin.s...
]
Rostislav Svoboda commented on AS7-2128:
----------------------------------------
I found workaround:
{code}
...
Endpoint port = service.getPort(Endpoint.class);
BindingProvider bp = (BindingProvider) port;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL);
...
{code}
But it would mean to change all my tests.
Shouldn't be soap:address generated based on HTTP request, what if AS7 is behind httpd
?
Endpoint address in generated WSDL doesn't reflect IP address of
AS7 server, it's always localhost
--------------------------------------------------------------------------------------------------
Key: AS7-2128
URL:
https://issues.jboss.org/browse/AS7-2128
Project: Application Server 7
Issue Type: Bug
Components: Web Services
Affects Versions: 7.1.0.Alpha1
Reporter: Rostislav Svoboda
Assignee: Alessio Soldano
Priority: Critical
Endpoint address in generated WSDL doesn't reflect IP address of AS7 server. It's
always set to localhost, when I tried to deploy the same archive on EAP 5.1.1 the address
was correct (10.34.3.154 in my case).
Steps to reproduce:
Run latest AS7 build on your public IP address:
{code}
bin/standalone.sh --server-config=standalone.xml -b=10.34.3.154 -bmanagement=10.34.3.154
{code}
Deploy jaxws-benchmark-datatypes-ejb3.jar from WS testsuite
Check
http://10.34.3.154:8080/jaxws-benchmark-datatypes-ejb3/EndpointEJB3Wrappe...
{code}
...
<wsdl:service name="EndpointWrappedDocService">
<wsdl:port binding="tns:EndpointWrappedDocServiceSoapBinding"
name="EndpointWrappedDocPort">
<soap:address
location="http://localhost:8080/jaxws-benchmark-datatypes-ejb3/EndpointWrappedDocService/EndpointEJB3WrappedDocImpl"/>
</wsdl:port>
</wsdl:service>
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira