Click here to Skip to main content
16,004,991 members
Home / Discussions / C#
   

C#

 
AnswerRe: Recognising barcode? Pin
Gary Thom6-Apr-06 4:07
Gary Thom6-Apr-06 4:07 
GeneralRe: Recognising barcode? Pin
Vertyg06-Apr-06 9:52
Vertyg06-Apr-06 9:52 
Questionoverriding an @ to force control chars to be interpreted Pin
Dan Neely5-Apr-06 8:37
Dan Neely5-Apr-06 8:37 
AnswerRe: overriding an @ to force control chars to be interpreted Pin
Guffa5-Apr-06 9:21
Guffa5-Apr-06 9:21 
Questionxpath not working with an xmlns attribute Pin
Hari 20095-Apr-06 6:54
Hari 20095-Apr-06 6:54 
AnswerRe: xpath not working with an xmlns attribute Pin
Guffa5-Apr-06 8:02
Guffa5-Apr-06 8:02 
GeneralRe: xpath not working with an xmlns attribute Pin
Hari 20095-Apr-06 8:43
Hari 20095-Apr-06 8:43 
QuestionSoapHeaders??? Pin
bakerfishsticks5-Apr-06 6:05
bakerfishsticks5-Apr-06 6:05 
I have no problems sending a soap header in my call but how do i read the soap
header response. This is using the proxy generated class I modified it to send
the header info.

Heres an excerpt of what i have:
<br />
private SessionInfo objHeader = null;<br />
<br />
[System.Web.Services.Protocols.SoapHeader "sessionObject",Direction=SoapHeaderDirection.Out)]<br />
[System.Web.Services.Protocols.SoapRpcMethodAttribute("execute", RequestNamespace=_RequestNS, ResponseNamespace=_RequestNS)]<br />
[return: System.Xml.Serialization.SoapElementAttribute("result")]<br />
public string execute(string sql) <br />
{	<br />
  object[] results = this.Invoke("execute", new object[] {sql});<br />
  return ((string)(results[0]));<br />
}<br />


The sessionObject is a property that set's the private objHeader. How in the world
do i read the header coming back from the soap callConfused | :confused:

This is what the header object looks like:
<br />
	[XmlRoot("SessionInfo")]<br />
	public class SessionInfo : SoapHeader<br />
	{<br />
		<br />
			/// <remarks/><br />
			[XmlAttribute("xmlns")]<br />
			public string xmlns=@"http://www.aspconverters.com/SessionInfoHeader";<br />
			<br />
			/// <summary><br />
			/// user id from succesful login<br />
			/// </summary><br />
			[XmlElement(ElementName="SESSION_USER")]<br />
			public string SESSION_USER = "";<br />
			<br />
			/// <summary><br />
			/// session id from succesful login<br />
			/// </summary><br />
			[XmlElement(ElementName="SESSION_ID")]<br />
			public string SESSION_ID = "";<br />
			<br />
			[XmlElement(ElementName="SESSION_SIGNATURE")]<br />
			public string SESSION_SIGNATURE = "";<br />
			<br />
			[XmlElement(ElementName="messageID")]<br />
			public string messageID = "";<br />
<br />
			[XmlElement(ElementName="id")]<br />
			public string id = "";<br />
	}<br />

QuestionClearing event handlers Pin
vineas5-Apr-06 5:44
vineas5-Apr-06 5:44 
AnswerRe: Clearing event handlers Pin
Ed.Poore5-Apr-06 7:46
Ed.Poore5-Apr-06 7:46 
GeneralRe: Clearing event handlers Pin
vineas5-Apr-06 9:30
vineas5-Apr-06 9:30 
GeneralRe: Clearing event handlers Pin
Ed.Poore5-Apr-06 9:52
Ed.Poore5-Apr-06 9:52 
QuestionMDI Parent form with toolbars and menus Pin
snickel655-Apr-06 5:30
snickel655-Apr-06 5:30 
QuestionDoubleClick and MouseDown conflict Pin
cbeasle15-Apr-06 5:02
cbeasle15-Apr-06 5:02 
AnswerRe: DoubleClick and MouseDown conflict Pin
Judah Gabriel Himango5-Apr-06 5:07
sponsorJudah Gabriel Himango5-Apr-06 5:07 
GeneralRe: DoubleClick and MouseDown conflict Pin
cbeasle15-Apr-06 9:40
cbeasle15-Apr-06 9:40 
GeneralRe: DoubleClick and MouseDown conflict Pin
Judah Gabriel Himango5-Apr-06 12:12
sponsorJudah Gabriel Himango5-Apr-06 12:12 
GeneralRe: DoubleClick and MouseDown conflict Pin
h_sarandy8-Oct-10 20:46
h_sarandy8-Oct-10 20:46 
QuestionBrowsing to a location and selecting a file Pin
naglbitur5-Apr-06 4:31
naglbitur5-Apr-06 4:31 
AnswerRe: Browsing to a location and selecting a file Pin
V.5-Apr-06 4:37
professionalV.5-Apr-06 4:37 
AnswerRe: Browsing to a location and selecting a file Pin
J4amieC5-Apr-06 4:41
J4amieC5-Apr-06 4:41 
QuestionBrowsing to a location and selecting a file Pin
naglbitur5-Apr-06 4:30
naglbitur5-Apr-06 4:30 
AnswerRe: Browsing to a location and selecting a file Pin
Antony M Kancidrowski5-Apr-06 4:42
Antony M Kancidrowski5-Apr-06 4:42 
QuestionImport/Export registry section as xml file using C# code.. Pin
visala5-Apr-06 0:46
visala5-Apr-06 0:46 
QuestionWebservices & C# Pin
hung_ngole5-Apr-06 0:37
hung_ngole5-Apr-06 0:37 

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.