Generate C# proxy with fully qualified name for complex data type

I am using the class CSharpCodeProvider to create web service proxy class. I would like to know whether there is any way to create web service proxy class with fully qualified name for data type instead of only import the namespace of the data type and include the data type name in the class. For example, there is a data type http://com.abc.test.ObjectA in a wsdl. If it is possible to generate the web service proxy class as follows by CSharpCodeProvider. Please advise. Thanks.

public void method(com.abc.test.ObjectA objectA) {
&.
}

Instead of

import com.abc.test;
&.
public void method(ObjectA objectA) {
&.
}
godman_pollyAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
godman_pollyConnect With a Mentor Author Commented:
increase to 300 pts. Plz help.
0
 
godman_pollyAuthor Commented:
increase the pts to 200
0
 
DarrenDCommented:
Hi,

Can you just add a parameter like this?

cmmWriteArray.Parameters.Add(new CodeParameterDeclarationExpression("com.abc.test.ObjectA", "MyClass"));

This will simply add the parameter to the method.

don't know if this is what you are looking for.

Cheers,

Darren

0
 
godman_pollyAuthor Commented:
But the class is generated from wsdl.
0
 
DarrenDCommented:
Can you post some code?

Darren
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.