Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-07-09
5
Medium Priority
?
508 Views
Last Modified: 2013-12-17
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) {
&.
}
0
Comment
Question by:godman_polly
  • 3
  • 2
5 Comments
 

Author Comment

by:godman_polly
ID: 24828983
increase the pts to 200
0
 

Accepted Solution

by:
godman_polly earned 0 total points
ID: 24836665
increase to 300 pts. Plz help.
0
 
LVL 18

Expert Comment

by:DarrenD
ID: 24838650
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
 

Author Comment

by:godman_polly
ID: 24838690
But the class is generated from wsdl.
0
 
LVL 18

Expert Comment

by:DarrenD
ID: 24839173
Can you post some code?

Darren
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Online collaboration is quickly becoming embedded in the workplace, and its benefits are tangible. See what the current landscape looks like and what the future holds for collaboration tools and the future of work.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Integration Management Part 2
Suggested Courses

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question