Incorrect data types returned

Discussion in 'ASP .Net Web Services' started by Ishan Bhalla, Mar 3, 2008.

  1. Ishan Bhalla

    Ishan Bhalla Guest

    Hello,

    Am new to web services.

    i am exposing a web service that returns a datatable, but when i reference
    the web service and call it it seems to be returning
    GetCountriesResponseGetCountriesResult. Am not able to figure out what i am
    doing wrong.

    <WebService(Namespace:="http://www.abc.com")> _
    <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
    <Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
    <DataObjectAttribute()> _
    Public Class RankingManager
    Inherits System.Web.Services.WebService

    <WebMethod()> _
    Public Function GetCountries() As DataTable

    Dim ranking As New RankingDB

    Return ranking.getCountries

    End Function


    Thanks for all the help
    Regards
    Ishan
     
    Ishan Bhalla, Mar 3, 2008
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. ramu
    Replies:
    2
    Views:
    346
    rlblaster
    Feb 20, 2006
  2. Ashwin Rao
    Replies:
    2
    Views:
    1,090
    Martien Verbruggen
    Dec 3, 2009
  3. J. Garth Ogzewalla

    Data types returned by web service

    J. Garth Ogzewalla, Oct 6, 2003, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    177
    Ed Smith[msft]
    Oct 13, 2003
  4. Gary Roach
    Replies:
    0
    Views:
    124
    Gary Roach
    Sep 1, 2013
  5. Fábio Santos
    Replies:
    0
    Views:
    138
    Fábio Santos
    Sep 4, 2013
Loading...

Share This Page