# WebServiceClient SOAP response multipart

**URL:** <https://forum.cloverdx.com/t/webserviceclient-soap-response-multipart/1849>\
**Category:** CloverDX Platform\
**Created:** [April 13, 2017, 12:00am UTC](https://forum.cloverdx.com/t/webserviceclient-soap-response-multipart/1849 "2017-04-13T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristi.axe](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cristi.axe](https://forum.cloverdx.com/u/cristi.axe)\
**Post date:** [April 13, 2017, 12:00am UTC](https://forum.cloverdx.com/t/webserviceclient-soap-response-multipart/1849/1 "2017-04-13T00:00:00Z")

</div>

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/](http://schemas.xmlsoap.org/soap/envelope/)"\>SOAP-ENV:Header/SOAP-ENV:Body\<XxResponse xmlns=“[http://server/service/test/](http://server/service/test/)” xmlns:ns0="[http://test](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

---

<div class="post-metadata">

**Author:** ![cristi.axe](https://avatars.discourse-cdn.com/v4/letter/c/e79b87/32.png) [@cristi.axe](https://forum.cloverdx.com/u/cristi.axe)\
**Post date:** [April 14, 2017, 12:14pm UTC](https://forum.cloverdx.com/t/webserviceclient-soap-response-multipart/1849/2 "2017-04-14T12:14:29Z")

</div>

Hi,

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

thank you,\Axe

---

<div class="post-metadata">

**Author:** ![Lukas\_Cholasta](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.cloverdx.com/lukas_cholasta/32/166_2.png) [@Lukas\_Cholasta](https://forum.cloverdx.com/u/Lukas_Cholasta)\
**Post date:** [April 21, 2017, 2:35pm UTC](https://forum.cloverdx.com/t/webserviceclient-soap-response-multipart/1849/3 "2017-04-21T14:35:35Z")

</div>

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](https://bug.javlin.eu/browse/CLO-10820).

Thank you and best regards,
