Classic ASP question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    Classic ASP question

    Hi all, I have a .NET webservice which I would like to consume from a
    classic ASP page.

    Furthermore, I would like to populate a recordset (if possible) with the
    data from the returned webservice so I can implement paging in the classic
    ASP page...

    Does anyone have any idea if I can do this, and if so, how I would go about
    implementing it?
    TIA
    Mark


  • David Browne

    #2
    Re: Classic ASP question


    "Mark" <mark@Z-Zvolution.nZt> wrote in message
    news:OLfZrAdeFH A.1448@TK2MSFTN GP14.phx.gbl...[color=blue]
    > Hi all, I have a .NET webservice which I would like to consume from a
    > classic ASP page.
    >
    > Furthermore, I would like to populate a recordset (if possible) with the
    > data from the returned webservice so I can implement paging in the classic
    > ASP page...
    >
    > Does anyone have any idea if I can do this, and if so, how I would go
    > about
    > implementing it?[/color]


    Easiest way would be to create a COM object in .NET to talk to the web
    service and build the recordset.

    David


    Comment

    • Mark

      #3
      Re: Classic ASP question

      Hi David, thanks for your help but unfortunately, I do not have the ability
      to register COM objects on the server.

      Cheers
      Mark
      "David Browne" <davidbaxterbro wne no potted meat@hotmail.co m> wrote in
      message news:#T#heFdeFH A.3700@TK2MSFTN GP10.phx.gbl...[color=blue]
      >
      > "Mark" <mark@Z-Zvolution.nZt> wrote in message
      > news:OLfZrAdeFH A.1448@TK2MSFTN GP14.phx.gbl...[color=green]
      > > Hi all, I have a .NET webservice which I would like to consume from a
      > > classic ASP page.
      > >
      > > Furthermore, I would like to populate a recordset (if possible) with the
      > > data from the returned webservice so I can implement paging in the[/color][/color]
      classic[color=blue][color=green]
      > > ASP page...
      > >
      > > Does anyone have any idea if I can do this, and if so, how I would go
      > > about
      > > implementing it?[/color]
      >
      >
      > Easiest way would be to create a COM object in .NET to talk to the web
      > service and build the recordset.
      >
      > David
      >
      >[/color]


      Comment

      • David Browne

        #4
        Re: Classic ASP question


        "Mark" <mark@Z-Zvolution.nZt> wrote in message
        news:OVN6jLdeFH A.1136@TK2MSFTN GP12.phx.gbl...[color=blue]
        > Hi David, thanks for your help but unfortunately, I do not have the
        > ability
        > to register COM objects on the server.
        >
        > Cheers
        > Mark
        > "David Browne" <davidbaxterbro wne no potted meat@hotmail.co m> wrote in
        > message news:#T#heFdeFH A.3700@TK2MSFTN GP10.phx.gbl...[color=green]
        >>
        >> "Mark" <mark@Z-Zvolution.nZt> wrote in message
        >> news:OLfZrAdeFH A.1448@TK2MSFTN GP14.phx.gbl...[color=darkred]
        >> > Hi all, I have a .NET webservice which I would like to consume from a
        >> > classic ASP page.
        >> >
        >> > Furthermore, I would like to populate a recordset (if possible) with
        >> > the
        >> > data from the returned webservice so I can implement paging in the[/color][/color]
        > classic[color=green][color=darkred]
        >> > ASP page...
        >> >
        >> > Does anyone have any idea if I can do this, and if so, how I would go
        >> > about
        >> > implementing it?[/color]
        >>
        >>
        >> Easiest way would be to create a COM object in .NET to talk to the web
        >> service and build the recordset.
        >>[/color][/color]

        Ok,

        If you are stuck using VBScript, then use MSXML to build the SOAP request
        XML, POST it, and read the response.





        But this requires several things which are far from easy
        -coding in VBScript
        -Manually building SOAP requests in XML
        -Using the MSXML2.ServerXM LHTTP library to talk to the other web server
        -Manually reading SOAP responses in XML



        David


        Comment

        • Mark

          #5
          Re: Classic ASP question

          Hi David, thanks, Yes I thought that this would be the only way to do
          things. It's been so long since I did classic ASP :)
          Thanks again
          Mark

          "David Browne" <davidbaxterbro wne no potted meat@hotmail.co m> wrote in
          message news:OYJ5ScdeFH A.3880@tk2msftn gp13.phx.gbl...[color=blue]
          >
          > "Mark" <mark@Z-Zvolution.nZt> wrote in message
          > news:OVN6jLdeFH A.1136@TK2MSFTN GP12.phx.gbl...[color=green]
          > > Hi David, thanks for your help but unfortunately, I do not have the
          > > ability
          > > to register COM objects on the server.
          > >
          > > Cheers
          > > Mark
          > > "David Browne" <davidbaxterbro wne no potted meat@hotmail.co m> wrote in
          > > message news:#T#heFdeFH A.3700@TK2MSFTN GP10.phx.gbl...[color=darkred]
          > >>
          > >> "Mark" <mark@Z-Zvolution.nZt> wrote in message
          > >> news:OLfZrAdeFH A.1448@TK2MSFTN GP14.phx.gbl...
          > >> > Hi all, I have a .NET webservice which I would like to consume from a
          > >> > classic ASP page.
          > >> >
          > >> > Furthermore, I would like to populate a recordset (if possible) with
          > >> > the
          > >> > data from the returned webservice so I can implement paging in the[/color]
          > > classic[color=darkred]
          > >> > ASP page...
          > >> >
          > >> > Does anyone have any idea if I can do this, and if so, how I would go
          > >> > about
          > >> > implementing it?
          > >>
          > >>
          > >> Easiest way would be to create a COM object in .NET to talk to the web
          > >> service and build the recordset.
          > >>[/color][/color]
          >
          > Ok,
          >
          > If you are stuck using VBScript, then use MSXML to build the SOAP request
          > XML, POST it, and read the response.
          >
          > http://www.eggheadcafe.com/articles/20010209.asp
          >
          > http://dotnetjunkies.com/WebLog/nett...2/23/4904.aspx
          >
          > But this requires several things which are far from easy
          > -coding in VBScript
          > -Manually building SOAP requests in XML
          > -Using the MSXML2.ServerXM LHTTP library to talk to the other web server
          > -Manually reading SOAP responses in XML
          >
          >
          >
          > David
          >
          >[/color]


          Comment

          • John Timney \(ASP.NET MVP\)

            #6
            Re: Classic ASP question

            You could consider moving the whole logic client side and fetching the
            webservice results using javascript. Theres an example of calling a page
            here - and a web service is just a page that returns xml really.

            Real's HowTo : Useful code snippets for Java, JS, PB and more


            You would need to work out how to convert/parse the returned data to an xml
            data island, or a javascript array and use that to do your paging. Perhaps
            Sourceforges SAX parser would help.



            Of course I've not tried any of this, theoretically it should work.

            --
            Regards

            John Timney
            ASP.NET MVP
            Microsoft Regional Director

            "Mark" <mark@Z-Zvolution.nZt> wrote in message
            news:OcYVGJeeFH A.2420@TK2MSFTN GP12.phx.gbl...[color=blue]
            > Hi David, thanks, Yes I thought that this would be the only way to do
            > things. It's been so long since I did classic ASP :)
            > Thanks again
            > Mark
            >
            > "David Browne" <davidbaxterbro wne no potted meat@hotmail.co m> wrote in
            > message news:OYJ5ScdeFH A.3880@tk2msftn gp13.phx.gbl...[color=green]
            >>
            >> "Mark" <mark@Z-Zvolution.nZt> wrote in message
            >> news:OVN6jLdeFH A.1136@TK2MSFTN GP12.phx.gbl...[color=darkred]
            >> > Hi David, thanks for your help but unfortunately, I do not have the
            >> > ability
            >> > to register COM objects on the server.
            >> >
            >> > Cheers
            >> > Mark
            >> > "David Browne" <davidbaxterbro wne no potted meat@hotmail.co m> wrote in
            >> > message news:#T#heFdeFH A.3700@TK2MSFTN GP10.phx.gbl...
            >> >>
            >> >> "Mark" <mark@Z-Zvolution.nZt> wrote in message
            >> >> news:OLfZrAdeFH A.1448@TK2MSFTN GP14.phx.gbl...
            >> >> > Hi all, I have a .NET webservice which I would like to consume from
            >> >> > a
            >> >> > classic ASP page.
            >> >> >
            >> >> > Furthermore, I would like to populate a recordset (if possible) with
            >> >> > the
            >> >> > data from the returned webservice so I can implement paging in the
            >> > classic
            >> >> > ASP page...
            >> >> >
            >> >> > Does anyone have any idea if I can do this, and if so, how I would
            >> >> > go
            >> >> > about
            >> >> > implementing it?
            >> >>
            >> >>
            >> >> Easiest way would be to create a COM object in .NET to talk to the web
            >> >> service and build the recordset.
            >> >>[/color]
            >>
            >> Ok,
            >>
            >> If you are stuck using VBScript, then use MSXML to build the SOAP request
            >> XML, POST it, and read the response.
            >>
            >> http://www.eggheadcafe.com/articles/20010209.asp
            >>
            >> http://dotnetjunkies.com/WebLog/nett...2/23/4904.aspx
            >>
            >> But this requires several things which are far from easy
            >> -coding in VBScript
            >> -Manually building SOAP requests in XML
            >> -Using the MSXML2.ServerXM LHTTP library to talk to the other web server
            >> -Manually reading SOAP responses in XML
            >>
            >>
            >>
            >> David
            >>
            >>[/color]
            >
            >[/color]


            Comment

            Working...