'out' parameters work outside of .NET?

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

  1. #1

    Default '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

  2. Similar Questions and Discussions

    1. #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...
    2. #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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

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