Wednesday, March 28, 2012

Web service

I am wanting to display the following:
http://www.nraila.org/Services/Legi...dates.asmx?WSDL
in a datagrid on a website.
Any good place to start in figuring out how to do this? I've found some
RSS stuff on the web, but it doesnt allow you to adjust the content like
loading it into a datagrid would do.
BCGoober:
I got it up and running in about 2 minutes, bet you can do the same.
In VS.Net, open a web project (new or existing), right click on "References"
and select "Add Web reference" enter that URL in the box and hit "go".
Click "Add Referenc"
in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
<asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />
in your codebehind, just do:
Protected grid As System.Web.UI.WebControls.DataGrid
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load
Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
grid.DataSource = nraila.GetLegislativeUpdates()
grid.DataBind()
End Sub
and you should be all go :)
Karl
MY ASP.Net tutorials
http://www.openmymind.net/
"Goober" <goober@.christian.net> wrote in message
news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
> I am wanting to display the following:
> http://www.nraila.org/Services/Legi...dates.asmx?WSDL
> in a datagrid on a website.
> Any good place to start in figuring out how to do this? I've found some
> RSS stuff on the web, but it doesnt allow you to adjust the content like
> loading it into a datagrid would do.
> BC
Karl :
how to add a web reference when there is a proxy '
"Karl Seguin" wrote:

> Goober:
> I got it up and running in about 2 minutes, bet you can do the same.
> In VS.Net, open a web project (new or existing), right click on "Reference
s"
> and select "Add Web reference" enter that URL in the box and hit "go".
> Click "Add Referenc"
> in your page, drop a datagrid, set the AutoGenerateColumns to true ala:
> <asp:DataGrid AutoGenerateColumns="True" Runat="server" ID="grid" />
> in your codebehind, just do:
> Protected grid As System.Web.UI.WebControls.DataGrid
> Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
> Handles MyBase.Load
> Dim nraila As New org.nraila.www.NRAILANewsandUpdatesSyndication
> grid.DataSource = nraila.GetLegislativeUpdates()
> grid.DataBind()
> End Sub
> and you should be all go :)
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
> "Goober" <goober@.christian.net> wrote in message
> news:e6EKBrJCFHA.612@.TK2MSFTNGP09.phx.gbl...
>
>
Vinay:
To be honest I didn't know...but a google search turned up a couple results
you might find handy:
http://www.devx.com/tips/Tip/17401?trk=DXRSS_DOTNET
and
http://www.codeproject.com/vb/net/w...ce_by_proxy.asp
Hope this helps,
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"vinay" <vinay@.discussions.microsoft.com> wrote in message
news:8A4764EA-CFA0-41F3-8B76-C9FB38307CAA@.microsoft.com...
> Karl :
> how to add a web reference when there is a proxy '
> "Karl Seguin" wrote:
>
"References"
System.EventArgs)
some
like

0 comments:

Post a Comment