Error on Content-Type for Inbound SOAP Message

Thiagofmeira
Kilo Guru

Hi everyone, 

I'm trying to make an integration and the customer is sending SOAP Messages to servicenow (It must be by SOAP Message). But when the customer send the message, he receives the error from SN:

</SOAP-ENV:Header>
  <SOAP-ENV:Body>
    <SOAP-ENV:Fault>
      <faultcode>SOAP-ENV:Server</faultcode>
      <faultstring>Invalid content type</faultstring>
      <detail>Error completing SOAP request</detail>
    </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 

When I test it using SOAP UI or another Instance, everything works fine, it doesn't work only for this customer.

They say the problem is on our instance, because the same integration following the same XML is working fine for some other customers. 

Does anybody could help us?

Thank you! 

1 ACCEPTED SOLUTION

Thiagofmeira
Kilo Guru

The problem was the property "glide.soap.require_content_type_xml" after deativate it, the system starts to accept the customer messages

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you are able to test the same SOAP body via SOAP UI or any other instance and if it works fine; then I don't think any issue in your instance.

Did you check what error they are getting?

error body/description or http status code?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

The error code is 500 and the description is "Invalid content type"

Hi,

are they setting correct content type while consuming the endpoint?

You can simply inform them that you are able to test it via external tool i.e. SOAP UI and hence there is something wrong at their application which is possibly causing this error

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thiagofmeira
Kilo Guru

The problem was the property "glide.soap.require_content_type_xml" after deativate it, the system starts to accept the customer messages