WebServiceClient SOAP response multipart

Hi,

I try to extract values from a WebServiceClient result component. The response look exactly like this:

------=_Part_1_234234232345
Content-Type: application/xop+xml; charset=utf-8; type=“text/xml”

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">SOAP-ENV:Header/SOAP-ENV:Body<XxResponse xmlns=“http://server/service/test/” xmlns:ns0="http://test>56c584a5-7884-41b1-8086-93245sdfvf2d</SOAP-ENV:Body></SOAP-ENV:Envelope>
------=_Part_1_234234232345–

Is there any way to use Response mapping property of WebServiceClient component to manage this kind of response? Or other approach?
The current solution is to make the call by cUrl using ExecuteScript and Reformat stdOut response to a valid xml that can be read by an XMLExtract component by connecting IN port source stream to Reformat out port. But I’m sure Clover can do it better!

thank you,
Axe

Hi,

Changed ExecuteScript to HttpConnector, looks better now but still reformat of content response needed using substring/indexOf functions.

thank you,\Axe

Hi Axe,

Unfortunately, neither WebServiceClient or HTTPClient has the ability to parse multipart responses. Your current solution with HTTPConnector and Reformat is the most convenient. However, you’re right, sometimes it really may be useful to have such feature implemented. Therefore I’ve created an improvement proposal in our system. You can visit the page by following this link: https://bug.javlin.eu/browse/CLO-10820.

Thank you and best regards,