Hi friends, I am consuming a web service hosted on server.
I have .wsdl files at my local and able to consume my web service where I reference the .wsdl file from my local machine "D:\WSDL\abc.wsdl" this gives me the successfully generated the "Web Reference" in my project and able to consume the classes.
Now when I publish my code and run the application on another machine I am unable to use the web service this gives an error inside the application and function doesn't get perform.
Please guide / suggest me the way how can I consume the web service when holding the .wsdl at my local.
However, I have tried to do something like this below:
As the WebService generated in my "Web Reference" folder in the project, I opened the "Reference.cs" file and change the below line in the constructor
this.Url = global::Project.Properties.Settings.Default.WebService1URL;
to
this.Url = "local path";
This file was auto generated.
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.SpecialSettingAttribute(global::System.Configuration.SpecialSetting.WebServiceUrl)]
[global::System.Configuration.DefaultSettingValueAttribute("http:// mywebservice path")]
public string WebService1URL{
get {
return ((string)(this["WebService1URL"]));
}
}
I got this error: that is gone over my head
WSE 808: The following transport scheme is not supported: file.
Please guide me where I am lacking and pardon me if I could not explain the scenario well.
Thanks