hi
I have been facing problem using C# webservices (secured using SSL).
In my webservice(secured with SSL)
It works fine if I try to access data from database through dataset.
If I try to confirm the dataset with schema using following line
ds.ReadXMLSchema(schema) and then access data through dataset
schema is a url to my xsd file.
schema = https://localcomputer/sample/trace.xsd
It would be of great help if you could provide any solution for this.
The error message is as follows:
System.Net.WebException: The underlying connection was closed: Could not
establish trust relationship with remote server. at
System.Net.HttpWebRequest.CheckFinalStatus() at
System.Net.HttpWebRequest.EndGetResponse(IAsyncRes ult asyncResult) at
System.Net.HttpWebRequest.GetResponse() at
System.Xml.XmlDownloadManager.GetNonFileStream(Uri uri, ICredentials
credentials) at System.Xml.XmlDownloadManager.GetStream(Uri uri, ICredentials
credentials) at System.Xml.XmlUrlResolver.GetEntity(Uri absoluteUri, String
role, Type ofObjectToReturn) at System.Xml.XmlTextReader.CreateScanner() at
System.Xml.XmlTextReader.Init() at System.Xml.XmlTextReader.Read() at
System.Xml.XmlReader.MoveToContent() at
System.Data.DataSet.ReadXmlSchema(XmlReader reader, Boolean denyResolving) at
System.Data.DataSet.ReadXmlSchema(String fileName) at
sample.WebServices.Utils.CommonTasks.RetrieveById( String EntityId, String
xmlTagName, String TableName, String PrimaryKey, String xmlFields, String
ConnectionString, String Schema) in d:\sample\utils\commontasks.cs:line 101
Thanks in advance
This ds.readXMLSchema(schema) works if not used with SSL Webservices.
the trace.xsd file is as well accessible