Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is possible to add a SOAP header?

See original GitHub issue

I would like to expose a call like these from my core api

<binding name="SMSDeliveryNotificationPortBinding" type="tns:SMSDeliveryNotification"> <soap:binding transport="" style="document"/> <operation name="notifySMSDelivery"> <soap:operation soapAction=""/> <input> <soap:body use="literal" parts="parameters"/> <soap:header message="tns:notifySMSDelivery" part="gdspHeader" use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding>

is possible to add the header? I used a custom messageInspector but the svc doesn’t expose the header to me (only body)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

sandhyachintacommented, Oct 1, 2018

I am looking for similar requirement. I wrote a custom MessageInspector which deserialize the soap header and return the Auth object I am looking for. But the Authentication happens at Service Operation level and I couldn’t find a way to pass the Auth object received from MessageInspector to the operation. Is there a way we could add Header to each Operation like [SoapHeader(“Authentication”, Required = true)] [OperationContract] which would also reflect in wsdl generation?

github-actions[bot]commented, Aug 11, 2021

This issue was closed because it has been inactive for 14 days since being marked as stale.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to add header to SOAP request? - java
I personally add two classes: HeaderHandler and HeaderHandlerResolver: import java.util.HashSet; import java.util.
Read more >
Adding Custom Headers to SOAP Requests
To access SOAP requests to be sent to your tested web service and to add custom SOAP Headers to a request, use the...
Read more >
2.2. Adding SOAP Headers to a SOAP 1.1 Binding
SOAP headers are defined by adding soap:header elements to your default SOAP 1.1 binding. The soap:header element is an optional child of the...
Read more >
3 Ways to Add Custom Header in Spring SOAP Request
This article is about adding custom headers in Spring SOAP request using JAXB marshaller, TranformerFactory and WebServiceMessageCallback.
Read more >
Add SOAP header - OutSystems 11 Documentation
Create the message inspector class that will add the SOAP header element to all requests of the SOAP web service, adding code to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found