hi all,
I have a xml url ,hit this url open data in xml format now save this data into sqlserver table how please Help for this question.
Thanks
Rajveer Singh
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anil KumarRank #2,740 · 511 reputationPosted Feb 24, 2015, 11:47 PM EST
OR
use "http://www.beansoftware.com/ASP.NET-FAQ/Read-Page-HTML.aspx" to simply get the source of the file and save it in sql..
Anil KumarRank #2,740 · 511 reputationPosted Feb 24, 2015, 8:50 AM EST
Example :
CREATE TABLE XmlTest(
Rest process in your c# code is same as you save data for other data formats
Please mark this solution as accepted if it solves the purpose
Rajveer singhRank #1,510 · 1.1K reputationPosted Feb 24, 2015, 5:59 PM EST
Thanks
Rajveer Singh
Anil KumarRank #2,740 · 511 reputationPosted Feb 24, 2015, 10:30 PM EST
Rajveer singhRank #1,510 · 1.1K reputationPosted Feb 24, 2015, 10:48 PM EST
and hit this url open data xml formate:-
Rajveer singhRank #1,510 · 1.1K reputationPosted Feb 25, 2015, 12:38 AM EST
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a send. ---> System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream. at System.Net.FixedSizeReader.ReadPacket(Byte[] buffer, Int32 offset, Int32 count) at System.Net.Security.SslState.StartReadFrame(Byte[] buffer, Int32 readBytes, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartReceiveBlob(Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.CheckCompletionBeforeNextReceive(ProtocolToken message, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.StartSendBlob(Byte[] incoming, Int32 count, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ForceAuthentication(Boolean receiveFirst, Byte[] buffer, AsyncProtocolRequest asyncRequest) at System.Net.Security.SslState.ProcessAuthentication(LazyAsyncResult lazyResult) at System.Net.TlsStream.CallProcessAuthentication(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Net.TlsStream.ProcessAuthentication(LazyAsyncResult result) at System.Net.TlsStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.PooledStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.Net.ConnectStream.WriteHeaders(Boolean async) --- End of inner exception stack trace --- at System.Net.HttpWebRequest.GetResponse() at Service.SAVERTI() in c:\Users\Administrator\Desktop\RTISERVICES\App_Code\Service.cs:line 49