Y
yurps
Hello,
I am currently developing a rapid deployment mechanism.
I have a webservice which I must deploy then generate a proxy
stub and add to my website project and then compile that and
deploy. Thing is I have 3 environments DEV, UAT, and PRO and
I need to rename the class name and constuctor accordingly.
thus I call
wsdl http://mysite/MyWebService/Service.asmx?wsdl /out:ServiceUAT.cs
in the .cs file I generate I get a classname and constructor which is
based
on the asmx page name.
public class Molar :
System.Web.Services.Protocols.SoapHttpClientProtocol {
public Molar() {
this.Url = "http://mysite/MyWebService/Service.asmx";
}
but I need to change this to:
public class MolarDEV :
System.Web.Services.Protocols.SoapHttpClientProtocol {
public MolarDEV() {
this.Url = "http://mysite/MyWebService/Service.asmx";
}
Is there a wsdl switch I can use to do this automatically, as the fewer
manual steps
I have in my deployment the better.
Many Thanks in advance,
Matt
I am currently developing a rapid deployment mechanism.
I have a webservice which I must deploy then generate a proxy
stub and add to my website project and then compile that and
deploy. Thing is I have 3 environments DEV, UAT, and PRO and
I need to rename the class name and constuctor accordingly.
thus I call
wsdl http://mysite/MyWebService/Service.asmx?wsdl /out:ServiceUAT.cs
in the .cs file I generate I get a classname and constructor which is
based
on the asmx page name.
public class Molar :
System.Web.Services.Protocols.SoapHttpClientProtocol {
public Molar() {
this.Url = "http://mysite/MyWebService/Service.asmx";
}
but I need to change this to:
public class MolarDEV :
System.Web.Services.Protocols.SoapHttpClientProtocol {
public MolarDEV() {
this.Url = "http://mysite/MyWebService/Service.asmx";
}
Is there a wsdl switch I can use to do this automatically, as the fewer
manual steps
I have in my deployment the better.
Many Thanks in advance,
Matt