Pass variable ByRef to Web Service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • SQLScott

    Pass variable ByRef to Web Service

    I know that passing variables "ByRef" to a web web service is permitted, but
    what I am expreriencing is quite odd.

    If I take out my ByRef parameter from the method of my web service, i can
    step through (F11) into the web service for debugging.

    If I put in a ByRef parameter in the method of the web service, F11
    (stepping into the method) does not work. It acts as though I hit the F10
    key (Step Over).

    Has anyone else seen this?
    --
    Thanks,

    Scott
  • Martin Kulov

    #2
    Re: Pass variable ByRef to Web Service

    Generally ByRef parameter does not make any sense in web service world. All
    parameters are passed by value. Honestly I do not know what is happening. Go
    to the web service proxy class and see what is it calling.


    --
    Martin Kulov
    Advanced Software Engineering


    MCAD Charter Member
    MCSD.NET Early Achiever
    MCSD




    "SQLScott" <SQLScott@discu ssions.microsof t.com> wrote in message
    news:AA439B0C-09A8-47C2-A893-A89CCD1DE936@mi crosoft.com...[color=blue]
    > I know that passing variables "ByRef" to a web web service is permitted,[/color]
    but[color=blue]
    > what I am expreriencing is quite odd.
    >
    > If I take out my ByRef parameter from the method of my web service, i can
    > step through (F11) into the web service for debugging.
    >
    > If I put in a ByRef parameter in the method of the web service, F11
    > (stepping into the method) does not work. It acts as though I hit the F10
    > key (Step Over).
    >
    > Has anyone else seen this?
    > --
    > Thanks,
    >
    > Scott[/color]

    Comment

    • erymuzuan

      #3
      Re: Pass variable ByRef to Web Service

      It's not entirely true when you say all the parameters are passed by
      values, since web services define input and output messages element in
      WSDL in such a way that it's always XML element fragment. You can of
      course make input and output messages refer to the same element, but
      this won't necessarily make them reference type. This must be
      implemented by the web services framework(i.e. ASP.Net web services,
      axis etc.)


      regards
      erymuzuan

      Martin Kulov wrote:[color=blue]
      > Generally ByRef parameter does not make any sense in web service world. All
      > parameters are passed by value. Honestly I do not know what is happening. Go
      > to the web service proxy class and see what is it calling.
      >
      >[/color]

      Comment

      Working...