473,705 Members | 2,448 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

problem with Webservices(sec ured with SSL)

hi
I have been facing problem using C# webservices (secured using SSL).
In my webservice(secu red 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.ReadXMLSchem a(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.WebE xception: The underlying connection was closed: Could not
establish trust relationship with remote server. at
System.Net.Http WebRequest.Chec kFinalStatus() at
System.Net.Http WebRequest.EndG etResponse(IAsy ncResult asyncResult) at
System.Net.Http WebRequest.GetR esponse() at
System.Xml.XmlD ownloadManager. GetNonFileStrea m(Uri uri, ICredentials
credentials) at System.Xml.XmlD ownloadManager. GetStream(Uri uri, ICredentials
credentials) at System.Xml.XmlU rlResolver.GetE ntity(Uri absoluteUri, String
role, Type ofObjectToRetur n) at System.Xml.XmlT extReader.Creat eScanner() at
System.Xml.XmlT extReader.Init( ) at System.Xml.XmlT extReader.Read( ) at
System.Xml.XmlR eader.MoveToCon tent() at
System.Data.Dat aSet.ReadXmlSch ema(XmlReader reader, Boolean denyResolving) at
System.Data.Dat aSet.ReadXmlSch ema(String fileName) at
sample.WebServi ces.Utils.Commo nTasks.Retrieve ById(String EntityId, String
xmlTagName, String TableName, String PrimaryKey, String xmlFields, String
ConnectionStrin g, String Schema) in d:\sample\utils \commontasks.cs :line 101

Thanks in advance

This ds.readXMLSchem a(schema) works if not used with SSL Webservices.
the trace.xsd file is as well accessible
Nov 23 '05 #1
0 1539

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
1783
by: Jonas Daunoravicius | last post by:
I currently have a SSL domain where the SSL cert is applied to the whole FQDN. So, the whole domain is https://***. Also, we have another domain that does not have SSL. Using ASP, vbscript, and html, I'm linking certain logos and pdf files from the unsecured domain to the secured domain. The problem is that when a user logs in the secured site and goes to that specific page that has the logo that is pulled from http://***, the...
0
1655
by: Michael Brandt Lassen | last post by:
Hi gurus This problem is about calling Web services secured by Forms Authentication from Windows Forms user controls embedded in HTML. Using the object tag I’ve managed to include a Windows Forms user control in my HTML page (a .NET alternative to good old ActiveX). I’d like to use my control to call web-services instead of using behaviours (webservices.htc).
0
1047
by: Goran Djuranovic | last post by:
Hi All, I am having a problem exporting datagrid to excel in asp.net. The export function works fine when using "http://", but when I use "https://" (secure socket layer), it wants me to download the .ASPX file. Any idea why? -- Thanks for your time Goran Djuranovic
1
1558
by: Tom | last post by:
Hi, I am currently on a project where one site needs to send the user credentials to another site, through web services. Scenario: * "User 1" will authenticate to "Site A" using NTLM ("Site A" provides front-end presentation of data) * "Site A" will request confidential information about "User 1" to "Site B"
1
8339
by: Mark Richards | last post by:
Hi, I am interfacing with another company using web services (they are a java shop). We've been doing this for over 2 years, but a couple months age we started getting this error randomly. It started getting more frequent, so I re-wrote the code from ASP to ASP.Net. The problem still continues. It appears that the problem happens most often if I make successive calls to their server in a short time frame (but not always). They claim...
5
2706
by: Dany C. | last post by:
We have install a valid SSL certificate issued to www.mycompany.com on our web server running IIS 6.0 / win2003 SP1. Then we have created a sub domain pointing to the same server for our web services at ws.mycompany.com. We have properly installed the server certificate on the client machine. When the client try to connect to our secure webservice at https:\\ws.mycompany.com we have the foolwing error: System.Net.WebException: The...
7
2245
by: pthomet | last post by:
Another formulation of the message tittle could be : is it really "safe" (in the business sense) to embed a SSL webservice consumer into any given software, given that any time a proxy server will be encountered, then the call will fail (based on my knowledge) ? ....Different Player, shoot again... I am asking a question which was posted several times in the last months, but never answered; any advice / insight would be appreciated. ...
6
1915
by: David Jackson | last post by:
Hello, I'm presently developing a WinForms app in C# (VS.NET 2005) which needs to interface with a web service running on the company's public Internet site. The webservice is very simple - it receives a string, looks it up in a SQL Server database, and returns another string based on the results of the database query. Problem now is the amount of time it takes to return a value to the webservice over SSL.
5
2937
by: Jonathan Kay | last post by:
Hi, I'd like to my WCF webservice to work both on SSL and without. Unfortunately searching has led to dead ends, references to changes that only work on the old previous beta versions and I admit I am rather confused and frustrated. That being said, I'd like some direction in how exactly I'm supposed to accomplish this. Thanks very much, JK
0
8767
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8689
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9273
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9136
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7893
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6605
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4439
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4703
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2486
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.