473,396 Members | 2,059 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to change the names of types in the wdsl generated by

Hi

I have the following class:

namespace CSWWebServices
{
public class HistoryField<T>
{
private T m_name;
private string m_value = string.Empty;

public T Name
{
get { return m_name; }
set { m_name = value; }
}

public string Value
{
get { return m_value; }
set { m_value = value; }
}

public HistoryField()
{
}
};

/// <summary>
/// Summary description for ManagementInformationRequest
/// </summary>
public class ManagementInformationRequest
{
public enum Call
{
Unknown = 0,
NUMBER_MATCHES_TURRET,
CALLERS_NUMBER,
}

public enum Policy
{
Unknown = 0,
CUSTOMER_TYPE
}

private HistoryField<Call>[] m_callHistoryField = null;
private HistoryField<Policy>[] m_policyHistoryField = null;

public ManagementInformationRequest()
{
//
// TODO: Add constructor logic here
//
}

/// <summary>
///
/// </summary>
[XmlArray("CallHistoryFields")]
[XmlArrayItem("CallHistoryField")]
public HistoryField<Call>[] CallHistoryField
{
get
{
return m_callHistoryField;
}
set
{
m_callHistoryField = value;
}
}

/// <summary>
///
/// </summary>
[XmlArray("PolicyHistoryFields")]
[XmlArrayItem("PolicyHistoryField")]
public HistoryField<Policy>[] PolicyHistoryField
{
get
{
return m_policyHistoryField;
}
set
{
m_policyHistoryField = value;
}
}
}
}

The type name genereated for the public HistoryField<Policy>[]
PolicyHistoryField in the client app looks like this

namespace CSUI.ManagementInformationWebService
{
[Serializable]
[DesignerCategory("code")]
[XmlType(Namespace = "v1.services.csw.scotw.co.uk")]
[GeneratedCode("System.Xml", "2.0.50727.42")]
[DebuggerStepThrough]
public class HistoryFieldOfCall
{
public HistoryFieldOfCall();

public Call Name { get; set; }
public string Value { get; set; }
}
}

I want change the generated name from 'HistoryFieldOfCall' to
'CallHistoryField', can anyone tell me how on earth to do this?

Peter
Feb 20 '07 #1
2 1306

"Peter Rayment" <Pe**********@discussions.microsoft.comwrote in message
news:A3**********************************@microsof t.com...
Hi

I have the following class:

namespace CSWWebServices
{
public class HistoryField<T>
{
private T m_name;
private string m_value = string.Empty;

public T Name
{
get { return m_name; }
set { m_name = value; }
}
<snip />
}

I want change the generated name from 'HistoryFieldOfCall' to
'CallHistoryField', can anyone tell me how on earth to do this?

Peter
Ask your question in .dotnet.framework.webservices OR
..dotnet.languages.csharp

This is a Classic ASP group.
Feb 20 '07 #2
Anthony

Sorry about that, I have been tearing my brain out trying to solve this, and
have just found the answer. I will post in the correct group.

Peter

"Anthony Jones" wrote:
>
"Peter Rayment" <Pe**********@discussions.microsoft.comwrote in message
news:A3**********************************@microsof t.com...
Hi

I have the following class:

namespace CSWWebServices
{
public class HistoryField<T>
{
private T m_name;
private string m_value = string.Empty;

public T Name
{
get { return m_name; }
set { m_name = value; }
}

<snip />
}

I want change the generated name from 'HistoryFieldOfCall' to
'CallHistoryField', can anyone tell me how on earth to do this?

Peter

Ask your question in .dotnet.framework.webservices OR
..dotnet.languages.csharp

This is a Classic ASP group.
Feb 20 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Amir Eshterayeh | last post by:
Dear Friends I need to change the css file of my aspx files dynamically so users can choose their css file names and when page loads, it read css file name from database. I try to use...
1
by: Andrew Fabbro | last post by:
I think FAQ 2.15 ("How can I access structure fields by name at run time?") answers my question, but I don't like the answer ;) I have a struct like this: struct config_struct { char...
46
by: James Harris | last post by:
Before I embark on a new long-term project I'd appreciate your advice on how to split up long names. I would like to keep the standards for command names the same as that for variable names....
3
by: Andrew Dodgshun | last post by:
I have 2 grids - one shows a list of table names in a database and when you click on a table name the other grid dynamically populates the grid with the table contents. My problem is that I cannot...
5
by: MR | last post by:
I apologize in advance for re-asking a question that I posed before. I understand a little more than i did before and I am posing 2 specific questions: I need to write an application that sends...
5
by: CharlesG | last post by:
Hi all, Can you let me know if there is a standard naming convention for webservice methods ? I have seen some with a lower case first letter and some with an upper case first letter. Also what...
2
by: John Sitka | last post by:
Hi, I'm building a simple "look up" web method that would return a table with 9 columns and a dynamic number of rows, then I find out datatables cannot be serialized. Not a big deal the .Net...
1
by: Paul van Brouwershaven | last post by:
Hi All, I'm struggling with the WDSL restrictions in PHP/SOAP for a while know. I would like to create some simple restrictions in my WDSL file. The script are running both on the same server...
0
by: Rene | last post by:
I have a class generated of a WSDL file. Now i am trying to use the class, but getting error "System.NullReferenceException was unhandled" How mus a declare the type out of the WSDL ? Here...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.