SOAP missing HEADER

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moneycome
    New Member
    • May 2010
    • 1

    SOAP missing HEADER

    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:
    Code:
    webservice.getData webData = new webservic.getData();
    
    webData.myObject webObj = new webData.myObject();
    webObj.myID = "ABC";
    webObj.myName = "John";
    
    X509Certificate cert = X509Certificate.CreateFromCertFile(@"C:\mycert\mycert.cer");
    
    webData.ClientCertificates.Add(webObj);
    strReturnData = webData.myRequest(myObject).ToString();
    I want the output like this:
    Code:
    <Envelope>
    
    <Header>
    <soap:Signature>
    ...
    </soap:Signature>
    </Header>
    
    <Body>
    ...
    </Body>
    <Envelope>
    Last edited by Niheel; May 31 '10, 02:49 AM. Reason: moved question to top, added code tags
Working...