Link to home
Start Free TrialLog in
Avatar of srinvask
srinvask

asked on

Send/Receive Xml file to a https server via http client

Hi,
I have to send an Xml file to a third party and get back an Xml file.I have written a .Net Webservice to send the xml file.The problem is the 3 rd party accepts only secure https(SSL) connections.So it is not accepting the xml file I am trying to send because Iam sending the file on http and port 80 which is not secure.
Now Can you tell me how to overcome this problem.
Thanks very much
sri
ASKER CERTIFIED SOLUTION
Avatar of zahaby
zahaby

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of srinvask
srinvask

ASKER

Thanks zahaby for the reply.I am still working on it.Once I get any result i will tell u
Sri
Hi
the problem is with https.The 3rd party sever accepts only SSL connections.I am writing a webservice to send and receive xml  from the 3 rd party server.We have an account with them.I am getting the error

System.Net.WebException: The underlying connection was closed: Could not establish secure channel for SSL/TLS. ---> System.ComponentModel.Win32Exception: The function completed successfully, but must be called again to complete the context
   --- End of inner exception stack trace ---
   at System.Net.HttpWebRequest.CheckFinalStatus()
   at System.Net.HttpWebRequest.EndGetRequestStream(IAsyncResult asyncResult)
   at System.Net.HttpWebRequest.GetRequestStream()
   at RegisterDomain.PartnerProtocol.RegisterDomain() in c:\inetpub\wwwroot\registerdomain\registerdomain.asmx.cs:line 86
We have a SSL certificate on our server.I am trying to access it from my machine within the same network.
I am very new to this SSL .So it will be really gr8 if anyone can help me
Thanks
Sri
try to set AllowWriteStreamBuffering to true
also be sure that the client certificate not installed only for the machine account. you have also to install it for the current user
more info

http://www.mcse.ms/archive105-2004-3-433214.html

http://www.dotnet247.com/247reference/msgs/54/273337.aspx

http://weblogs.asp.net/jan/archive/2003/12/04/41154.aspx

I think the problem is with SSL connection
Our web server has got the SSL certificate.Do i need to install the certificate on my system also.The webservice from which I am sending the Xml is on my machine.I have gone thru the links u have provided.They are helpful but i am not knowing whether i need to install the certificate on my system also.
Thanks
Srin
I am not sure really
but I dont think so

try to add yourself admin account on the server and re-tery
and feed me back
Hi zahaby,
Thanks very much.It is working now.
Sri
Thanks very much
did you add yourself admin account ?
I would like to know what solution exactly solve the problem