Ask a Question related to ASP.NET Web Services, Design and Development.
-
JeffC #1
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
-
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... -
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 =... -
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... -
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... -
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... -
JeffC #2
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
-
JeffC #3
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



Reply With Quote

