Re: java websrvice and C# code file




It's by design. WSDL generate public access to member variable.
You can add accessor get/set on generated file but it's not a good idea
because you should do the job each time your WSDL will change !

Lionel.

"Ramesh Kumar via .NET 247" <anonymous@xxxxxxxxxxxxx> a écrit dans le
message de news: eLOwybUWFHA.3572@xxxxxxxxxxxxxxxxxxxxxxx
> (Type your message here)
>
> --------------------------------
> From: Ramesh Kumar
>
> Hi
> I am trying to consume a Java webservice from .Net client.
> There are classes written in java and I am generating a C# file from the
> WSDL file. The java classes has member variables with get and set methods.
> when a c# class is generated all i get is class with public variables
> defined in it. They are not the propeties with get and set accessors but
> just the public variables. Is this a limitation or ..am doing somthing
> wrong.
> If this is a limitation then can i modify this source so that I declare
> properties and evrything should work fine.
>
> Thanks
> Regards
> Ramesh Kumar.D.
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>N6OvGXj0wkiDdqM2svaVng==</Id>


.



Relevant Pages

  • Re: Should I explicitly initialize all member variables?
    ... question is about member variables. ... There are a couple of slight errors in that, in the Java bit: ... reference type which is used for boxing the value type derives ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: final and const java help needed for an old C++ programmer
    ... the same in java. ... be changed after initialization," and for member variables it ... immutable objects. ... The JLS sets the rules in ...
    (comp.lang.java.help)
  • Re: final and const java help needed for an old C++ programmer
    ... the same in java. ... reference final just stops the reference being changed. ... be changed after initialization," and for member variables it ...
    (comp.lang.java.help)
  • Re: Constructors
    ... And member variables are either reference types or primitives. ... there are times when you need explicit defensive copies in Java. ... final int[] i; ... In Java initialisation may happen later, ...
    (comp.lang.java.help)