change serviceUri in runtime

8 views
Skip to first unread message

Pedro Mello

unread,
May 14, 2014, 3:31:14 PM5/14/14
to wsf-...@googlegroups.com
Is there a way to setup the host part of service uri at runtime? I'm planning to use zeroconf/avahi to server discovery.

Dmitry Utkin

unread,
May 14, 2014, 3:53:27 PM5/14/14
to wsf-...@googlegroups.com
If you mean to change service's address while getting wsdl via web interface: there is no method to control that.

Service's host:port it's always equal to server host:port from client request, i.e. if you access to the wsdl service by url:

http://localhost:9090/axis2/services/staff.wsdl.Wsdl/get/your/your.Service.wsdl

service's uri will be

<soap:address location="http://localhost:9090/axis2/services/your.Service"/>


and if you if you access the same wsdl service by url:

http://127.0.0.1:9090/axis2/services/staff.wsdl.Wsdl/get/your/your.Service.wsdl

service's uri will be

<soap:address location="http://127.0.0.1:9090/axis2/services/your.Service"/>



среда, 14 мая 2014 г., 23:31:14 UTC+4 пользователь Pedro Mello написал:
Reply all
Reply to author
Forward
0 new messages