Optional SOAP element that represents a header that contains application-specific information (like authentication, payment, etc) about the SOAP message.
Questions tagged [soapheader]
232 questions
33
votes
1 answer
SOAP headers versus HTTP headers
I am working on a program using web services and for that I need to wrap some data as headers for the message.
I want to ask if it is equivalent to place this data as SOAP headers or as HTTP headers?

rogue lad
- 2,413
- 2
- 29
- 32
17
votes
3 answers
Adding SOAP implicit headers to WSDL
My question is similar to this. How To Pass Soap Header When WSDL Doesn't Define It? But is different.
For a web service I use, all methods need authentication which is sent in cleartext inside a SOAP header. However, my WSDL doesn't include any…

LVS
- 555
- 3
- 9
- 22
16
votes
2 answers
PHP Namespaces in SoapHeader Child Nodes
PHP SoapClient Headers. I'm having a problem getting the namespaces in child nodes. Here's the code I'm using:
$security = new stdClass;
$security->UsernameToken->Password = 'MyPassword';
$security->UsernameToken->Username = 'MyUsername';
$header[]…

David
- 391
- 2
- 8
15
votes
3 answers
How to add soap header in java
i have a NO-.net webservice from oracle
To access i need to add the soap header. How can i add the soap header in java?
Authenticator.setDefault(new ProxyAuthenticator("username", "password"));
System.getProperties().put("proxySet",…

Luis
- 2,665
- 8
- 44
- 70
15
votes
4 answers
How to add SOAP Headers to Spring Jax-WS Client?
How can I add SOAP Headers to Spring Jax-WS Client?
Specifically, I have a Jaxb object I would like to add to the header but xml examples would be appreciated.
I am using Spring's JaxWsPortProxyFactoryBean described here. Also, I am generating my…

Brandon
- 6,832
- 11
- 38
- 50
15
votes
1 answer
How to pass SOAP headers into python SUDS that are not defined in WSDL file
I have a camera on my network which I am trying to connect to with suds but suds doesn't send all the information needed. I need to put extra soap headers not defined in the WSDL file so the camera can understand the message. All the headers are…

chrisg
- 40,337
- 38
- 86
- 107
10
votes
1 answer
Soap Header (Unexpected EOF in prolog)
I have to add Soap header into web-service responce.
I tried to do in couple of ways, first of them:
public SendFileToAlfaOutParms sendFileToAlfa(SendFileToAlfaInParms inParms)
throws MsgWSException {
logger.trace(LogMarkers.IN,…

heyDude
- 178
- 1
- 1
- 12
10
votes
1 answer
Adding custom SOAPHeader in C# for a web service call
I am trying to add a custom soap header information in c# before calling a web service. I am using SOAP Header class to get this done. I could do this partly but not completely the way I need it. Here is how I need the soap header to look…

user2810857
- 109
- 1
- 1
- 4
9
votes
1 answer
How can I add a Basic Auth Header to my SOAP?
I'm trying to send a Authentication header through to a WSDL service that does not have
the authentication requirement specified on the WSDL.
How can I add the Auth header to the call for the web service ?
Code I have been working with:
using…

Fernando André
- 1,213
- 3
- 19
- 32
9
votes
1 answer
How to remove empty header from SOAP message?
I am using Spring-WS for consuming Webservice which compains if SOAP envelop has empty header element. I figured out that default SOAPMessage implementation adds one.
How can I remove it?
Thanks in advance

zegoline
- 574
- 2
- 8
- 21
8
votes
2 answers
How to send WCF's ClientCredentials using Delphi XE
I've developd a WCF Service with a custom UserNamePasswordValidator with a basicHttpBinding using HTTPS. It works great with a .Net client, using ClientCredentials to send the username and password for authentication.
However, I need to call this…

Pascal
- 2,944
- 7
- 49
- 78
8
votes
0 answers
Zeep ValueError: Invalid value given to _soapheaders
I am trying to do a SOAP call through Zeep. The WSDL does not contain the header definitions but the SOAP server expects the following header:

Shubho Ganguly
- 91
- 2
8
votes
1 answer
WebService Headers Authentication
Exactly now, I got my webservice authentication, but i've done this calling a method inside WebMethod, like this:
[WebMethod]
[SoapHeader("LoginSoapHeader")]
public int findNumberByCPF(string cpf)
{
try
{
…

guisantogui
- 4,017
- 9
- 49
- 93
8
votes
4 answers
How to add soap header when making a soap request using the java objects generated by wsdl
I generated client java objects using JAX-WS RI. I am trying to make a SOAP request to a web service. Service requires authentication in the header which looks like below:

Venu Doddi
- 81
- 1
- 1
- 2
7
votes
2 answers
How to add SOAP headers to a SOAP request using JAX-WS?
We need to consume webservices developed by other team. Using JAX-WS for generating the webservices. We are using wsimport to generate the client side stubs.
The problem is that i need to pass the following info as a header along with the SOAP…

ikvenu2000
- 331
- 1
- 3
- 13