Solved

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

Posted on 2009-07-09
5
502 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Get month and date in a format 4 44
Reactjs with .NET 3 70
VB.Net SQL Query 2 Tables Different Databases 3 43
how to check mis-spellings in a select SQL 2 37
In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…

685 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