Ask a Question related to ASP.NET Web Services, Design and Development.
-
Doug Kent #1
'out' parameters work outside of .NET?
Hello,
In .NET C# it is possible to define a parameter to a web service method as
'out'. The web service method is expected to set the value of the parameter
before it completes execution.
The question: Do 'out' parameters work with non-.NET web service
implementations, where the non-.NET implementation is consuming (calling)
the method containing the 'out' parameter?
Example, would non-.NET web service implementations be able to obtain the
value of the 'name' parameter in this .NET web service method:
[WebMethod]
public int WhatsYourName(out string name)
{
name = "Doug";
return 0;
}
Thanks,
Doug
Doug Kent Guest
-
#34564 [Com]: reference (in/out) parameters don't work
ID: 34564 Comment by: wharmby at uk dot ibm dot com Reported By: milman at gmx dot de Status: Assigned Bug... -
#34564 [Asn]: reference (in/out) parameters don't work
ID: 34564 Updated by: wharmby@php.net Reported By: milman at gmx dot de Status: Assigned Bug Type: COM... -
Open parameters do not work
The open parameters specified in URL (e.g. <http://partners.adobe.com/asn/acrobat/sdk/public/docs/PDFOpenParams.pdf#page=6)> do not work (neither in... -
Parameters to SQL not work sometimes
:confused; Here is the stored proc. I send a value for @OrgAction for the if statements. The first statement runs and returns data. Using the... -
passing parameters to a script doesn't work
Hi, I'm trying to pass parameters to a PHP script and it's not working. Whilst this is the first time I've tried to use this, I'm basically... -
Brock Allen #2
Re: 'out' parameters work outside of .NET?
Why don't you define a class that returns both a string and int? This is
a much cleaner approach in the context of web services. "out" is a C# thing,
not a web services thing (although, it does work IIRC).
-Brock
DevelopMentor
[url]http://staff.develop.com/ballen[/url]
> Hello,
>
> In .NET C# it is possible to define a parameter to a web service
> method as 'out'. The web service method is expected to set the value
> of the parameter before it completes execution.
>
> The question: Do 'out' parameters work with non-.NET web service
> implementations, where the non-.NET implementation is consuming
> (calling) the method containing the 'out' parameter?
>
> Example, would non-.NET web service implementations be able to obtain
> the value of the 'name' parameter in this .NET web service method:
>
> [WebMethod]
> public int WhatsYourName(out string name)
> {
> name = "Doug";
> return 0;
> }
> Thanks,
> Doug
Brock Allen Guest



Reply With Quote

