Hi
For example, this url is used in the web.config:
<add key="Service1" value="http://www.hoster.com/Ron/WS/Service1.asmx"/>
this in the *.discomap file:
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://misasp.hevra.haifa.ac.il/ronetgar/AnswerService.asmx?disco" filename="Service1.disco" />
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://misasp.hevra.haifa.ac.il/ronetgar/AnswerService.asmx?wsdl" filename="AnswerService.wsdl" />
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.DiscoveryDocumentReference" url="http://www.hoster.com/Ron/WS/Service1.asmx?disco" filename="Service1.disco" />
<DiscoveryClientResult referenceType="System.Web.Services.Discovery.ContractReference" url="http://www.hoster.com/Ron/WS/Service1.asmx?wsdl" filename="Service1.wsdl" />
and this is in the *.wsdl file:
<wsdl:service name="Service1">
<wsdl:port name="Service1Soap" binding="tns:Service1Soap">
<soap:address location="http://www.hoster.com/Ron/WS/Service1.asmx" />
</wsdl:port>
<wsdl:port name="Service1Soap12" binding="tns:Service1Soap12">
<soap12:address location="http://www.hoster.com/Ron/WS/Service1.asmx" />
</wsdl:port>
<wsdl:port name="Service1HttpGet" binding="tns:Service1HttpGet">
<http:address location="http://www.hoster.com/Ron/WS/Service1.asmx" />
</wsdl:port>
<wsdl:port name="Service1HttpPost" binding="tns:Service1HttpPost">
<http:address location="http://www.hoster.com/Ron/WS/Service1.asmx" />
</wsdl:port>
</wsdl:service>
This site should be disigned for every server and not for the specific one.
I want that in the future, each person will can take all the files of the site with the WS directory andf put it in every server he wants. In this situation, the site sould recognize by himself the current directory that he is located in, and to use the Web Service that is located in the ~/WS directory.
Thanks!