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/”][COLOR=#22229c]http://schemas.xmlsoap.org/soap/envelope/[/color][/URL]”
xmlns:SOAP-ENC=“[URL=“http://schemas.xmlsoap.org/soap/encoding/”][COLOR=#22229c]http://schemas.xmlsoap.org/soap/encoding/[/color][/URL]”
xmlns:xsd=“[URL=“http://www.w3.org/2001/XMLSchema”][COLOR=#22229c]http://www.w3.org/2001/XMLSchema[/color][/URL]”
xmlns:xsi=“[URL=“http://www.w3.org/2001/XMLSchema-instance”][COLOR=#22229c]http://www.w3.org/2001/XMLSchema-instance[/color][/URL]”
SOAP-ENV:encodingStyle=“[URL=“http://schemas.xmlsoap.org/soap/encoding/”][COLOR=#22229c]http://schemas.xmlsoap.org/soap/encoding/[/color][/URL]”>
SOAP-ENV:Body
<ser-root:calculateDepositResponse xmlns:ser-root=“[URL=“http://localhost/OUK_ENDUSER_CSS.Services”][COLOR=#22229c]http://localhost/OUK_ENDUSER_CSS.Services[/color][/URL]” SOAP-ENC:root=‘1’>
<tns1_x003A_calculateDepositResponse xsi:type=“sc1:calculateDepositResponse” xmlns:sc1=“[URL=“http://localhost/OUK_ENDUSER_CSS.Services”][COLOR=#22229c]http://localhost/OUK_ENDUSER_CSS.Services[/color][/URL]”>
<ArrayOfFacility3Item xsi:type=“SOAP-ENC:Array” SOAP-ENC:arrayType=“sc1:Facility3[1]”>
IPTV
100
1
Is there anyway to ensure response doesn’t contain these arrays? Any help is much appreciated! Thanks.
calculateDeposit_try.wsdl (14.3 KB)