How to add the soap header in the SOAP request?
I want to add the headers not through coding. I want to add it manually.
I can able to add the headers through SOAPUI. But i need to add in request.
I want to add it along with the existing SOAP header.
I have an XML which is generated from an application.
I need to transform it to SOAP request through transformation.
I have created a transformation by adding the SOAP tags as text.
Now i am experiencing the SOAP header issue which i need to add along with the request.
I cannot use any coding stuff here.
Hpoe this is much clear now. Please let me know if you need more details.
Transformation is a processing of converting XML to SOAP request. I am not familiar about the SOAP header format.
Please let me know the header format, so that i can add it in the transformation.
Still i am not getting any clear idea. Could someone please help me to add additional HTTP headers to SOAP message?
Tim Moores wrote:Sorry, it's not any clearer. You're asking about an XML/SOAP file that you have locally on your machine? What, exactly, do you mean by "transformation"? If you can add SOAP tags, why can't you add SOAP headers?
In one place you say SOAP header and in another HTTP headers - not the same. SOAP headers are part of the HTTP request body sent to the SOAP server. Which is it?
I am using SoapUI to sending the request. I don't want to use any java code here.
Sorry, It's Soap additional HTTP header. I need to add it along with the SOAP request.
Rajesh Balu wrote:It's Soap additional HTTP header.
As was mentioned before, SOAP headers are not HTTP headers. So which one is it?
For an example: i would like to add HTTP header like Content-Type HTTP header in SOAP request.
It is pretty straightforward, the java standard library has all you need to make a HTTPUrlConnection and send a request with the body being your SOAP message.
Actually i am in a scenario of not using any coding stuffs. So i need to add it without any coding stuffs.
I found that in about 2 seconds googling for "soapui http header"
Why are you bothering us when SOAPui has a documented way to do what you want? RTFM
Thanks for all your prompt response.
yes there is an option to add the custom HTTP headers in SoapUI. But i need to add the same in the request itself instead of adding it through some options.