Accepting datasets as parameters to webservice

Ask a Question related to ASP.NET Web Services, Design and Development.

  1. #1

    Default Accepting datasets as parameters to webservice

    I've created a web service with a method that accepts a string and a dataset
    as parameters. I've created the proxy class and written a .ASPX page to call
    it. The code in the .ASPX loads some test data into the dataset and calls
    the proxy class. The Web Service starts up, the string has the data from the
    call in the .ASPX page, but the contents of the dataset parameter is
    "Undefined." How can I see where the dataset got "lost"?

    JeffC Guest

  2. Similar Questions and Discussions

    1. Webservice Accepting XML
      Can anyone point me to any resources/examples on how to build a webservice that accepts an xml file. I have customers who need to update a...
    2. Passing parameters in .NET to a webservice
      I'm trying to call a webservice from a .aspx webpage using JavaScript in the format of: function GetNewMessages() { iCallID =...
    3. Hiding parameters in webservice ?
      Isīt possible to have a hidden paramter to a webservice-method. For ex: I want t send username as the last parameter in a method, but I donīt want...
    4. Accepting data from URL Parameters
      I appologize for what may be a newbie-like request, but I have not been able to find this information in the PHP documentation. If I were to have...
    5. Extended Stored Procedures accepting Real Parameters
      I am looking for examples of Extended stored procedures that accept floating point or decimal numbers as parameters. Any assistance would be...
  3. #2

    Default RE: Accepting datasets as parameters to webservice

    A little more information:

    1) There are three methods in this web service. One of them accepts only a
    dataset as a parameter, and that seems to arrive fine. The one that accepts
    a string and a dataset doesn't get the dataset.

    2) I've put a SOAP debugger (basically a proxy that intercepts the request
    and response) in line and found that the dataset is indeed in the request.

    I'm also using a custom SOAP header (on all three methods) to provide
    authentication.
    JeffC Guest

  4. #3

    Default RE: Accepting datasets as parameters to webservice

    I found out what I was doing wrong. I changed the name of the parameter
    after I generated the proxy class. Hence, the name in the XML was "ds", but
    the new name of the parameter in the C# source was "dsP". When I renamed the
    parameter back to "ds", it was no longer undefined.

    "JeffC" wrote:
    > I've created a web service with a method that accepts a string and a dataset
    > as parameters. I've created the proxy class and written a .ASPX page to call
    > it. The code in the .ASPX loads some test data into the dataset and calls
    > the proxy class. The Web Service starts up, the string has the data from the
    > call in the .ASPX page, but the contents of the dataset parameter is
    > "Undefined." How can I see where the dataset got "lost"?
    >
    JeffC Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139