Content type error in a WS Consumer

Error:

TestRequest_ProcessFlow is triggered as a WS Provider. The request is mapped and submitted to Test_DMS_WSConsumer where it fails with the below error:

Error in execution for activity WsMessageCall:Test_DMS_WSConsumer:172020200100134157815840200027 [The server sent HTTP status code 415: Cannot process the message because the content type 'application/soap+xml; charset=utf-8;action="test.org/IRequestProcessorServiceContract/ProcessRequest""' was not the expected type 'text/xml; charset=utf-8'.]

Cause:

The error is thrown when you try to hit a SOAP 1.1 service from a SOAP 1.2 WS activity.


Resolution:

The WSDL that you are using i.e. "DMS.wsdl" is a SOAP 1.2 service, but the end point (“qaservices.test.com/DMS_Services/RequestProcessor.svc” ) that service is trying to hit is SOAP 1.1 that results in this issue.

To resolve this, try creating the WS consumer activity using URl option and provide the following WSDL URl “qaservices.test.com/DMS_Services/RequestProcessor.svc?wsdl” and after saving this try to hit the consumer again.

Have more questions? Submit a request

0 Comments

Article is closed for comments.