Click here to Skip to main content
15,915,093 members
Home / Discussions / C#
   

C#

 
QuestionWebService - WSDL choice element Pin
marosprog22-Oct-12 20:27
marosprog22-Oct-12 20:27 
Hi,
how set request value for WSDL choice element - see example:


ws_test.AType my_ws = new AType();

my_ws.AData = new ADataType();
my_ws.AData.Item ??


namespace ws_test
{
[Serializable]
[DebuggerStepThrough]
[XmlType(AnonymousType = true, Namespace = "urn:cz:aaa:bbb:schemasSleepy | :zzz: v1")]
[GeneratedCode("System.Xml", "4.0.30319.1")]
[DesignerCategory("code")]
public class ATypeReq
{
public ATypeReq();

public ADataType AData { get; set; }
}

[Serializable]
[DesignerCategory("code")]
[GeneratedCode("System.Xml", "4.0.30319.1")]
[DebuggerStepThrough]
[XmlType(Namespace = "urn:cz:aaa:bbb:schemas:xxx:v2")]
public class ADataType
{
public ADataType();

[XmlElement("AElement", typeof(ADataTypeAA))]
[XmlElement("BElement", typeof(ADataTypeBB))]
public AStavAbstractType Item { get; set; }
}
}


<xs:complextype name="ADataType">
<xs:annotation>
<xs:documentation xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="cs">


<xs:choice>
<xs:element name="AElement">
<xs:complextype>
<xs:complexcontent mixed="false">
<xs:extension base="edi:AStavAbstractType">
<xs:sequence>
<xs:element minoccurs="0" name="AA" type="edi:AAStavType">





<xs:element name="BElement">
<xs:complextype>
<xs:complexcontent mixed="false">
<xs:extension base="edi:AStavAbstractType">
<xs:sequence>
<xs:element name="BB" type="edi:BBStavType">








Thanks,
Marián
QuestionMigrating Screwturn Wiki content to Sharepoint wiki Pin
chuckdawit22-Oct-12 9:21
chuckdawit22-Oct-12 9:21 
QuestionNeed assistance with Excel and datagrid Pin
yoni.kess22-Oct-12 1:35
yoni.kess22-Oct-12 1:35 
AnswerRe: Need assistance with Excel and datagrid Pin
Richard MacCutchan22-Oct-12 3:27
mveRichard MacCutchan22-Oct-12 3:27 
GeneralRe: Need assistance with Excel and datagrid Pin
yoni.kess22-Oct-12 6:47
yoni.kess22-Oct-12 6:47 
GeneralRe: Need assistance with Excel and datagrid Pin
Richard MacCutchan22-Oct-12 7:31
mveRichard MacCutchan22-Oct-12 7:31 
GeneralRe: Need assistance with Excel and datagrid Pin
yoni.kess23-Oct-12 0:02
yoni.kess23-Oct-12 0:02 
GeneralRe: Need assistance with Excel and datagrid Pin
Richard MacCutchan23-Oct-12 0:18
mveRichard MacCutchan23-Oct-12 0:18 
QuestionlistBox Item Removal Pin
electriac22-Oct-12 0:42
electriac22-Oct-12 0:42 
AnswerRe: listBox Item Removal Pin
electriac22-Oct-12 1:07
electriac22-Oct-12 1:07 
GeneralRe: listBox Item Removal Pin
V.22-Oct-12 1:27
professionalV.22-Oct-12 1:27 
AnswerRe: listBox Item Removal Pin
BobJanova22-Oct-12 4:22
BobJanova22-Oct-12 4:22 
GeneralRe: listBox Item Removal Pin
electriac22-Oct-12 5:48
electriac22-Oct-12 5:48 
GeneralRe: listBox Item Removal Pin
DaveyM6922-Oct-12 11:41
professionalDaveyM6922-Oct-12 11:41 
GeneralRe: listBox Item Removal Pin
electriac23-Oct-12 10:22
electriac23-Oct-12 10:22 
GeneralRe: listBox Item Removal Pin
DaveyM6923-Oct-12 22:36
professionalDaveyM6923-Oct-12 22:36 
GeneralRe: listBox Item Removal Pin
BobJanova24-Oct-12 6:27
BobJanova24-Oct-12 6:27 
GeneralRe: listBox Item Removal Pin
DaveyM6924-Oct-12 21:30
professionalDaveyM6924-Oct-12 21:30 
GeneralRe: listBox Item Removal Pin
electriac24-Oct-12 12:35
electriac24-Oct-12 12:35 
AnswerRe: listBox Item Removal Pin
Braj_1223-Oct-12 2:36
Braj_1223-Oct-12 2:36 
GeneralRe: listBox Item Removal Pin
electriac23-Oct-12 10:24
electriac23-Oct-12 10:24 
Questionconstructor call Pin
anshumansingh7121-Oct-12 20:24
anshumansingh7121-Oct-12 20:24 
AnswerRe: constructor call PinPopular
J4amieC21-Oct-12 21:32
J4amieC21-Oct-12 21:32 
QuestionHow to Send & Receive data using USB port in C# Pin
willington.d21-Oct-12 19:35
willington.d21-Oct-12 19:35 
AnswerRe: How to Send & Receive data using USB port in C# Pin
Richard MacCutchan21-Oct-12 22:00
mveRichard MacCutchan21-Oct-12 22:00 

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.