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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top