web service deployment
-
hi all, my requirement is am creating web services in my local mechine say(local host). consider we are 10 developers and each one deploying this web service. after deploying web service wil create .disco files, .discomap and wsdl file and which refers to that server name (like http://mac11/webservice/service1.asmx). on my production system this wil run greately. now am creating one web setup and web setup for my web services. am installing it in to new server with mechine name abcd10. (web service in http://abcd10/webservice/service.asmx and installing web setup in server). after this when i run my page it shows some errors because my web service is in different path. that is on development service is in http://mac10/webservice/service1.asmx and after that the service is in http://abcd10/webservice/service1.asmx. i have lot of web services and web references(ie disco, dico map file). how can i change the mechine name and path depending on the installation once again thanks for ur help nidheesh chakkara
-
hi all, my requirement is am creating web services in my local mechine say(local host). consider we are 10 developers and each one deploying this web service. after deploying web service wil create .disco files, .discomap and wsdl file and which refers to that server name (like http://mac11/webservice/service1.asmx). on my production system this wil run greately. now am creating one web setup and web setup for my web services. am installing it in to new server with mechine name abcd10. (web service in http://abcd10/webservice/service.asmx and installing web setup in server). after this when i run my page it shows some errors because my web service is in different path. that is on development service is in http://mac10/webservice/service1.asmx and after that the service is in http://abcd10/webservice/service1.asmx. i have lot of web services and web references(ie disco, dico map file). how can i change the mechine name and path depending on the installation once again thanks for ur help nidheesh chakkara
in your Proxy class created by the add wen reference step go into the constructor and make it refer to the web.config file this is where the locations are set and make then refer to the web.config file wsdl.exe allows you to create more specific proxy classes without having to be in the IDE. Nick 1 line of code equals many bugs. So don't write any!!