Send Object to webservice problem cast

  • Thread starter news.microsoft.com
  • Start date
N

news.microsoft.com

Hi all,

I have a class LiveSupportClass.Config

[Serializable()]

[XmlRoot("LiveSupportClass.Config")]

public class Config : ISerializable

{

.......

My webservice return this object

[WebMethod (Description="LiveSupportClass.Config Object")]

[XmlInclude(typeof(LiveSupportClass.Config))]

public LiveSupportClass.Config LoadSettings (string idclient)

{

.......

Now my problem I the client (Win form) the return of my webservice is not
a LiveSupportClass.Config but mynamespace.webserviceclass.Config



Where is the problem

thanks for your help or suggestion



Costa Lino
 
U

User

I've solved this problem in this way.
When you add a web reference, VisualStudio creates
a wrapper of your web service in the file Reference.vb

Look in that file you'll se that the return value
will be of type Config.

To solve the prolem add, just before Config, LiveSupportClass.
You have also to specify the class or add the reference of the
class LiveSupportClass in you application.

Bye
Andrea
 

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,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top