Is possible to add a SOAP header?
See original GitHub issueI would like to expose a call like these from my ASP.net core api
<binding name="SMSDeliveryNotificationPortBinding" type="tns:SMSDeliveryNotification"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" 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:
- Created 5 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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?
This issue was closed because it has been inactive for 14 days since being marked as stale.