I have already found that out. Thanks for your help by the way
"John Saunders" wrote:
> "pradeep_TP" <> wrote in message
> news:05C06022-6A57-40EA-B7B6-...
> > hello everybody,
> >
> > I have simple web method in a web service that is returning a data of a
> > user
> > defined type. When I refer to this web service from my client
> > application, I
> > can see this user defined type appearing as a complex type data type
> > inside
> > the WSDL file. The user defined type is an entity class with two
> > properties
> > that is setting and returning a string value.
> >
> > I want that one of the attributes inside this class to be hidden from the
> > clients using this webservice. I want to somehow obfuscate the first
> > propery
> > in the entity class without actually modifying the entity class. Is there
> > any
> > way that I can attribute a property so that it doesn't get pumped out of
> > the
> > SOAP in the
> > WSDL.?
>
> Take a look at the XmlIgnoreAttribute.
>
> John
>
>
>