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

Posted on 2009-07-09
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 in a wsdl. If it is possible to generate the web service proxy class as follows by CSharpCodeProvider. Please advise. Thanks.

public void method( objectA) {

Instead of

public void method(ObjectA objectA) {
Question by:godman_polly
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2

Author Comment

ID: 24828983
increase the pts to 200

Accepted Solution

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

Expert Comment

ID: 24838650

Can you just add a parameter like this?

cmmWriteArray.Parameters.Add(new CodeParameterDeclarationExpression("", "MyClass"));

This will simply add the parameter to the method.

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




Author Comment

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

Expert Comment

ID: 24839173
Can you post some code?


Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
API v SOA 8 63
How to get a Powershell script to launch from Visual Studio 20 101
CSS question 16 63
XML XDocument extract - Keeping a node list like a menu path 8 33
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
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…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

738 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