Lost Password?


Go Back   CodeCall Programming Forum > Web Development Forum > Database & Database Programming

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).

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-09-2007, 05:56 PM
xsonny xsonny is offline
Newbie
 
Join Date: Jul 2007
Posts: 8
Rep Power: 0
xsonny is on a distinguished road
Default Accessing a databse with a web service

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
string, and return the value to either an html, xml or excel document.

plz n thx

Last edited by xXHalfSliceXx; 07-09-2007 at 10:54 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-10-2007, 02:10 PM
xsonny xsonny is offline
Newbie
 
Join Date: Jul 2007
Posts: 8
Rep Power: 0
xsonny is on a distinguished road
Default I'll explain better

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
The method has to display the information in some format

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-10-2007, 02:38 PM
xsonny xsonny is offline
Newbie
 
Join Date: Jul 2007
Posts: 8
Rep Power: 0
xsonny is on a distinguished road
Default NVM I founded it

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
now all you need to do is find an html reader
I'll have code for that in a bit =D
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 12:24 PM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 98%

Ads