Error consuming multipart soap services

Hi everyone,

When consuming one SOAP webservice with multipart on runtime I got the following error:

Client found response content type of 'multipart/related; type="application/xop+xml"; boundary="uuid:db7c330b-31c8-4683-92f5-3fcf89dc9608"; start="<root.message@cxf.apache.org>"; start-info="text/xml";charset=UTF-8', but expected 'text/xml'.
The request failed with the error message:
--

--uuid:db7c330b-31c8-4683-92f5-3fcf89dc9608
Content-Type: application/xop+xml; charset=UTF-8; type="text/xml"
Content-Transfer-Encoding: binary
Content-ID: <root.message@cxf.apache.org>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: cvc-complex-type.2.4.b: The content of element 'CheckProcessStatusRequest' is not complete. One of '{"http://www.multicert.com/mtrust/api/soap/v2_0/MtrustProcess/xsd/MtrustProcessService":guids}' is expected. </faultstring></soap:Fault></soap:Body></soap:Envelope>
--uuid:db7c330b-31c8-4683-92f5-3fcf89dc9608--
--.


Any ideia how consume this kind of webservices in O10?

Hi Nuno!


Are you sure that the error occur because of multipart content type?

The soap response is a fault telling that there is mistake with element CheckProcessStatusRequest:


Unmarshalling Error: cvc-complex-type.2.4.b: The content of element 'CheckProcessStatusRequest' is not complete. One of '{"http://www.multicert.com/mtrust/api/soap/v2_0/MtrustProcess/xsd/MtrustProcessService":guids}' is expected.


Are you able to test the same request in another tool, like SoapUI?


I've never used this kind of soap web service, but I'm not sure that it is problem; I also didn't find this as unsupported use case for SOAP in Outsystems docs (for 11 version).


Regards,


Tiago

Tiago de Resende wrote:

Hi Nuno!


Are you sure that the error occur because of multipart content type?

The soap response is a fault telling that there is mistake with element CheckProcessStatusRequest:


Unmarshalling Error: cvc-complex-type.2.4.b: The content of element 'CheckProcessStatusRequest' is not complete. One of '{"http://www.multicert.com/mtrust/api/soap/v2_0/MtrustProcess/xsd/MtrustProcessService":guids}' is expected.


Are you able to test the same request in another tool, like SoapUI?


I've never used this kind of soap web service, but I'm not sure that it is problem; I also didn't find this as unsupported use case for SOAP in Outsystems docs (for 11 version).


Regards,


Tiago

Hi Tiago,

In SOAPUI it works well but in Outsystems O10 not. 

Best regards,

Nuno Fernandes