Gaurav Taneja

Great dreams... never even get out of the box. It takes an uncommon amount of guts to put your dreams on the line, to hold them up and say, "How good or how bad am I?" That's where courage comes in.

  Home  |   Contact  |   Syndication    |   Login
  82 Posts | 1 Stories | 40 Comments | 7 Trackbacks

News




Google RankGoogle PRâ„¢ - Post your Page Rank with MyGooglePageRank.com



The content on this site represents my own personal opinions and thoughts at the time of posting, and does not reflect those of my employer's in any way.

Disclaimer:- All postings in this blog is provided "AS IS" with no warranties, and confers no rights.

Archives

Post Categories

Image Galleries

Atlas

Error

OutLook

SharePointService

Usefull Site Links

this.EnableViewState = false;

HttpContext.Current.Response.ContentEncoding = System.Text.Encoding.UTF8;

HttpContext.Current.Response.ContentType = "text/XML";

HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.Public);

HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://yourewebsercvice.asmx?wsdl");  // change the url

request.Credentials=new NetworkCredential("sample name","password","domain");

HttpWebResponse response = (HttpWebResponse)request.GetResponse ();

Stream receiveStream =response.GetResponseStream();

StreamReader readStream = new StreamReader (receiveStream, Encoding.UTF8);

string result=readStream.ReadToEnd ();

HttpContext.Current.Response.Write(result);

HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" + "fileName.xml");

posted on Monday, January 29, 2007 8:01 AM

Feedback

# re: Downloading webservice with wsdl 7/29/2009 1:20 PM kia
image sex girls


Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: