By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,908 Members | 2,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,908 IT Pros & Developers. It's quick & easy.

How can force the generation of classes in my proxy

P: n/a
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

Nov 23 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
hi,

have you tried with the XmlInclude attribute ?

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

Regards,
Rodrigo.

"go*******@consiliumsoft.com" wrote:
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

Nov 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.