-----------------------------------------------------------

New Message on MumbaiUserGroup

-----------------------------------------------------------
From: Vijay
Message 1 in Discussion

Hi All,

I am trying to use SQL XML 3.0 feature of exposing the stored procedure as a web 
service.
I have no problem accessing the stored procedure as a web service after setting up SQL 
XML (Configure IIS Support). 
I have changed the URL Behaviour property of the Proxy to "Dynamic". 

Now the code in the Reference.cs file is as follows:

public SoapWs() {

string urlSetting = 
System.Configuration.ConfigurationSettings.AppSettings["MSMQ.iscjp.SoapWs"];

if ((urlSetting != null)) {
     this.Url = string.Concat(urlSetting, "");
   }
else {
                this.Url = "http://Server/SQLXML/SoapWs";;
       }
}

If I change the code to following it gives error:

if ((urlSetting != null)) {
     this.Url = "Path to SQLXML service on another machine";                 
//modified to point to different   
                               //server
     this.Discover();    //added
   }
else {
                this.Url = "http://Server/SQLXML/SoapWs";;
       }
}

In short i am trying to dynamically change the web service url but it gives following 
error:

--------------------------------------------------------------------------------
An unhandled exception of type 'System.Net.WebException' occured in 
system.web.services.dll

Additional information: There was an error downloading 
'http://NewServer/SQLXML/SoapWs'.

-------------------------------------------------------------------------------

Thanks for any help,
Dave


-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/mumbaiusergroup/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to