Forum Discussion
You can manually add the Content-Type header and it will override the generated one. Go into the "Headers" tab for the request and add a new header. Name it "Content-Type" (without the quotes) and set the value to "text/xml; charset=utf-8" (again, no quotes). Good luck!
Regards,
Dain
eviware.com
- feckhar9 years agoOccasional Contributor
Thank you for this help, setting the header in the request. If the response is coming back in IBM037, how do I set this header?
- nmrao9 years agoChampion Level 3
Question does not seem to be clear. Can you elaborate what you mean?
- feckhar9 years agoOccasional Contributor
When I try to build a project in SoapUI and the input WSDL has this tag at the top –
“<?xml version="1.0" encoding="IBM037"?>” - it will not load.
So I tried removing the encoding or trying utf-8:
“<?xml version="1.0"?>” or “<?xml version="1.0" encoding="utf-8"?>”
The SoapUI project loads, the request is sent, but I get this error:
“Error getting response;javax.net.ssl.SSLException:Unrecognized SSL message,plaintext connection?” .
This makes sense, the end-point software is returning a response encoded IBM037 and I am expecting text.
I don't know how to load the WSDL.
- nmrao9 years agoChampion Level 3Looks, you opened another topic mentioning the same.
- bdupont8 years agoNew Contributor
Hello, quoting:
You can manually add the Content-Type header and it will override the generated one. Go into the "Headers" tab for the request and add a new header. Name it "Content-Type" (without the quotes) and set the value to "text/xml; charset=utf-8" (again, no quotes). Good luck!
-> That's fine for one test, but what if you want to do this for all your requests by default ?
I guess I can do that with groovy scripts, but is there an integrated way?
Related Content
- 3 years ago
- 8 years ago
- 5 years ago