Click here to Skip to main content
15,894,630 members
Home / Discussions / C#
   

C#

 
QuestionError in loading excel file in windows 7 ... Pin
nassimnastaran16-Apr-12 5:34
nassimnastaran16-Apr-12 5:34 
AnswerRe: Error in loading excel file in windows 7 ... Pin
Pete O'Hanlon16-Apr-12 5:41
mvePete O'Hanlon16-Apr-12 5:41 
GeneralRe: Error in loading excel file in windows 7 ... Pin
nassimnastaran16-Apr-12 6:47
nassimnastaran16-Apr-12 6:47 
AnswerRe: Error in loading excel file in windows 7 ... Pin
Wes Aday16-Apr-12 7:01
professionalWes Aday16-Apr-12 7:01 
GeneralRe: Error in loading excel file in windows 7 ... Pin
nassimnastaran16-Apr-12 7:32
nassimnastaran16-Apr-12 7:32 
GeneralRe: Error in loading excel file in windows 7 ... Pin
Wes Aday16-Apr-12 9:02
professionalWes Aday16-Apr-12 9:02 
AnswerRe: Error in loading excel file in windows 7 ... Pin
Eddy Vluggen16-Apr-12 8:28
professionalEddy Vluggen16-Apr-12 8:28 
Questionsoap headers are not added Pin
anandsurya16-Apr-12 0:19
anandsurya16-Apr-12 0:19 
XML
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(Name = "TestService", ConformsTo = WsiProfiles.BasicProfile1_1)]
public class WebService : System.Web.Services.WebService {
// Add a member variable of the type deriving from SoapHeader.
public MyHeader timeStamp;

[WebMethod(Description = "A method that requires authentication")]
[SoapDocumentMethod(Binding = "TestService")]
[SoapHeaderAttribute("timeStamp", Direction = SoapHeaderDirection.InOut)]
public XmlNode GetXML()
{ XmlDocument doc = new XmlDocument();
doc.LoadXml("" + "" +"<title>Pride And Prejudice</title>" +"" + "");
return doc; }

=---client call ----
protected void Page_Load(object sender, EventArgs e)
{
localhost.MyHeader header = new localhost.MyHeader();
header.UserName = "test";
header.Password = "test";
localhost.WebService proxy = new localhost.WebService();
proxy.MyHeaderValue = header;
XmlDocument xmlDoc = new XmlDocument();
XmlNode elem = proxy.GetXML();
XmlNodeReader nodeReader = new XmlNodeReader(elem);
xmlDoc.InnerXml = elem.InnerXml;
string strXML = xmlDoc.InnerXml;
}
---output is---
<title>Pride And Prejudice</title>

----how to add soap header like----
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<MyHeader xmlns="http://tempuri.org/">
<UserName>string</UserName>
<Password>string</Password>
</MyHeader>
</soap:Header>

AnswerPlease ignore - cross posted. Pin
Pete O'Hanlon16-Apr-12 0:26
mvePete O'Hanlon16-Apr-12 0:26 
Question.net Framework Pin
Mandeep Sembhi15-Apr-12 23:04
Mandeep Sembhi15-Apr-12 23:04 
AnswerRe: .net Framework PinPopular
egenis15-Apr-12 23:13
egenis15-Apr-12 23:13 
AnswerRe: .net Framework Pin
VJ Reddy15-Apr-12 23:16
VJ Reddy15-Apr-12 23:16 
QuestionPlease I need help on this because it's not filling the form Pin
relicon15-Apr-12 15:39
relicon15-Apr-12 15:39 
AnswerRe: Please I need help on this because it's not filling the form Pin
relicon15-Apr-12 15:40
relicon15-Apr-12 15:40 
GeneralRe: Please I need help on this because it's not filling the form Pin
BobJanova15-Apr-12 23:35
BobJanova15-Apr-12 23:35 
GeneralRe: Please I need help on this because it's not filling the form Pin
Member 281270416-Apr-12 0:24
professionalMember 281270416-Apr-12 0:24 
GeneralRe: Please I need help on this because it's not filling the form Pin
Pete O'Hanlon16-Apr-12 0:39
mvePete O'Hanlon16-Apr-12 0:39 
QuestionCRC-ITU calculation in c# Pin
Hilman Anshori15-Apr-12 14:25
Hilman Anshori15-Apr-12 14:25 
AnswerRe: CRC-ITU calculation in c# Pin
Wes Aday15-Apr-12 16:54
professionalWes Aday15-Apr-12 16:54 
AnswerRe: CRC-ITU calculation in c# Pin
BobJanova15-Apr-12 23:42
BobJanova15-Apr-12 23:42 
QuestionDispose groupbox Pin
Ronny Portier15-Apr-12 3:06
Ronny Portier15-Apr-12 3:06 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 3:15
sitebuilderLuc Pattyn15-Apr-12 3:15 
GeneralRe: Dispose groupbox Pin
Ronny Portier15-Apr-12 5:21
Ronny Portier15-Apr-12 5:21 
AnswerRe: Dispose groupbox Pin
Luc Pattyn15-Apr-12 5:44
sitebuilderLuc Pattyn15-Apr-12 5:44 
GeneralRe: Dispose groupbox Pin
phil.o15-Apr-12 5:32
professionalphil.o15-Apr-12 5:32 

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.