Questions tagged [soapheader]

Optional SOAP element that represents a header that contains application-specific information (like authentication, payment, etc) about the SOAP message.

232 questions
6
votes
4 answers

How to read SOAP Header information from request and add it to response in spring web services

I am working on spring web services. I need to add some custom elements in the request and response message.which should look like this: 123
Vishal Agrahari
  • 307
  • 2
  • 5
  • 13
6
votes
2 answers

How do I attach a SOAP Header to my C# client?

I have my web service set up to recieve a soap header of name "TestHeader" with param "Name" How do i create a soap header in my client AND send it to the service? So far I have created it in my client. public class TestHeader : SoapHeader { …
IAmGroot
  • 13,760
  • 18
  • 84
  • 154
6
votes
1 answer

PHP Soap Header help

I have a fairly simple php/soap header question. Here's what I need. Here's what I get... token123456789 using this…
Xavias
  • 170
  • 1
  • 1
  • 8
6
votes
1 answer

Adding SOAP Header to request

I have been trying to add a header to SOAP request as follows username password
Anupdas
  • 10,211
  • 2
  • 35
  • 60
6
votes
1 answer

Extracting a term from SOAP header

I would like to extract an element called ServiceGroupID from the SOAP header, which specifies the session of the transaction. I would need this so that I could direct the request to the same server using SOAP session. My XML is as follow:
Spaniard89
  • 2,359
  • 4
  • 34
  • 55
5
votes
3 answers

Adding User/Password to SOAPHeader for WebService client call with AXIS2

Please help: I am trying to call a WebService from SOAPUI and I notice that the service requires username and password which I am providing through the request parameters. I notice that raw XML contains user/password snippet added to SOAPHeader. The…
Shiv Gopal
  • 539
  • 2
  • 10
  • 21
5
votes
1 answer

Adding soap header authentication to wsdl2java generated code

I'm in the process of creating a Java web services client from a wsdl. I used Eclipses's Dynamic Web Project and new Web Services Client to generate the code with wsdl2java with Apache Axis 1.4. I need to add SOAP authentication to this code in…
5
votes
2 answers

Adding elements in SOAP Header request for authentication

I need to incorporate an authentication header (i.e. as a part of SOAP header request) in my new web service. That authentication header will verify the userId and password details. I have to verify the content of request header details for…
user182944
  • 7,897
  • 33
  • 108
  • 174
5
votes
1 answer

.NET client authentication and SOAP credential headers for a CXF web service

SCENARIO I have to access a web service with a .NET client. The service is an Apache CXF Web Service. Username and password authentication is required. I have created the proxy. I have set up the credential. MyServiceReference proxy = new…
Alberto De Caro
  • 5,147
  • 9
  • 47
  • 73
4
votes
0 answers

Programmatic WCF based access to SQL Server Reporting Services 2010 web services

Previously we have developed against the ReportServer/ReportService2005.asmx web service. To access these web services, the MSDN documentation suggests the old .NET 2.0 based web service reference technologies. But we specifically chose to use the…
Jaans
  • 4,598
  • 4
  • 39
  • 49
4
votes
1 answer

Add custom SOAP header in PowerShell using New-WebServiceProxy

In C# I can do the following: var header = MessageHeader.CreateHeader("MyHeader", "http://mynamespace", "Header value"); OperationContext.Current.OutgoingMessageHeaders.Add(header); That adds the following to the SOAP message:
dcstraw
  • 3,243
  • 3
  • 29
  • 38
4
votes
1 answer

How to get header elements name and value from SOAP header?

How can I get userID and password tag name and value from soap request Header. My request xml
haja
  • 135
  • 1
  • 4
  • 12
4
votes
2 answers

Spring-ws SoapHeader fields access in endpoint method

We are developing a contract-first WebService using spring-ws 2.2.0. We are trying to manage the authentication using a custom tag, named AuthToken, located in the SoapHeader. The AuthToken has the following structure:
Tongo
  • 93
  • 1
  • 8
4
votes
2 answers

SOAP Request Header is not well-formatted (Contains , and )

The header of my SOAP Request is displayed in a weird format. I need to have a header that looks like this:
maikelsabido
  • 1,253
  • 4
  • 18
  • 37
4
votes
0 answers

Delphi 2007 WSDL Import, setting SOAP header information

Importing WDSL in Delphi 2007 works fine, but generates a Cannot Unwrap warning (code snippet 1, below [like another question already logged on StackOverFlow]). However, it is how we set the headers (REQUESTOR:pIn, REQUEST_USER:pIn,…
Dan Pearce
1
2
3
15 16