I have been slowly trying to replicate a SOAP request with Postman that is failing in a Java app. But my lastest version simply hangs when submitting the request. The console says “No logs yet. Send a request to view its details in the console”.
The SOAP API requires a client certificate. I had many problems getting that configured in Postman, but I think the last error finally went away. Then I was missing an “action” part of the Content-Type header. I added that and also an “Accept” header, and after that Postman just hangs when trying to submit.
I got the values I’m using for the header fields by by logging the request generated by my Java app. The Java app uses a “Service” framework that obscures a lot of the building of the request. I use wsimport.exe and a supplied wsdl file to generate the Java objects that do the work in the app. The Java objects don’t reveal much – they use annotations which I assume are processed by some super class. But at least I was able to log the http request as an example for reconstructing with Postman.
Here is the http “code” generated by Postman which hangs when trying to send it. The actual endpoint I send it to is “https://eldws.fmcsa.dot.gov/ELDSubmissionService.svc”. Any ideas why it hangs are greatly appreciated.
POST /ELDSubmissionService.svc HTTP/1.1
Accept: application/soap+xml, multipart/related, text/html, image/gif, image/jpeg, *; q=.2, /; q=.2