axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dishmily <enjoynet2...@hotmail.com>
Subject how can i make End point dynamic? (WSDL)
Date Fri, 26 Jun 2009 06:53:52 GMT

hi,

 i would like to ask you a question about the wsdl.

when i devloped a (java) web service in .aar data, the address location in
wsdl ist something like "http://localhost.....".

then i copied this .aar file to three different Host, each Host has
different IP Address. in each Host, the .aar file will be deployed by
Tomcat.

 then i used the fourth PC as PHP Client to call these three Web Services.

 on the PHP Client, i can define the end point of the web service, because i
know which IP the web service has.

 but the "soap:address location" in each WSDL refers to
"http://localhost.....", it is not dynamic. can anyone give me somt tips:
what should be changed, so that the "soap:address location" in each WSDL
refers to "http://Host IP......."?  

as i know, the wsdl file is contained in .aar file, when the web service
project be "cleaned and builded". as i copied the .aar to different PC/Host
(each Host has different IP). how could the "soap:address location" in wsdl
be changed automatic/dynamic,

thanks.
 
for example:

Now:

<service name="StockQuoteService">
        <documentation>My first service</documentation>
        <port name="StockQuotePort" binding="tns:StockQuoteBinding">
           <soap:address location="http://localhost/stockquote"/>
        </port>
    </service>

when .aar Data is deployed in Host,  the address location in wsdl should be
changed into:

          http://192.168.100.12/stockquote

for example, 192.168.100.12 is the IP Address of this Host.

-- 
View this message in context: http://www.nabble.com/how-can-i-make-End-point-dynamic--%28WSDL%29-tp24215801p24215801.html
Sent from the Axis - Dev mailing list archive at Nabble.com.


Mime
View raw message