Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-07-09
5
Medium Priority
?
507 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
[X]
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
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

DFW AZURE MEETUP TONIGHT FRI 6PM

We will be discussing what Azure Stack is, how does it fit into the suit of offerings that Azure has currently, and where can it fit into your organizations technology stack. We will also be discussing limitations of the platform while covering various applicable scenarios.

Question has a verified solution.

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

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

715 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