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
1
vote
3 answers

Difference between two soap requests

My SOAP Request
Bora
  • 10,529
  • 5
  • 43
  • 73
1
vote
1 answer

gSOAP: How to send encrypted SOAP header

I want to send some info, like user credentials in the SOAP header from my gSOAP client to my WCF webservice. I wish I could send them in encrypted form. I am using GPRS to commuicate. As GPRS bandwidth is low, I don't want to use HTTPS. So I want…
Kangkan
  • 15,267
  • 10
  • 70
  • 113
1
vote
1 answer

Add Soap Headers to XDocument

I am creating an XDocument with the following structure: Dim xDocHandle As XDocument = New XDocument( New XDeclaration("1.0", Nothing, Nothing), …
HelpASisterOut
  • 3,085
  • 16
  • 45
  • 89
1
vote
0 answers

Create instance of JAXBRIContext

I want send SOAP headers using WSBindingProvider. I saw an example where it's used a JAXBRIContext to create headers but I don't understand how get an instance of this class. This is the example: ... HelloService helloService = new…
Mauro
  • 11
  • 2
1
vote
0 answers

How to add explicit header to each operation in Axis2?

In Axis2 webservice, genearted wsdl should contain custom soap:header tag bind with each operation. Is there any way to do this? For eg:
1
vote
0 answers

Adding the namespace for SOAP message body

i want to add the name space for all the items in the SOAPbody, the configuration related to the XML manipulation is in below i added the name space for the header but it doesn't come to the SOAP-body Boolean outboundProperty = (Boolean)…
user2567005
  • 271
  • 1
  • 13
  • 27
1
vote
0 answers

Adding elements in SOAP Header request w/o prefix

Below is how my SOAP header looks like. I was trying to add elements in the SOAP header and it throws me this error: Exception in thread "main" com.sun.xml.internal.messaging.saaj.SOAPExceptionImpl: HeaderElements must be namespace…
stdio.h
  • 126
  • 3
  • 15
1
vote
0 answers

Where to find http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics?

On our web-service we receive several requests with elements from the http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics namespace in the SOAP header. Instead of just ignoring these elemtns, we would like to validate them instead.…
1
vote
1 answer

How to add attribute onto a SoapHeader node using php Soap library

How to add attributes onto a node in Soap header using php's Soap library ? Tried all of the examples that are available (both here on StackOverflow, and php.net ( examples, comments, etc .. ). $a = ['_'=> 'bar', 'id' => 1, 'val' => 'foo']; $x = new…
1
vote
2 answers

org.apache.cxf.binding.soap.SoapHeader cannot be cast to org.apache.cxf.binding.soap.SoapHeader

I have one WebService installed on JBOSS EAP 6.2. Problem appears when i want to fetch SOAP headers. Code, where exception is raised: ArrayList hl = (ArrayList)…
Dawid Pura
  • 991
  • 9
  • 32
1
vote
3 answers

How can i create following soap header in WCF client

I'm trying to call a web service in asp.net 4.0. Vendor has sent me the following sample soap header. I need to know how can i create following header in WCF client asp.net 4.0. currently i'm using following code in app.config
user585014
  • 157
  • 5
  • 14
1
vote
1 answer

WCF - Soap header is referencing the namespace, in the security element, twice

this is a bit of a tedious question.. I have built a WCF to use WS-Security, which looks like this in my log:
Neil Hung
  • 343
  • 1
  • 3
  • 7
1
vote
1 answer

Adding header mediator in WSO2 sequence or proxy

I am trying to add a custom soap header to a sequence, but eclipse design view doesn't like it and won't let me save it. I would like to add the following code under "Header tag" ( using Header Mediator)
user2461078
  • 11
  • 1
  • 4
1
vote
0 answers

SOAPResponse does not retain soap headers

When I add soap headers from handler.handlResponse(), I can see the headers added in the handler but these headers do not make it to the client. Here is my handleResponse() method. public static final String WEB_SERVICE_NAMESPACE_PREIFX = "dm"; …
Sannu
  • 1,202
  • 4
  • 21
  • 32
1
vote
1 answer

Add custom header to web servies call and read it in web services methods

i want to know if it is possible to add some custom headers to each web services call and then access these custom header from web services methods: eg. soapclient.headers.add("test","valueoftest") and from web services: [WebMethod] public string…
sparrows81
  • 431
  • 3
  • 6
  • 19