Change SOAP Header to add credentials

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vagueante
    New Member
    • Aug 2009
    • 10

    Change SOAP Header to add credentials

    Hi,

    In a windows app, i have the function and parameter to send to a webservice.
    I have a SOAP sample, where i see in the soap header three tags, one with the credentials link, another two with user and password.

    I have to put a similar header to my soap, the question is, how can i do it ?

    Code:
    Dim objWebs As New ServiceReference1.CWSDraftClaimDataEntryPortTypeClient
    Dim answer As ServiceReference1.draftClaimDataEntryReply
    Dim data_ToSend As New ServiceReference1.draftClaimDataEntry
    ' I put the data in data_ToSend
    answer = objWebs.DraftClaimDataEntry(data_ToSend)
    What do i need to do, to add the credentials to these?

    Is a windows application but don't know if would be best to ask in asp.Net section
Working...