By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,268 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,268 IT Pros & Developers. It's quick & easy.

SOAP missing HEADER

P: 1
I could not generate the HEADER in the SOAP. Any solution?

Here is the way I call the web service in .net 3.5 and bind with Cert:
Expand|Select|Wrap|Line Numbers
  1. webservice.getData webData = new webservic.getData();
  2.  
  3. webData.myObject webObj = new webData.myObject();
  4. webObj.myID = "ABC";
  5. webObj.myName = "John";
  6.  
  7. X509Certificate cert = X509Certificate.CreateFromCertFile(@"C:\mycert\mycert.cer");
  8.  
  9. webData.ClientCertificates.Add(webObj);
  10. strReturnData = webData.myRequest(myObject).ToString();
  11.  
I want the output like this:
Expand|Select|Wrap|Line Numbers
  1. <Envelope>
  2.  
  3. <Header>
  4. <soap:Signature>
  5. ...
  6. </soap:Signature>
  7. </Header>
  8.  
  9. <Body>
  10. ...
  11. </Body>
  12. <Envelope>
May 31 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.