Re: ByRef/Ref passing in Web Services

Tech-Archive recommends: Fix windows errors by optimizing your registry



Now back to the question - How do I make ref type work with non scalar
data types? (Not that I'd ever want to, but for academic reasons ..
How?)

This works for me:

public class Foo
{
	public int xoxo;
}

[WebService(Namespace = "http://tempuri.org/";)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1, EmitConformanceClaims = true)]
public class WebService : System.Web.Services.WebService
{
[WebMethod]
public void HelloWorld(ref Foo param)
{
}
}


-Brock
DevelopMentor
http://staff.develop.com/ballen




.



Relevant Pages

  • Re: ByRef/Ref passing in Web Services
    ... I swear I wrote an example last night which didn't, ... > public int xoxo; ... > public class WebService: System.Web.Services.WebService ...
    (microsoft.public.dotnet.framework)
  • Re: The curse of constant fields
    ... run, you need to recompile. ... public class Foo { ... so a dependency tree is needed after all. ...
    (comp.lang.java.programmer)
  • Re: Class Dispose
    ... public class Foo: IDisposable ... public void Dispose() ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: How to get the runtime class?
    ... > abstract public class foo { ... > the runtime class is type foo2 ... an object that is of class "foo2" you have some other problem. ... > public class foo2 extends foo { ...
    (comp.lang.java.programmer)
  • Re: public DataValue this[int column] indexing with int ???
    ... Public Class Foo ... Public Class Fooz ... Sub Main ...
    (microsoft.public.dotnet.languages.csharp)