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
2
votes
2 answers
How to get Soap Header at server side with Spring WS Client
I am new to Web Service development. I am developing a web service using Spring WS. I need to add soap header in request so below is my code to add header in request at client side.
getWebServiceTemplate()
…

Kevin Shah
- 43
- 1
- 5
2
votes
1 answer
soapheader authenticate using php
Possible Duplicate:
PHP SoapClient and a complex header
I have this header structure:
…

ktalinu
- 55
- 1
- 1
- 8
2
votes
2 answers
SOAP Header Authentication not working?
Im using a SOAP Header and I need to Authenticate it from the Database. So, I tried creating one Class and have one method on which, when we pass username and password it will return whether its there in the DB or not.
----- My Main Class…

smilu
- 859
- 7
- 30
- 53
2
votes
3 answers
PHP SOAP Header does not match HTTP SOAP Action, how to set it?
I've tried everything! I'm using this WSDL and am simply just trying to authenticate. I keep getting this error:
The SOAP action specified on the message, '', does not match the HTTP
SOAP Action,…

shinercoder
- 31
- 1
- 1
- 4
2
votes
1 answer
Add custom header in WCF?
I have the following examplecode in Java:
PushServiceService c = new PushServiceService();
service = c.getPushServicePort();
BindingProvider ccBindingProvider = (BindingProvider) service;
Map ccRequestContext =…

Frode Lillerud
- 7,324
- 17
- 58
- 69
1
vote
1 answer
Adding custom header to generated SOAP proxy
I have generated a proxy class from a wsdl file (C# VS 2008)
The webservice expects an element within the soap header.
When I try to add this element using proxy.RequestSoapContext.Envelope.Header I receive a null error. The envelope is null.
How…

user1180360
- 33
- 1
- 4
1
vote
2 answers
SoapHeader class and DataContractAttribute
I have an error:
Type 'MyAppApp.Web.MyAppWebService.NotifierAuthHeader' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'System.Web.Services.Protocols.SoapHeader' with…

user278618
- 19,306
- 42
- 126
- 196
1
vote
0 answers
In WP7 Application Accessing a WCF SoapHeader when IncomingMessageHeaders is null
In an Windows Phone 7.5 application, In a call to a wcf service I used the MessageIncomingHeaders property [code just below] to retrieve Message Soap Headers with my OperationContext, but the IncomingMessageHeaders is null.
The service response is…

user995398
- 21
- 2
1
vote
1 answer
SOAP header Security was not understood
I'm using a asp.net 3.5 C# as a webservice consumer and I'm trying to consume a third party java webservice and I have already attached the soap header security on my request. There is no problem on my request but the response part I'm getting "SOAP…

tthreetorch
- 426
- 6
- 9
1
vote
0 answers
Consuming SOAP Services ASP.NET
I am working on an ASP.NET 3.5 C# Web Application in which I have to consume 3rd party web services. Their documentation says the following information needs to be passed in the SOAP header:
wsse: SecurityTokenReference: Value is the public key of…

Kumar
- 2,863
- 11
- 45
- 60
1
vote
0 answers
What is the best way to send usernametoken in header in soap request?
public async Task GetUserInfoAsync(){
TestClient client = new TestClient();
client.Endpoint.EndpointBehaviors.Add(new WsSecurityEndpointBehavior("test", "12345"));
client.GetUserInfo(new GetUserInfoRequest{
…

codinges
- 61
- 6
1
vote
0 answers
JAVA-11 - security info in SOAP header request does not pass to webservice
Following code works perfectly fine when compiled with JAVA-8 but does not work when compiled in JAVA-11.
My project is a gradle build project. Inside this project I call a web service passing authentication details in the SOAP header.
When I trace…

saar
- 13
- 1
- 1
- 4
1
vote
0 answers
add SoapHeader after SetClass in SoapServer in PHP
i have a class that set in $obj->setClass() to handle requests in SoapServer .
but now i need to set some soapHeader inside that class.
How i can set SoapHeader inside that class or access the SoapServer Object ?
server.php
$svr = new…

mohsen shahbazi
- 13
- 4
1
vote
3 answers
How to secure a web service in c# 2.0 and make it easy for any platform to consume
How to secure a web service and make it easy for any platform to consume.
Setup: Asp.NET 2.0, Dot Net 2.0, c# 2.0, Visual Studio 2005. Web server is IIS and uses https (SSL)
I would like to avoid installing anything like WSE 3.0. I prefer a…

dvv
- 11
- 2
1
vote
0 answers
PHP. Set namespace to all elements SOAP headers
I think my question is fairly simple but can't really find the answer.
I'm set headers:
$logIn = new LogIn();
$logIn->setEmail('email@email.com');
$logIn->setPassword('123456');
$header = new \SoapHeader('NAMESPACE', "logIn", $logIn,…

Roman
- 39
- 4