How to include type in webreference?

A

Aaron

I am having trouble including a reference to an object of mine thru my web
service on the client.
I have tried including a: [WebMethod, SoapInclude(typeof(MyObject))]
reference, but this doesn't seem to catch.

Now if I create a bogus webmethod with a return object of MyObject the
object definition gets created just fine.
Without manually creating a definition of the object in the reference itself
how can I let it know to create a definition for this object?
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top