-->

What content type should be in http header of soap

2019-06-27 12:51发布

问题:

I have a problem where my xml-da client that is using zsi 2.2.2 library generating messages that look like soap 1.2 messages because I can see this line.

xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"

But I also can see text/xml as a content type in header. I can't find any notion of what header should be like in soap 1.2, but I suppose that it should be application/soap-xml.

So what it actually should be?

回答1:

Content-Type: application/soap+xml