Obfuscating attribute from WSDL.

P

pradeep_TP

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.?

Thanks!
pradeep_tp
 
J

John Saunders

pradeep_TP said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top