|
||||||
| Database & Database Programming MySQL, Oracle, SQL, PL/SQL, ABAP, Smart Forms, and other databases and languages. A database is an organized body of related information used in many websites (including CC). |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
I have to access a SQL Database using a web service.
The web service can not be refrenced for some reason and I am unable to create any instances of it. I would like to know if I would be able to use some class that can take a, Code:
http://xxx.xxx.xxx.x:xxxx/blahblah.asxp?so_on_and_so_forth plz n thx Last edited by xXHalfSliceXx; 07-09-2007 at 10:54 PM. |
| Sponsored Links |
|
|
|
|||
|
I'll explain better.
Basically i need to be able to do the following: Code:
_______ srv = new _______();
srv.Execute("http://xxx.xxx.xxx.x:xxxx//blahblah.aspx");
//execute does not have to be the method name...
//You get the idea, i hope
Display example (In Internet Browser): name date study steven 5/23/1989 5/18/07 I would like to know if there is a class that can do that or something similar to it. It can be displayed with XMl, HTML, Excel, ANYHTHING. |
|
|||
|
For any1 that would like to know the answer to this question...
Code:
Uri url = new Uri("http://xxx.xxx.xxx.x:xxxx/blahblah.aspx");
WebRequest request = WebRequest.Create(url);
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
logFile.write(response.StatusDescription);
Stream dataStream = response.GetResponseStream();
StreamReader reader = new StreamReader(dataStream);
string responseFromServer = reader.ReadToEnd();
Console.WriteLine(responseFromServer);
dont forget to close reder, datastream and response
I'll have code for that in a bit =D |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Windows Service | Blaze | C# Programming | 2 | 10-28-2006 12:31 PM |
| ebXML Message Service | encoder | JavaScript and CSS | 0 | 05-25-2006 09:55 PM |
| Introducing The PAD Service Shareware Network | pad service | Hosting and Registrars | 2 | 05-16-2006 03:07 PM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |
Goal: 100,000 Posts
Complete: 98%