Click here to Skip to main content
15,903,385 members
Home / Discussions / C#
   

C#

 
Generalcustom document control Pin
macjunky8-Jun-05 11:07
macjunky8-Jun-05 11:07 
General"refreshing" application configuration settings Pin
trevstar8-Jun-05 9:31
trevstar8-Jun-05 9:31 
GeneralRe: "refreshing" application configuration settings Pin
MoustafaS8-Jun-05 10:42
MoustafaS8-Jun-05 10:42 
GeneralRe: "refreshing" application configuration settings Pin
PrimeCoder14-Mar-07 7:28
PrimeCoder14-Mar-07 7:28 
Generalexe or development Pin
HuntTheShunt28-Jun-05 9:29
HuntTheShunt28-Jun-05 9:29 
GeneralRe: exe or development Pin
MoustafaS8-Jun-05 10:47
MoustafaS8-Jun-05 10:47 
GeneralRe: exe or development Pin
nemopeti8-Jun-05 12:22
nemopeti8-Jun-05 12:22 
Generaldeserializing XML in a webservice client Pin
albean888-Jun-05 7:20
albean888-Jun-05 7:20 
From my web service client I would like to change the default way some xml is being deserialized. WSDL.exe creates a client that deserializes this xml as an array.

The xml node in the message looks like this:

<IDs>
<id>xxx</id>
<id>yyy</id>
</IDs>

I would like to have the entire xml node returned as a string or preferably as an XmlNode object.

I understand I need to change the return type of the GetIDs call but I don’t know what I should change the attributes on the method to stop this from being converted into an array. Obviously I need to remove the XmlArrayAttribute but what do I replace it with???? There does not seem to be an "XmlNodeAttribute" to deserialize the xml ID node into an XmlNode object.

Thanks for any thoughts.


Here is the method that I do not know how to edit to get the desired results:

<br />
[System.Web.Services.Protocols . . . <br />
[return: System.Xml.Serialization.XmlArrayAttribute("IDs", IsNullable=true)]<br />
[return: System.Xml.Serialization.XmlArrayItemAttribute("id", IsNullable=false)]<br />
public string[] GetIDs() <br />
{<br />
 object[] results = this.Invoke("GetIDs", new object[0]);<br />
 return ((string[])(results[0]));<br />
}



This is an example of the raw soap message:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope>
<soap:Body>
<GetIDsResponse xmlns="http://www.tempuri.com">
<IDs>
<id>1111</id>
<id>2222</id>
<id>3333</id>
<id>4444</id>
<id>5555</id>
</IDs>
</GetIDsResponse>
</soap:Body>
</soap:Envelope>
GeneralContext Menu in TreeView control Pin
SerialHobbyist8-Jun-05 6:03
SerialHobbyist8-Jun-05 6:03 
GeneralRe: Context Menu in TreeView control Pin
Andy Moore8-Jun-05 10:48
Andy Moore8-Jun-05 10:48 
GeneralRe: Context Menu in TreeView control Pin
SerialHobbyist15-Jun-05 6:18
SerialHobbyist15-Jun-05 6:18 
QuestionIndent List View Item? Pin
Dominik Reichl8-Jun-05 4:56
Dominik Reichl8-Jun-05 4:56 
GeneralAlpha Transparence problems with Image Class Pin
Kir Birger8-Jun-05 3:57
Kir Birger8-Jun-05 3:57 
Generaltreeview checkbox Pin
Mohammad Daba'an8-Jun-05 3:18
Mohammad Daba'an8-Jun-05 3:18 
GeneralRe: treeview checkbox Pin
codeprojectin8-Jun-05 17:46
codeprojectin8-Jun-05 17:46 
Generalpropertygrid question Pin
jill_b8-Jun-05 3:15
sussjill_b8-Jun-05 3:15 
QuestionChange TabControl ItemSize dynamically? Pin
Member 17028208-Jun-05 1:31
Member 17028208-Jun-05 1:31 
AnswerRe: Change TabControl ItemSize dynamically? Pin
codeprojectin8-Jun-05 18:12
codeprojectin8-Jun-05 18:12 
GeneralDisplay data from text file to LISTVIEW Pin
ksanju10008-Jun-05 0:34
ksanju10008-Jun-05 0:34 
GeneralRe: Display data from text file to LISTVIEW Pin
Carsten Zeumer8-Jun-05 1:41
Carsten Zeumer8-Jun-05 1:41 
GeneralRe: Display data from text file to LISTVIEW Pin
ksanju10008-Jun-05 3:12
ksanju10008-Jun-05 3:12 
GeneralRe: Display data from text file to LISTVIEW Pin
Carsten Zeumer8-Jun-05 3:48
Carsten Zeumer8-Jun-05 3:48 
GeneralRe: Display data from text file to LISTVIEW Pin
ksanju10008-Jun-05 5:08
ksanju10008-Jun-05 5:08 
GeneralRe: Display data from text file to LISTVIEW Pin
Carsten Zeumer8-Jun-05 6:09
Carsten Zeumer8-Jun-05 6:09 
GeneralRe: Display data from text file to LISTVIEW Pin
ksanju10009-Jun-05 1:12
ksanju10009-Jun-05 1:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.