# SOAP-ENC:Array in Response

**URL:** <https://techcommunity.softwareag.com/t/soap-enc-array-in-response/125429>\
**Category:** Feedback & ideas\
**Tags:** Discussions-on-this-Forum-System, New-User-Welcome-and-Introductions\
**Created:** [April 16, 2009, 6:16pm UTC](https://techcommunity.softwareag.com/t/soap-enc-array-in-response/125429 "2009-04-16T18:16:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/guest/32/75_2.png) [@Guest](https://techcommunity.softwareag.com/u/Guest)\
**Post date:** [April 16, 2009, 6:16pm UTC](https://techcommunity.softwareag.com/t/soap-enc-array-in-response/125429/1 "2009-04-16T18:16:42Z")

</div>

Hi All,

I generated a service calculateDeposit using the wsdl attached here. I used web connector on the provided wsdl and then created a flow service based on it.

The problem is, eventhough the wsdl has specified doc/literal style, in the response returned from the service, i have soap encoded array types being used. This gives me the below error in my code:

Error: SOAP 1.1 fault: SOAP-ENV:Client [no subcode]  
“Validation constraint violation: data type mismatch SOAP-ENC:Array in element ”

The response returned from the flow service is below:

\<?xml version="1.0" encoding="UTF-8" ?\>

\<SOAP-ENV:Envelope  
xmlns:SOAP-ENV=“[URL][http://schemas.xmlsoap.org/soap/envelope/[/URL]](http://schemas.xmlsoap.org/soap/envelope/%5B/URL%5D)”  
xmlns:SOAP-ENC=“[URL][http://schemas.xmlsoap.org/soap/encoding/[/URL]](http://schemas.xmlsoap.org/soap/encoding/%5B/URL%5D)”  
xmlns:xsd=“[URL][http://www.w3.org/2001/XMLSchema[/URL]](http://www.w3.org/2001/XMLSchema%5B/URL%5D)”  
xmlns:xsi=“[URL][http://www.w3.org/2001/XMLSchema-instance[/URL]](http://www.w3.org/2001/XMLSchema-instance%5B/URL%5D)”  
SOAP-ENV:encodingStyle=“[URL][http://schemas.xmlsoap.org/soap/encoding/[/URL]](http://schemas.xmlsoap.org/soap/encoding/%5B/URL%5D)”\>  
SOAP-ENV:Body  
\<ser-root:calculateDepositResponse xmlns:ser-root=“[URL][http://localhost/OUK\_ENDUSER\_CSS.Services[/URL]](http://localhost/OUK_ENDUSER_CSS.Services%5B/URL%5D)” SOAP-ENC:root=‘1’\>  
\<tns1\_x003A\_calculateDepositResponse xsi:type=“sc1:calculateDepositResponse” xmlns:sc1=“[URL][http://localhost/OUK\_ENDUSER\_CSS.Services[/URL]](http://localhost/OUK_ENDUSER_CSS.Services%5B/URL%5D)”\>  
  
  
  
  
  
  
\<ArrayOfFacility3Item xsi:type=“SOAP-ENC:Array” SOAP-ENC:arrayType=“sc1:Facility3[1]”\>  
  
IPTV  
100  
1  
  
  
  
  
  
  
  
wM  
CSS  
123456  
CSS  
CSS  
2009-03-30 12:00:00  
  
  
  
\</tns1\_x003A\_calculateDepositResponse\>  
\</ser-root:calculateDepositResponse\>  
\</SOAP-ENV:Body\>  
\</SOAP-ENV:Envelope\>

Is there anyway to ensure response doesn’t contain these arrays? Any help is much appreciated. Thanks.  
[calculateDeposit\_try.wsdl](https://techcommunity.softwareag.com/uploads/short-url/fzU9jsc5AeUCRc5Udq6jDGNVC1D.wsdl) (14.3 KB)
