Highlighted
New Member.
426 views

HP UFT - Content-type issue for SOAP request with attachment

When I send a SOAP request without attachment, there is no issue: the content-type used is the content-type defined in UFT application.

service.png

 WsansMTOM.png

When I add an attachment to the same request, the content-type value is updated to 'text/xml':

avecMTOM.png

With that content-type, I receive an error:

http://www.w3.org/2005/08/addressing/soap/faultsoapenv:VersionMismatchTransport level information does not match with SOAP Message namespace URIorg.apache.axis2.AxisFault: Transport level information does not match with SOAP Message namespace URI at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:174) ...
 

Why UFT doesn't keep content-type value ? Is it possible to force the value  with customized code?

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.