Solved

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

Posted on 2009-07-09
5
493 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
Comment Utility
increase the pts to 200
0
 

Accepted Solution

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

Expert Comment

by:DarrenD
Comment Utility
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
Comment Utility
But the class is generated from wsdl.
0
 
LVL 18

Expert Comment

by:DarrenD
Comment Utility
Can you post some code?

Darren
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
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…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now