Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / October 2005

Tip: Looking for answers? Try searching our database.

How can force the generation of classes in my proxy

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gordingin@consiliumsoft.com - 14 Oct 2005 22:11 GMT
The best way to describe my problem is to show some code....

public class Test
{
 int a;
 public Test()
 {
 }
}

public class Test1
{
 int b;
 public Test1()
 {
 }
}

public class Test2
{
 int c;
 public Test2()
 {
 }
}

[WebMethod]
public void test(Test objTest)
{

}

When the IDE creates the proxy, ONLY the TEST class has generated (I
believe because the webmeth test uses it)
What I want is for my proxy class to ALSO have Test1 and Test2.

How can I FORCE this to happend. I wish NOT to create FAKE methods that
use Test1 and Test2 JUST so they get generated.

thanks
Ralph
Rodrigo García - 18 Oct 2005 11:34 GMT
hi,

have you tried with the XmlInclude attribute ?

[WebMethod]
[XmlInclude(typeof(Test1))]
[XmlInclude(typeof(Test2))]

Regards,
Rodrigo.

> The best way to describe my problem is to show some code....
>
[quoted text clipped - 37 lines]
> thanks
> Ralph

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.