400 Bad request using postman for soap service

Hi I want to test a web service ( SOAP requests) using postman but I get a 400 Bad Request error.
When I try to test this same web service with Soapui i am getting a valid response with HTTP/1.1 200 OK.
I am behind a proxy which is well configured.
Here is what I am sending Headers:

POST http://XXXXX:XX/XXXX/XXXX?wsdl
Content-Type: text/xml
SOAPAction: “http://XXXXX:XX/XXXX/XXXX#XXXX”
User-Agent: PostmanRuntime/7.26.8
Postman-Token: XXXX-XXX-XXXX-XXXX-XXXX
Proxy-Authorization: Basic XXXX
i use the same Body that works well with SOAPUI



Any help will be appreciated.

@zakihk Welcome to the Community :bouquet:

Basically the 400 Bad Request response code is returned when there’s some syntax issue while passing the body.

Can you please check if the body is sent properly, with all the attribute names and tags closed?

Hi @bpricilla Thank you very much for your answer,i checked the request body also I compared with the Body who was sent in SOAPUI the result is that no problem to report regarding encoding or something else

@zakihk
faced the same issue and figured the solution.
Add “Content-Length” and “Host” to the header.
Post that, It worked for me.

As per screenshot, you are using ?wsdl at the end of endpoint. If we append ?wsdl to the url it becomes the url of the wsdl not actual soap webservice.

Can you please try to use end point without ?wsdl

Hi is the issue resolved I am facing the same issue now